Hi
I tried to set up the laravel/homstead vagrant box but I couldn't get it to work, I had problems similar to others reported on these boards (timeouts etc). I found a box on vagrantcloud which says it is a 32bit version of the homestead box so I set this up and it seems to have gone more smoothly. I can ssh in without problem. However, I am unable to load a web page in the browser and I don't know why.
I created an index.php in the /vagrant folder but if I visit http://127.0.0.1:8000/ or http://127.0.0.1:54320/ I get a "No Data Received" message. If I visit http://127.0.0.1:33060/ a file simply called "download" downloads. Replacing the 127.0.0.1 with 192.168.33.10 yields the following "Oops! Google Chrome could not connect to 192.168.33.10:8000"
Do I have to do something to nginx to make it serve up web pages? I'm a bit out of my depth...
The vagrant file includes the following settings:
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.network "forwarded_port", guest: 80, host: 8000
config.vm.network "forwarded_port", guest: 3306, host: 33060
config.vm.network "forwarded_port", guest: 5432, host: 54320
Below is the link to the box on vagrantcloud https://vagrantcloud.com/antoniofrignani/laravel-homestead-settler-32
With the help of the nginx beginners guide I am now getting a 404 error at http://127.0.0.1:8000/ Some progress, I suppose!
http://nginx.org/en/docs/beginners_guide.html
I made data/www directory in the /vagrant directory and I have tried adding the following to the nginx.conf
server {
listen 8000;
location / {
root /data/www;
}
}
and
server {
listen 8000;
location / {
root /home/vagrant/data/www;
}
}
404 is the best I've come up with so far
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community