1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00

Webserver documentation

This commit is contained in:
Simon Vieille 2016-10-03 23:29:49 +02:00
parent 3e297ec85f
commit 7bba890025
2 changed files with 4 additions and 2 deletions

View File

@ -124,6 +124,8 @@ The web server must have permission to write into `data`.
$ sudo chown -R www-data:www-data data $ sudo chown -R www-data:www-data data
Your webserver must be configured to serve `web/` as document root. If you use nginx, all virtual paths must be rooted with `web/index.php` or `web/app_dev.php` ([documentation](https://www.nginx.com/resources/wiki/start/topics/recipes/symfony/)).
Upgrade Upgrade
------- -------

View File

@ -8,7 +8,7 @@
# Determine the RewriteBase automatically and set it as environment variable. # Determine the RewriteBase automatically and set it as environment variable.
# If you are using Apache aliases to do mass virtual hosting or installed the # If you are using Apache aliases to do mass virtual hosting or installed the
# project in a subdirectory, the base path will be prepended to allow proper # project in a subdirectory, the base path will be prepended to allow proper
# resolution of the app.php file and to redirect to the correct URI. It will # resolution of the index.php file and to redirect to the correct URI. It will
# work in environments without path prefix as well, providing a safe, one-size # work in environments without path prefix as well, providing a safe, one-size
# fits all solution. But as you do not need it in this case, you can comment # fits all solution. But as you do not need it in this case, you can comment
# the following 2 lines to eliminate the overhead. # the following 2 lines to eliminate the overhead.
@ -16,7 +16,7 @@
RewriteRule ^(.*) - [E=BASE:%1] RewriteRule ^(.*) - [E=BASE:%1]
# Redirect to URI without front controller to prevent duplicate content # Redirect to URI without front controller to prevent duplicate content
# (with and without `/app.php`). Only do this redirect on the initial # (with and without `/index.php`). Only do this redirect on the initial
# rewrite by Apache and not on subsequent cycles. Otherwise we would get an # rewrite by Apache and not on subsequent cycles. Otherwise we would get an
# endless redirect loop (request -> rewrite to front controller -> # endless redirect loop (request -> rewrite to front controller ->
# redirect -> request -> ...). # redirect -> request -> ...).