How can I use Nginx alongside the Discourse Instance?
How can I use Nginx alongside the Discourse Instance?
I can to install Discourse in subdomain (discourse.example.com:8000).
How Configure your current nginx (home/admin/conf/web/nginx.conf) that show my site in browser by go to discourse.example.com not discourse.example.com:8000?
How Configure your current nginx (home/admin/conf/web/nginx.conf) that show my site in browser by go to discourse.example.com not discourse.example.com:8000?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: How can I use Nginx alongside the Discourse Instance?
You can create/copy a new template and replace the web port.
Copy an template file to /usr/local/vesta/data/templates/web/nginx/discourse.tpl
And replace:
proxy_pass http://%ip%:%web_port%;
with
proxy_pass http://%ip%:8000;
Copy an template file to /usr/local/vesta/data/templates/web/nginx/discourse.tpl
And replace:
proxy_pass http://%ip%:%web_port%;
with
proxy_pass http://%ip%:8000;
Re: How can I use Nginx alongside the Discourse Instance?
Problem solved, soo changetjebbeke wrote:You can create/copy a new template and replace the web port.
Copy an template file to /usr/local/vesta/data/templates/web/nginx/discourse.tpl
And replace:
proxy_pass http://%ip%:%web_port%;
with
proxy_pass http://%ip%:8000;
location @fallback {
proxy_pass http://%ip%:%web_port%;
}