Discourse under 2 hostnames


(Raphael Haase) #1

What happens if I run Discourse under two different hostnames, i.e. the very same instance is connected to 2 different network interfaces with different IP addresses and different host names, but it is the same Discourse behind the two?
Will this break anything, apart from the email links?


#2

“the same discourse” suggests you are running it on the same server.

This can be achieved with a single IP address.

There is nothing stopping you registering several domains and pointing them to the same IP …


(Raphael Haase) #3

Yes, but it has to be two different IP addresses and network interfaces for network configuration reasons.


#4

Ah got you … so in essence this is the same question as:

Can I run Discourse behind two different web proxies?

I think this just went above my pay-grade! :slight_smile: I’ll let others chime in …


(Matt Palmer) #5

It won’t necessarily break anything, if you do it right, but there’s plenty of ways you could break it.


(Raphael Haase) #6

Any pointers what I should avoid breaking?


(Sam Saffron) #7

Google is going to punish you big time if it finds out.

All email will point users at a single instance

Highly recommend you don’t do this


(Jay Pfaffman) #8

What problem are you trying to solve by doing this?


(Raphael Haase) #9

Some weird corporate network setup where they do not want to connect subnet A to subnet B. Both need to use the Discourse instance, but are apparently not meant to talk to each other, except through using Discourse.


(Jay Pfaffman) #10

One solution would be to have discoursehostname on Subnet A resolve to the subnet A address and have it resolve to subnet B on the other network. I think you might even be able to have discoursehostname resolve to both the subnet A and the subnet B addresses and the OS would figure out which one to connect to.


(Sam Saffron) #11

Yeah what you want @Raphael_Haase_NL is called