In the context of self-hosting, chrisadams inquires whether installing Docker and Discourse on an existing Ubuntu 14.04 web server will disrupt their current Apache and networking configuration, specifically asking if Discourse can be installed as a subdirectory at mydomain.com/discourse. riking advises against placing Apache in front of Discourse due to performance issues with notification polling, recommending instead a setup where nginx runs on ports 80/443 to proxy requests to both Discourse and other sites. riking suggests migrating PHP files to php-fpm for a cleaner architecture than nginx -> {apache, discourse} and points to a related guide on running other websites on the same machine as Discourse. Regarding the subdirectory request, riking explains that while it existed previously, it was removed due to complexities with URL generation and proxy switching, and is not currently available. chrisadams acknowledges the explanation and thanks riking for the clarification.
This is probably a stupid question, but I am unsure and figured I would ask before screwing up something.
I have recently moved hosting companies for the ability to specifically have the option of installing Docker and Discourse. I built a web server on a Ubuntu 14.04 droplet.
If I were to install Docker and Discourse, does it override my current networking setup (index files and apache setup networking, etc..)?
Not sure if this makes sense and I think I am over thinking it and confusing myself, but I want to install it as a sub directory so that when I go to mydomain.com/discourse it pulls up.
The recommended setup in this situation is to have nginx running on 80/443 in front, proxying to Discourse and your other sites as needed.
If you can move your PHP files over to php-fpm and not have to go through apache, that’ll be a neater setup than nginx → {apache, discourse}.
This topic has more information:
I would like to heavily recommend against putting apache in front. Without the evented stuff, it’ll fill up the workers with the notification polling.
As for installing in a subdirectory, that existed in a broken form a time ago, then it was ripped out, and there’ve been people asking for it again but it’s tricky due to all the URL generation, and the proxy switching esp. if they’re not on the same machine, and… it’s not available right now.