samedi 6 octobre 2018

Create virtual host for Laravel using Xampp with the port 8003

I am trying to create a virtual host for my project using Xampp.

  • I added 127.0.0.1 project.com in the hosts file in C:\Windows\System32\drivers\etc
  • I changed the port 80 to 8003 in the httpd.conf file in C:\xampp\apache\conf (I changed everything from 80 to 8003 in this file)
  • I added this:

<VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/project/public" ServerName project.com </VirtualHost>

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

When I leave it with the 80 port in the files, it works good. But when I try to use the 8003 port does not work. I get the same message as when I stop Apache.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire