X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b77e2503f57e175fdbb8ce01f83677b96d0e6a1d..523873fe1675ef4c76b6d9633ca05d64eac9c45d:/docs/Installation.md diff --git a/docs/Installation.md b/docs/Installation.md index 678f0556..7f108160 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -104,6 +104,7 @@ directory and create an alias: Options FollowSymLinks MultiViews AddType text/html .php + DirectoryIndex search.php Require all granted Alias /nominatim /srv/nominatim/build/website @@ -134,13 +135,15 @@ follows: Tell nginx that php files are special and to fastcgi_pass to the php-fpm unix socket by adding the location definition to the default configuration. + root /srv/nominatim/build/website; + index search.php index.html; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; if (!-f $document_root$fastcgi_script_name) { return 404; } fastcgi_pass unix:/var/run/php5-fpm.sock; - fastcgi_index index.php; + fastcgi_index search.php; include fastcgi.conf; }