Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: wrong format when displaying nodejs page

$
0
0
OK, I think I see the point, but how do I fix it. Because I thought with

proxy_pass http://127.0.0.1:2368/ghost;

I am forwarding the port 80 to 2368.

Maybe I should show more of my config file:
Sorry and many thanks

####################
## port 80 intern ##
####################

server {
listen 80;
server_name 192.168.100.67;
root /var/www;
index index.php index.htm index.html index.js;

############################
## Abschnitt ghost intern ##
############################
location /blog {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:2368/ghost;
proxy_redirect off;

}
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>