nominatim-docker
nominatim-docker copied to clipboard
www is missing
Hi, I'm completely new here. I installed the docker according to your documentation. It looks everything went well until I try to run it with the browser. I get: You don't have permission to access / on this server.
In the log file I see:
[Fri Jun 17 17:40:14.417065 2016] [autoindex:error] [pid 162] [client 172.17.0.1:36688] AH01276: Cannot serve directory /var/www/nominatim/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
When I check the /var/www directory there is no nominatim directory whatsoever.
This is what I see at the installation (might be of interest): `Step 38 : RUN service apache2 start && a2ensite 400-nominatim.conf && /etc/init.d/apache2 reload ---> Running in 8deadba22701
- Starting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
- Enabling site 400-nominatim. To activate the new configuration, you need to run: service apache2 reload
- Reloading web server apache2
- ---> c8f83c67a231 Removing intermediate container 8deadba22701`
Hopefully you know what is going on, Frank
Hi! I found that this Dockerfile use ext git repos: https://github.com/twain47/Nominatim.git And there is commit in this repository 11 days ago: https://github.com/twain47/Nominatim/commit/85c72cdccdb6adcad7a78643c569935e88a73182 that "remove --create-website function". To solve problem innner my container - I copy settings/* and nominatim/* to /var/www/settings and /var/www/nominatim accordingly
I'm not an export with docker, but I tried to copy these files using:
docker cp nominatim_container:var/www/nominatim /var/www/nominatim
but this gets me an empty dir
Files of site exist in /app/nominatim/settings/* and /app/nominatim/website/* inside Docker container. I copy they to /var/www/settings and /var/www/nominatim inside Docker container.
Had the same problem/error, though after following the standard Ubuntu 16.04 instructions (not using docker) the website directory did exist in '/srv/nominatim/Nominatim/build/website' which was properly mapped in my apache conf file. Problem is that no index.php existed in this directory. After studying the latest commit mentioned above, and the removal of 'create-website-function', I realized I could hit search.php directly just fine and ended up just creating a symlink like so:
ln -s search.php index.php
All is working great now! Mentioning this here as this is was the only google result I could find relevant to the error message.