I have XAMPP running on Windows 7 Pro. I am trying to configure a virtual host, so when I use "dev.app" as a domain, I get directly to my laravel installation shared folder.
Laravel is in F:/xampp/htdocs/dev/public
I opened the httpd-vhosts.conf file located in F:\xamp\apache\conf\extra\https-vhosts.conf
and replaced everything with
# Virtual Hosts
then I opened the hosts file located in C:\Windows\System32\drivers\etc and added the modified localhost line to look like
127.0.0.1 localhost dev.app 127.0.0.1 127.0.0.1
However, when I go to dev.app in my browser, I get this error
Unable to connect
Firefox cannot establish a connection to the server on app.dev.
The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
What am I missing here? What have I done wrong?
Note. I restarted Apache after modifying the vhosts file. In addition, I updated the app.php file in the config laravel folder to have the value http://dev.app in the url.
UPDATED after adding http: // .... site permission, but images are not displayed.
source share