瀏覽代碼

Eliminate need for access_compat module in Apache

The directives provided by `mod_access_compat` are deprecated.  This
patch eliminates references to them.
Mike Ashley 8 年之前
父節點
當前提交
97b11e3953

+ 1
- 2
roles/git/templates/etc_apache2_sites-available_cgit.j2 查看文件

@@ -12,8 +12,7 @@
12 12
     <Directory "/var/www/htdocs/cgit/">
13 13
         AllowOverride None
14 14
         Options +ExecCGI
15
-        Order allow,deny
16
-        Allow from all
15
+        Require all granted
17 16
     </Directory>
18 17
 
19 18
     Alias /cgit.png         /var/www/htdocs/cgit/cgit.png

+ 1
- 3
roles/monitoring/files/etc_apache2_sites-available_00-status.conf 查看文件

@@ -3,8 +3,6 @@
3 3
 <VirtualHost *:80>
4 4
   <Location />
5 5
     SetHandler server-status
6
-    Order deny,allow
7
-    Deny from all
8
-    Allow from 127.0.0.1
6
+    Require ip 127.0.0.1
9 7
   </Location>
10 8
 </VirtualHost>

+ 1
- 2
roles/news/templates/etc_apache2_sites-available_selfoss.j2 查看文件

@@ -16,8 +16,7 @@
16 16
 
17 17
     <Directory /var/www/selfoss>
18 18
         AllowOverride All
19
-        Order allow,deny
20
-        allow from all
19
+        Require all granted
21 20
         DirectoryIndex index.php
22 21
     </Directory>
23 22
 </VirtualHost>

+ 1
- 2
roles/readlater/templates/etc_apache2_sites-available_wallabag.j2 查看文件

@@ -16,8 +16,7 @@
16 16
 
17 17
     <Directory /var/www/wallabag>
18 18
         AllowOverride All
19
-        Order allow,deny
20
-        allow from all
19
+        Require all granted
21 20
         DirectoryIndex index.php
22 21
     </Directory>
23 22
 </VirtualHost>

Loading…
取消
儲存