@@ -42,8 +42,8 @@ The **minimum configuration** to get your application running under Apache is:
42
42
ServerName domain.tld
43
43
ServerAlias www.domain.tld
44
44
45
- DocumentRoot /var/www/project/web
46
- <Directory /var/www/project/web >
45
+ DocumentRoot /var/www/project/public
46
+ <Directory /var/www/project/public >
47
47
AllowOverride All
48
48
Order Allow,Deny
49
49
Allow from All
@@ -73,8 +73,8 @@ and increase web server performance:
73
73
ServerName domain.tld
74
74
ServerAlias www.domain.tld
75
75
76
- DocumentRoot /var/www/project/web
77
- <Directory /var/www/project/web >
76
+ DocumentRoot /var/www/project/public
77
+ <Directory /var/www/project/public >
78
78
AllowOverride None
79
79
Order Allow,Deny
80
80
Allow from All
@@ -123,7 +123,7 @@ Hence, you need to modify your ``Directory`` permission settings as follows:
123
123
124
124
.. code-block :: apache
125
125
126
- <Directory /var/www/project/web >
126
+ <Directory /var/www/project/public >
127
127
Require all granted
128
128
# ...
129
129
</Directory>
@@ -193,8 +193,8 @@ use the ``SetHandler`` directive to pass requests for PHP files to PHP FPM:
193
193
# regular expression must be changed accordingly:
194
194
# ProxyPassMatch ^/path-to-app/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/public/$1
195
195
196
- DocumentRoot /var/www/project/web
197
- <Directory /var/www/project/web >
196
+ DocumentRoot /var/www/project/public
197
+ <Directory /var/www/project/public >
198
198
# enable the .htaccess rewrites
199
199
AllowOverride All
200
200
Require all granted
@@ -228,8 +228,8 @@ should look something like this:
228
228
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi
229
229
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -host 127.0.0.1:9000 -pass-header Authorization
230
230
231
- DocumentRoot /var/www/project/web
232
- <Directory /var/www/project/web >
231
+ DocumentRoot /var/www/project/public
232
+ <Directory /var/www/project/public >
233
233
# enable the .htaccess rewrites
234
234
AllowOverride All
235
235
Order Allow,Deny
@@ -264,7 +264,7 @@ The **minimum configuration** to get your application running under Nginx is:
264
264
265
265
server {
266
266
server_name domain.tld www.domain.tld;
267
- root /var/www/project/web ;
267
+ root /var/www/project/public ;
268
268
269
269
location / {
270
270
# try to serve file directly, fallback to index.php
0 commit comments