Install discourse together with Apache websites

Hi to all,

I used to have a fully working discourse installation in a server.
Now I decided to restore my discourse backup at my apache web-server but it seems not possible.
I read and tried a lot of sollutions through the meta but nothing worked.
Does anybody have time to help. Thank you in advance.

What I have right now is a restored discourse installation with https enabled but the vhost config file or the apache config file are not setup correctly and it shows error, of course the discourse is not showing up. (I installed the discourse having disabled the apache2 service untill the installation was done).

*The installation is working fine as long the apache is disabled

1 Like

Of course it is possible :slight_smile:

You can easily set up Apache2 as a reverse proxy in front of Discourse and there are many tutorials on meta which support this.

Here is one example here:

There are others as well, which can be found searching this site.

For example:

OBTW, a Google search turns up many hits on this topic.


You didn’t need to answer this, I already have explained I have followed a couple of tutorials without success.

I don’t know why but when apache service is started, visiting my discourse forum it redirects to a hvost I have for example but the domain for the forum is, they are not the same.

the discourse domain apache conf is

<VirtualHost *:80>

  <IfModule proxy_module>
    ProxyPreserveHost on
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/

if comeone can help

1 Like

Topic can close, problem solved.

1 Like

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