-
Notifications
You must be signed in to change notification settings - Fork 474
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
http://symfony.localhost host not working on ubuntu 16.04 #110
Comments
Is it possible that you have apache2 service running in background and listening on port 80? |
The Apache page is for its locally installed machine. You specified, in the docker-compose.yml that nginx should export port 90 not 80. And bound it to port 90 not 80. You should change the port:
Then try: The port is required since you mapped a different port then 80 and 443 therefor you should specify it. Also note that port 90 is not a common HTTP port and it is reserved. Therefor I would change this one too. Use ports which are not reserved or better even reserved as alternative ports for HTTP like 8080 and 8008. |
Exactly as commented here, Apache is not related to docker-symfony technical stack. Please be sure your 80 port is free before using our stack or configure another port number as mentioned in the comment just below. Closing this issue for now but feel free to reopen is you still have any issue. |
symfony.conf
server {
server_name symfony.localhost;
root /var/www/html/simple-api/symfony/public;
My project structure:
I also added symfony.localhost in /etc/hosts
docker-compose.yml (in simple-api root folder)
I already have local running mysql, apache so I changed the ports.
-symfony
--.env
And when I run
sudo docker-compose up
db_1 container hanged on this point.I can access project here:
![Screenshot from 2019-04-16 14-52-55](https://user-images.githubusercontent.com/4338236/56199979-5bcb9280-6057-11e9-99a5-f595204c264c.png)
http://localhost/simple-api/symfony/public/
http://symfony.localhost/
![Screenshot from 2019-04-16 14-58-04](https://user-images.githubusercontent.com/4338236/56200434-38551780-6058-11e9-9258-a54d00882316.png)
The text was updated successfully, but these errors were encountered: