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 thehosts
file inC:\Windows\System32\drivers\etc
- I changed the port
80
to8003
in thehttpd.conf
file inC:\xampp\apache\conf
(I changed everything from80
to8003
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