Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

www is missing #16

Open
frankvandenbergh opened this issue Jun 17, 2016 · 4 comments
Open

www is missing #16

frankvandenbergh opened this issue Jun 17, 2016 · 4 comments

Comments

@frankvandenbergh
Copy link

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

@inem88
Copy link

inem88 commented Jun 20, 2016

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:
osm-search/Nominatim@85c72cd
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

@frankvandenbergh
Copy link
Author

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

@inem88
Copy link

inem88 commented Jun 24, 2016

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.

@arch1v1st
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants