jeudi 11 octobre 2018

Alias in virtual host using xamp in Laravel 5.6 project

I created a virtual host in xampp for my Laravel 5.6 project.

I did this way:

  • 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 *:8003>
    DocumentRoot "C:/xampp/htdocs/project/public"
    ServerName project.com
</VirtualHost>

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

I would like to use an alias because I do not want to use the url with the number port at the of the url. I just can access with this url: http://project.com:8003. I want to enter to my project with the url like this: http://project.com



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire