Search code examples
laravelwindowsxamppvirtualhost

Virtual host in Windows 10 with xampp and laravel


I want to make virtual host "mail.test" but i get this error :

The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://mail.test/

Unable to forward this request at this time.

This request could not be forwarded to the origin server or to any parent caches.

Some possible problems are:

An Internet connection needed to access this domains origin servers may be down. All configured parent caches may be currently unreachable. The administrator may not allow this cache to make direct connections to origin servers.


these are my configurations :

C:\Windows\System32\drivers\etc\hosts

127.0.0.1 mail.test

C:\xampp\apache\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/laravel/mail/public"
    ServerName mail.test
    ServerAlias mail.test
</VirtualHost>

In chrome browser I go to "http://mail.test/"


Solution

  • I reset my Laptop and everything goes OK!