Closed gsg-git closed 1 year ago
Is automatic forwarding a requirement? For example do you have existing users or used Nominatim 3.x in the past? The nominatim.openstreetmap.org installation has that requirement for backward compatibility, there's simply too many links to the old style URLs on the internet. For a new installation I'd put nominatim either on /search
or /nominatim/search
and the UI frontend to /ui
. Or maybe even on different ports. Personally I run the UI from a separate server even.
@mtmail i just followed the guide. I am not a linux pro so i cant tell if something might be not 100% necessary. The installation ist the first for me and in my company so i have to learn how to use Nominatim the best way.
I have a litte issue with the WebGUI - after importing other countrys i cant search for them directly - just the initial country i used. so i thought it ist the problem of the missing part of the apache2.conf - when i search in the cli eversything is shown correct.
So i looked the Rewrite rules from the guide and i think its just some beautifcation and frong use prevention and could be not used.
Hello again! im almost at the finnishing line. I aleready learned that Apache doesnt like "" in the alias path, but still i have a problem with this part: When i enter the last part in the apache2.conf the Web UI is not reachable anymore:
`<Directory /home/nominatim-planet/website>#had to remove the"" as mentioned Options FollowSymLinks MultiViews AddType text/html .php Require all granted
RewriteEngine On
-- This must correspond to the URL where nominatim can be found. RewriteBase "/nominatim/" #Apache doesnt like: http://192.168.19.200/nominatim/ here
--If no endpoint is given, then use search. RewriteRule ^(/|$) "search.php"
-- If format-html is explicitly requested, forward to the UI. RewriteCond %{QUERY_STRING} "format=html" RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
-- If no format parameter is there then forward anything --but /reverse and /lookup to the UI. RewriteCond %{QUERY_STRING} "!format=" RewriteCond %{REQUEST_URI} "!/lookup" RewriteCond %{REQUEST_URI} "!/reverse" RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END] `
Than you again very much for your good help!