forked from hans/Nominatim
improve syntax highlighting for apache and nginx examples
This commit is contained in:
@@ -125,6 +125,7 @@ from there.
|
|||||||
Make sure your Apache configuration contains the required permissions for the
|
Make sure your Apache configuration contains the required permissions for the
|
||||||
directory and create an alias:
|
directory and create an alias:
|
||||||
|
|
||||||
|
``` apache
|
||||||
<Directory "/srv/nominatim/build/website">
|
<Directory "/srv/nominatim/build/website">
|
||||||
Options FollowSymLinks MultiViews
|
Options FollowSymLinks MultiViews
|
||||||
AddType text/html .php
|
AddType text/html .php
|
||||||
@@ -132,6 +133,7 @@ directory and create an alias:
|
|||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
Alias /nominatim /srv/nominatim/build/website
|
Alias /nominatim /srv/nominatim/build/website
|
||||||
|
```
|
||||||
|
|
||||||
`/srv/nominatim/build` should be replaced with the location of your
|
`/srv/nominatim/build` should be replaced with the location of your
|
||||||
build directory.
|
build directory.
|
||||||
@@ -159,6 +161,7 @@ follows:
|
|||||||
Tell nginx that php files are special and to fastcgi_pass to the php-fpm
|
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.
|
unix socket by adding the location definition to the default configuration.
|
||||||
|
|
||||||
|
``` nginx
|
||||||
root /srv/nominatim/build/website;
|
root /srv/nominatim/build/website;
|
||||||
index search.php;
|
index search.php;
|
||||||
location / {
|
location / {
|
||||||
@@ -183,6 +186,7 @@ unix socket by adding the location definition to the default configuration.
|
|||||||
fastcgi_index search.php;
|
fastcgi_index search.php;
|
||||||
include fastcgi.conf;
|
include fastcgi.conf;
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Restart the nginx and php5-fpm services and the website should now be available
|
Restart the nginx and php5-fpm services and the website should now be available
|
||||||
at `http://localhost/`.
|
at `http://localhost/`.
|
||||||
|
|||||||
Reference in New Issue
Block a user