Alias in virtual host in project Xampp in Laravel 5.6

1

I currently have a project created in Laravel 5.6, create a virtual host to be able to access using the url proyecto.com:8003 . Apparently to be able to access my project I must place the port at the end of the URL because it is not the default port (80). I want to put an alias to it so that it does not have to include the port at the end of the url but simply access it with proyecto.com

    
asked by Kinafune 11.10.2018 в 19:11
source

1 answer

0

What you can do is put a command in Windows CMD (as administrator):

netsh interface portproxy add v4tov4 listenport=80 listenaddress=127.2.2.2 connectport=8003 connectaddress=127.0.0.1

What that command does is warn Windows that if there is a request to 127.2.2.2:80 redirect that request to 127.0.0.1:8003 (depending on the port you put), it is Windows internal configuration.

EYE: You have to change the configuration in the file hosts of Windows with the IP that you put in listenaddress . In the Apache virtual host file you just have to leave it as <VirtualHost *:8003>

    
answered by 17.10.2018 в 04:05