Need some assistance for setting up a subdomain when there is already a webserver


(Marius S ) #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) #2

Ports are completely out-of-scope in terms of DNS.

DNS maps names to IP addresses.

Port associations is done on your server, not in the DNS.


(Marius S ) #3

So what should I use instead in this case?


(Bhanu Sharma) #4

You’re putting yourself in a very complex territory.

What I can suggest is to run discourse on a subdomain or in a subdirectory.


(Marius S ) #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.


(Bhanu Sharma) #6

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.


(Marius S ) #7

ooooh! Didn’t think of that! Thank you so much!


(system) closed #8

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.