is it a good idea to use nginx pagespeed module. If possible, then can you please share your experience?
How to install nginx pagespeed module on existing centos 7 server? Which configuration shall i put in nginx.conf file?Thanks in adavance
I'm running NodeBB on a windows server with NGINX. I'd like a add bug tracker software with the subdomain bugs.mysite.com. My question is, can I have two "server" blocks in the NGINX file or is there another way of doing it. I looked around and couldn't find anything.
Yes that's precisely the way of doing it.
I'm getting a 502 Bad Gateway error when I try to connect.
This is my second "server" configuration:
server {
listen 8080;
server_name 95.172.92.232;
location / {
proxy_pass http://95.172.92.232:8080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
root C:\nodebb\nodebb\bugs;
}
Your server_name
should be bugs.mysite.com
.