Domain name resolves to IP address in browser address bar

1

I have a site that I'm hosting on my home server, and I'm using a no-ip domain name. Port 80 is in use by another application on the network I'm using, so I set the no-ip account as a port 80 redirect, and I'm using port 81. I'm now able to access my site, but when I navigate to the site, it resolves to the IP:port number in the address bar. Any pointers on where to check would be appreciated, I've checked the apache2.conf file, as well as ports.conf, and the corresponding configuration file in sites-enabled. Please advise if any further information is needed.

Glenak1911

Posted 2014-12-23T05:28:28.123

Reputation: 133

http://httpd.apache.org/docs/current/bind.html read this document. Hope this will help. – Calculating Machine – 2014-12-23T05:36:54.227

Answers

0

The term you're looking for is 'redirect'. When you visit http://domainname/, you reach a website that explicitly redirects your browser elsewhere, by sending a HTTP redirect header like:

HTTP/1.1 301 Look elsewhere
Location: http://ipaddress:port/blah.html

It might be the no-ip service doing this, or it might be misconfiguration in your own website or webserver. Can't give a better answer without knowing the real domain name and being able to look at it.

user1686

Posted 2014-12-23T05:28:28.123

Reputation: 283 655

My domain name is sirknight.no-ip.biz, if you want to take a look. Would I need to use a packet sniffing tool, such as wireshark, in order to see the header you specified?

– Glenak1911 – 2014-12-24T15:05:16.277

1

@Glenak1911: Yes, or the web browser's network inspector (F12 or Ctrl+Shift+K or such). Also, note that DNS does not handle :ports (at least for the web), so if you want people to type http://sirknight.no-ip.biz and connect to port 81, you will need a redirect that reveals the :port (e.g. Location: http://sirknight.no-ip.biz:81/).

– user1686 – 2014-12-24T15:21:21.207

0

I noticed an option on the no-ip settings to mask the url with a frameset. I started doing some research into how to mask URLs, and found the following useful page:

http://www.willmaster.com/library/web-development/url-masking.php

Glenak1911

Posted 2014-12-23T05:28:28.123

Reputation: 133