jeffer8a's avatar

Remove port :8000 from url Homestead

If i use www.myapp.dev:8000 it works but if go to www.myapp.dev don't...

the alias on the hosts file is

192.168.10.10 www.myapp.dev

How can I remove the :8000 form the url ?

0 likes
6 replies
d0tt's avatar

The hosts file you mention, is it the one from the homestead environment or your host environment? Pointing your vhost directly to your homestead IP should let you use it without port, you could also try using xip.io so you don't have to modify your hosts file.

http://www.myapp.dev.192.168.10.10.xip.io

lindstrom's avatar

You need to specify it in Homestead.yaml otherwise it is set to port 8000 by default.

ports:
     - send: 80
       to: 80
2 likes
jeffer8a's avatar

d0tt. the hosts file is the one on my local enviroment. I have the alias pointet to the homestead ip but nothing work. only using url.dev:8000....

jeffer8a's avatar

Lindstrom, I did that you mention but still not work.

riomigal's avatar

Hi,

After 5 years... :) I had the same issue... Lindstrom answer is correct. You have just to run "vagrant reload" after the changes. I hope it may help someone with the same problem.

Cheers

Please or to participate in this conversation.