Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

joppevhd's avatar

Laravel homestead.test not loading in browser

I have to make a PHP project and the setup for it doesn't work for me. I had to download laravel.bat, vagrant, nodejs, git and composer. This works, then I had to make 2 new directories at the root of my C-drive, "vagrant" and "laravel_sites". In "/vagrant" I cloned the requested repository, and made a index.php file in "/laravel_sites". I added the domain "192.168.56.56 homestead.test" and made the necessary changes in the homestead.yaml file. When I type in "vagrant up", it loads, and I can access the page on localhost:8000, but not on "http://homestead.test " . Anyone who can help me solve this problem? Thanks in advance!

0 likes
1 reply
jlrdw's avatar

Check and make sure nginx is set correct, one of mine is like:

    server {
            listen 81;
            server_name laravel.local;
            # 192.168.0.1

            root /nginx/www/laravel842/public;

            location / {
                index index.html index.htm index.php;
                try_files $uri $uri/ /index.php?$query_string;
                }

                # rest of file....

1 like

Please or to participate in this conversation.