From 7bba890025d04deeda6760a85eec5b4547d09f82 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 3 Oct 2016 23:29:49 +0200 Subject: [PATCH] Webserver documentation --- README.md | 2 ++ web/.htaccess | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c6fc5d4..d34d0c8 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,8 @@ The web server must have permission to write into `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 ------- diff --git a/web/.htaccess b/web/.htaccess index 67eb850..e4b9ce7 100644 --- a/web/.htaccess +++ b/web/.htaccess @@ -8,7 +8,7 @@ # Determine the RewriteBase automatically and set it as environment variable. # 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 - # 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 # fits all solution. But as you do not need it in this case, you can comment # the following 2 lines to eliminate the overhead. @@ -16,7 +16,7 @@ RewriteRule ^(.*) - [E=BASE:%1] # 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 # endless redirect loop (request -> rewrite to front controller -> # redirect -> request -> ...).