]> git.openstreetmap.org Git - nominatim.git/commitdiff
set directoryindex in Apache,nginx configuration
authorMarc Tobias Metten <mtmail@gmx.net>
Fri, 16 Dec 2016 01:16:47 +0000 (02:16 +0100)
committerMarc Tobias Metten <mtmail@gmx.net>
Fri, 16 Dec 2016 01:16:47 +0000 (02:16 +0100)
docs/Installation.md
vagrant/install-on-centos-7.sh
vagrant/install-on-travis-ci.sh
vagrant/install-on-ubuntu-16.sh

index 678f055669caaf1067b51a3623cf8734888dda39..7f108160a25e40324e855bea2d83e532cd6ed3e9 100644 (file)
@@ -104,6 +104,7 @@ directory and create an alias:
     <Directory "/srv/nominatim/build/website">
       Options FollowSymLinks MultiViews
       AddType text/html   .php
+      DirectoryIndex search.php
       Require all granted
     </Directory>
     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;
     }
 
index cd1ddfb03b0e9be5ca305cb4ea5abd76c6adabd5..fd50bc52f531eade29083c2d9dc1c974003e9039 100755 (executable)
@@ -104,6 +104,7 @@ sudo tee /etc/httpd/conf.d/nominatim.conf << EOFAPACHECONF
 <Directory "$USERHOME/build/website"> #DOCS:<Directory "$USERHOME/Nominatim/build/website">
   Options FollowSymLinks MultiViews
   AddType text/html   .php
+  DirectoryIndex search.php
   Require all granted
 </Directory>
 
index aca3c66f5a0a62e5d2567627fa51d87aeb827bfc..693be306e90b3292ca3bb61c573fce4402d258f3 100755 (executable)
@@ -41,6 +41,7 @@ sudo tee /etc/apache2/conf-available/nominatim.conf << EOFAPACHECONF > /dev/null
     <Directory "$TRAVIS_BUILD_DIR/build/website">
       Options FollowSymLinks MultiViews
       AddType text/html   .php
+      DirectoryIndex search.php
       Require all granted
     </Directory>
 
index b40dbce1abaa10add924da4983cc14fff0cc80e9..137085a1437b8a46c3f97ae5bae35780468e2d36 100755 (executable)
@@ -104,6 +104,7 @@ sudo tee /etc/apache2/conf-available/nominatim.conf << EOFAPACHECONF
 <Directory "$USERHOME/build/website"> #DOCS:<Directory "$USERHOME/Nominatim/build/website">
   Options FollowSymLinks MultiViews
   AddType text/html   .php
+  DirectoryIndex search.php
   Require all granted
 </Directory>