I'm not sure if I'm missing something here, probably doing something dumb.
For reasons, I'm trying to setup a new Laravel 7 project with Homestead on Windows 10 system.
I've created a new Laravel 7 project and with php artisan serve I can see that. I've pulled in Laravel UI and set that up and I can see those new pages (although not working because I don't have db configured for it in windows).
I already have virtualbox and vagrant installed and setup on pretty recent versions.
I've pulled Homestead into the project with composer require and done the make and that seemed okay. I've attempted to configure up the homestead yaml file, pretty basic stuff. I just removed the auth/keys stuff as I couldn't ssh in with that in place.
ip: 192.168.10.10
memory: 2048
cpus: 2
provider: virtualbox
folders:
-
map: 'W:\Sites\MyNewProject.com.L7Beta'
to: /home/vagrant/code
sites:
-
map: dev.mynewproject.com
to: /home/vagrant/code/public
databases:
- mynewproject
features:
-
mysql: true
-
mariadb: false
-
postgresql: false
-
ohmyzsh: false
-
webdriver: false
services:
-
enabled: [mysql]
name: mynewproject-com-l7beta
hostname: dev.mynewproject.com
With that setup I can bring up the box and ssh into it.
Inside the box I can access mysql (can even do an artisan migrate) and I can see nginx running in ps.
However (from Windows) I cannot seem to connect to the web server, either with the domain dev.mynewproject.com, which is in my windows hosts file or by the configured IP address. I've tried port 8000 as well but nothing seems to be being served. Unable to connect, Firefox can’t establish a connection to the server at dev.mynewproject.com
Inside the homestead machine when I look for nginx configuration, I cannot find any site specific config, just the basic server config in /etc/nginx/nginx.conf
I also can't seem to connect in to mysql on port 33060 so I'm wondering if it's something to do with vbox networking/forwarding setup, but I didn't touch any of that stuff, it's as homestead set itself up.
Any ideas? I'm completely new to nginx, always used apache before, and pretty much complete newb with Homestead too, so I'm a bit stumped how to proceed. I'm not sure if I'm missing where the nginx site config is, or if homestead didn't set it up properly or if it's a port forwarding/networking issue in vbox or something else entirely!