You should have a domain pointing to that virtual host in order to access it
Right after
DocumentRoot /var/www/html/myfirstproject/public
You should add your domain name directive
ServerName www.example.com
Thanks I added the
ServerName localhost
And now their is no longer a directory listing, but instead I have
Error in exception handler
Either with or without /public in the url.
Any other thoughts?
ServerName test.app
127.0.0.1 test.app
K, that worked, but not exactly sure why?
I find it strange the my other entries in the hosts file are not being resolved in the same fashion?
127.0.0.1 localhost
127.0.1.1 Ghost64
127.0.1.1 projects.local
127.0.0.1 test.app
They work, but they also must be resolved by the web server. If you want apache to respond to another domain, add a proper virtual host.
Please add only an entry on line in the hosts file.
127.0.0.1 localhost
127.0.1.1 Ghost64
127.0.1.1 projects.local
127.0.0.1 test.app
You can check if your hosts file entries work by pinging each entry
ping localhost
ping Ghost64
Thanks they are there but for some reason are not resolving
Strange.
Thanks for your help again, and I am good to go now.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community