MayusYT
(Marius S )
January 27, 2019, 9:45am
1
Hi!
I just bought a domain at Namecheap.com .
I have a server with just one IP and I would like to run Discourse on the port 8080 as 80 is already occupied by my website.
When I want to setup an A record for discourse with the port 8080, namecheap says that it’s not a valid IP adress.
Any help is highly appreciated!
uwe_keim
(Uwe Keim)
January 27, 2019, 10:04am
2
Ports are completely out-of-scope in terms of DNS.
DNS maps names to IP addresses.
The Domain Name System (DNS) is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently, it translates more readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices with the underlying network protocols. By providing a worldwid...
Port associations is done on your server, not in the DNS.
3 Likes
MayusYT
(Marius S )
January 27, 2019, 10:05am
3
So what should I use instead in this case?
You’re putting yourself in a very complex territory.
What I can suggest is to run discourse on a subdomain or in a subdirectory.
1 Like
MayusYT
(Marius S )
January 27, 2019, 10:23am
5
Yeah, I want to run it on a subdomain! But I don’t know how to tell my nginx proxy that you’re coming from the subdomain.
Create an A Record for sub.example.com
with the IP address where You host forum
Then in nginx proxy,
use server_name sub.example.com;
And forward all requests to docker container running discourse.
3 Likes
MayusYT
(Marius S )
January 27, 2019, 10:26am
7
ooooh! Didn’t think of that! Thank you so much!
system
(system)
Closed
February 26, 2019, 10:26am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.