-
Notifications
You must be signed in to change notification settings - Fork 548
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
Webserver is not accesible #207
Comments
same here |
I had the same kind of problem. I'm using Vagrant 1.7.4 with Virtualbox 5.0.16 on a Windows 10 machine. Scotch box booted up with only the ssh port forwarded. So I had to add 8080 port to my Vagrantfile:
After a |
i have tried these changes to the vagrant file but I am still having the same problem, I can't access the ip address in a browser |
i've tried fowarding port 80 and 8080, also no success on Windows 10 with Vagrant 1.7.4 and Virtualbox 5.0.10 |
Even from inside it seems there is something wrong with the scotchbox, i've tried to curl localhost from the machine itself, and it got a 301 to the https location and then a connection refused... `vagrant@scotchbox:~$ curl 127.0.0.1 <title>301 Moved Permanently</title>Moved PermanentlyThe document has moved here. Apache/2.4.16 (Ubuntu) Server at 127.0.0.1 Port 80 vagrant@scotchbox:~$ curl https://127.0.0.1 curl: (7) Failed to connect to 127.0.0.1 port 443: Connection refused` |
found the issue atleast for me: my project had an .htaccess file which forced the browser via 301 to https, as seen in my last comment. https is not activated on the default scotchbox. if you follow the other issue to activate it, beware that the advice is missing the path change that needs to happen (as part of the provisioning script you'll need to activate https):
|
This solution from @Ettemlevest worked for me but on http://192.168.33.10 |
For anyone having the same problem on Archlinux, I managed to access scotch-box by installing |
I am running into this issue as well, I have tried every thing listed here. Running osx el cap. Everything is updated. Any other ideas? SSH works, just cannot access the server from the browser. |
I'm like rzzo, on osx, can ssh, can't get browser to connect. Total fail. |
For Windows users this might help you if you want to access your site on http://localhost/ without having to use an alternative port (like 8000, 8080, 8081 etc). ssh into your scotch box and sudo su. Go into /etc/apache2/sites-enabled Back in Windows, edit your Vagrantfile and add the following: You can put it directly under the line: config.vm.network "private_network", ip: "192.168.33.10" Save that, and then reload your box with: |
@wlsmsw Thanks, your addition of @rzzo / @cssjunkie I am also on OSX, after adding the code above to the vagrant file and re-loading I still couldn't access the webserver from the expected http://192.168.33.10/. However, I was able to see it at http://127.0.0.1:8080/ |
@JWasdin it should be possible for you to reverse those ports (see my post above) in your vagrant config, so that you don't have to append :8080 to the URL. You will just need to update the apache2 confs to match. |
Leaving this here just in case anyone had the same silly problem as me - I forgot to create a /public directory under /var/www! |
If it returns:
This is because Apache is looking for a public folder in /var/www, so if you sync that folder to a project folder without public, take care of to use /var/www/public in Vagrantfile option. |
Changed this line in my Vagrantfile: To this (added /public after /var/www): as per comment by @angel-luis , now I no longer get the 404 page. Everything works as expected. |
Had same issue, noticed that VirtualBox had two times scotch_default_(...) deleted one and I could connect again to http://192.168.33.10/. |
Scotch box is installed successfully. I can ssh to it.
But I can't access http://192.168.33.10.
vagrant 1.8.1
virtualbox 5.0.16
Similar to #169
The text was updated successfully, but these errors were encountered: