Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How can I use Nginx alongside the Discourse Instance?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
mhh2
Posts: 14
Joined: Thu Jul 30, 2015 1:44 pm

How can I use Nginx alongside the Discourse Instance?
  • Quote

Post by mhh2 » Wed Dec 16, 2015 5:30 pm

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?
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: How can I use Nginx alongside the Discourse Instance?
  • Quote

Post by tjebbeke » Thu Dec 17, 2015 6:20 am

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;
Top

mhh2
Posts: 14
Joined: Thu Jul 30, 2015 1:44 pm

Re: How can I use Nginx alongside the Discourse Instance?
  • Quote

Post by mhh2 » Thu Dec 17, 2015 3:14 pm

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%;
}
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password