user2047366
user2047366

Reputation: 93

How to set web server to display URL not IP address?

I currently have an apache web server setup on my raspberry pi running Raspbian. I've opened the ports on my router and registered a domain name through a website. In the website I set the domain to forward to my pi's external IP address which works fine.

The problem I'm having is that when the browser gets to the site which is accessed by url, it displays the test page I have set up but in the address bar the IP is displayed and not the URL. Is there a way to change it so it will display my URL?

Upvotes: 3

Views: 2570

Answers (2)

SLaks
SLaks

Reputation: 887415

You need to set an A record to point the domain name at that IP address, instead of forwarding to a URL with the IP.

Upvotes: 0

Pedro
Pedro

Reputation: 113

Create an A record. Read the post below. https://support.dnsimple.com/articles/a-record/

Upvotes: 3

Related Questions