public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] remove unused directories from Apache vhost configs
@ 2017-09-25 15:59 Peter Müller
  2017-10-09 14:32 ` Michael Tremer
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Müller @ 2017-09-25 15:59 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 2038 bytes --]

Remove unused vhost configuration directives.

They are related to "dial.cgi" and /cgi-bin/dial/, which
both do not exist in IPFire.

Signed-off-by: Peter Müller <peter.mueller(a)link38.eu>
---
diff --git a/config/httpd/vhosts.d/ipfire-interface-ssl.conf b/config/httpd/vhosts.d/ipfire-interface-ssl.conf
index bec0d580b..eef2d45e2 100644
--- a/config/httpd/vhosts.d/ipfire-interface-ssl.conf
+++ b/config/httpd/vhosts.d/ipfire-interface-ssl.conf
@@ -45,29 +45,12 @@
         <Files webaccess.cgi>
             Require all granted
         </Files>
-        <Files dial.cgi>
-			<RequireAll>
-	  	  	    Require user admin
-				Require ssl
-			</RequireAll>
-        </Files>
-    </Directory>
-    <Directory /srv/web/ipfire/cgi-bin/dial>
-        AllowOverride None
-        Options None
-        AuthName "IPFire - Restricted"
-        AuthType Basic
-        AuthUserFile /var/ipfire/auth/users
-        <RequireAll>
-	        Require user admin dial
-			Require ssl
-		</RequireAll>
     </Directory>
     <Files ~ "\.(cgi|shtml?)$">
-	SSLOptions +StdEnvVars
+		SSLOptions +StdEnvVars
     </Files>
     <Directory /srv/web/ipfire/cgi-bin>
-	SSLOptions +StdEnvVars
+		SSLOptions +StdEnvVars
     </Directory>
     SetEnv HOME /home/nobody
     SetEnvIf User-Agent ".*MSIE.*" \
diff --git a/config/httpd/vhosts.d/ipfire-interface.conf b/config/httpd/vhosts.d/ipfire-interface.conf
index a0537b392..57cf8ba17 100644
--- a/config/httpd/vhosts.d/ipfire-interface.conf
+++ b/config/httpd/vhosts.d/ipfire-interface.conf
@@ -25,13 +25,6 @@
 		RewriteCond %{HTTPS} off
 		RewriteRule (.*) https://%{SERVER_NAME}:444/$1 [R=301,L]
     </Directory>
-    <Directory /srv/web/ipfire/cgi-bin/dial>
-        AllowOverride None
-        Options SymLinksIfOwnerMatch
-		RewriteEngine on
-		RewriteCond %{HTTPS} off
-		RewriteRule (.*) https://%{SERVER_NAME}:444/$1 [R=301,L]
-    </Directory>
     Alias /updatecache/ /var/updatecache/
 	<Directory /var/updatecache>
 		 Options ExecCGI

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-10 11:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25 15:59 [PATCH] remove unused directories from Apache vhost configs Peter Müller
2017-10-09 14:32 ` Michael Tremer
2017-10-09 20:24   ` Peter Müller
2017-10-10 11:31     ` Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox