Page 1 of 1
How can I use Nginx alongside the Discourse Instance?
Posted: Wed Dec 16, 2015 5:30 pm
by mhh2
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?
Re: How can I use Nginx alongside the Discourse Instance?
Posted: Thu Dec 17, 2015 6:20 am
by tjebbeke
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;
Re: How can I use Nginx alongside the Discourse Instance?
Posted: Thu Dec 17, 2015 3:14 pm
by mhh2
tjebbeke 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;
Problem solved, soo change
location @fallback {
proxy_pass http://%ip%:%web_port%;
}