Browse Source

Fix Vhost (Apache2.4)

* fixed fastcgi configuration(changed to be compatible with < 2.4.10)
* fixed directory permissions

Change-Id: I789d67947b33d05409460c4b26e8c6a595d58694
Sebastian Marcet 3 years ago
parent
commit
13c1777dc0
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      templates/vhost.erb

+ 3
- 5
templates/vhost.erb View File

@@ -38,14 +38,12 @@
38 38
 
39 39
   DocumentRoot <%= @docroot %>
40 40
   <Directory <%= @docroot %>/>
41
-    Order allow,deny
42
-    Allow from all
41
+    Options -Indexes +FollowSymLinks +MultiViews
42
+    AllowOverride All
43 43
   </Directory>
44 44
 
45 45
   <IfModule mod_proxy_fcgi.c>
46
-      <FilesMatch \.php$>
47
-        SetHandler "proxy:fcgi://127.0.0.1:9000"
48
-      </FilesMatch>
46
+      ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000<%= @docroot %>/$1
49 47
   </IfModule>
50 48
 
51 49
   <IfModule mod_fastcgi.c>

Loading…
Cancel
Save