M HYPE SPLASH
// news

localhost:4567 url gets redirected to port 80 [closed]

By Michael Henderson

I am working with vagrant machines, and everything worked fine until I run this command:

vagrant destroy -f && vagrant up

I expect that if I go into the browser and I type , I will be taken to my virtual machine, but after pressing ENTER, the URL bar displays , which I am guessing means that I have been redirected to port 80.

To make sure I didnt make an error, I removed apache from the host, but I still get the same error.

What could be happening here?

UPDATE:

Maybe this can give some insight:

$ curl -v 127.0.0.1:4567
* Rebuilt URL to: 127.0.0.1:4567/
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 4567 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 127.0.0.1:4567
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Sat, 06 Sep 2014 12:39:11 GMT
* Server Apache/2.4.7 (Ubuntu) is not blacklisted
< Server: Apache/2.4.7 (Ubuntu)
< X-Powered-By: PHP/5.5.9-1ubuntu4.3
< X-Pingback:
< Location:
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host 127.0.0.1 left intact
4

1 Answer

In the end it was the cache of the browser playing tricks on me. I have marked this question to be deleted by mods, as it has nothing to do with Ubuntu.

Sorry!