Can't make Discourse accessible through Apache

This question has been asked quite a number of times already…

Basically, only one process can listen to a port, and there’s only a single port for incoming HTTP traffic. This means it’s impossible to run two webservers alongside each other, instead you must configure at least one of them to proxy requests through to the other. Since you have manual control over the Apache running on the host, that’s what you’ll need to work with.

I’ve posted my Apache config here and there’s also a discussion on how to set up Apache so that it can handle long polling. (You MUST use the evented MPM or performance will be terribad!)


(See also this snippet that shows how to overlay something over Discourse’s namespace via the Apache frontend.)

4 Likes