Welcome! Log In Create A New Profile

Advanced

Re: Rewrite or proxy_pass to internal ip ?

October 31, 2012 05:24AM
Thank you,
I resolve the problem. My knowledge on nginx is little and I unable to redirect all js, html to their locations and I did not spend much time for that, but your answer give me idea that probably something in my configuration making nginx to look for these files in different places ie some logic in my config is wrong. I added new virtual host name in nginx and proxy_pass everything to internal ip and everything is work perfect. Thank you for your time.


Here is my configuration if some one looking for some similar. With this I redirect web from internel hp iLO web port to external web.

# HTTPS server

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name virt.domain1.com;

ssl on;
ssl_certificate /etc/nginx/server.crt;
ssl_certificate_key /etc/nginx/server.key;
keepalive_timeout 70;
ssl_session_cache shared:SSL:5m;
ssl_session_timeout 5m;

ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location ~ /\.ht {
deny all;
}
location / {
proxy_pass https://192.168.1.200/;
proxy_set_header Accept-Encoding "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
}
}
SubjectAuthorPosted

Rewrite or proxy_pass to internal ip ?

hristocOctober 29, 2012 04:03AM

Re: Rewrite or proxy_pass to internal ip ?

Francis DalyOctober 29, 2012 05:52AM

Re: Rewrite or proxy_pass to internal ip ?

hristocOctober 29, 2012 06:43AM

Re: Rewrite or proxy_pass to internal ip ?

Francis DalyOctober 29, 2012 05:06PM

Re: Rewrite or proxy_pass to internal ip ?

hristocOctober 30, 2012 04:51AM

Re: Rewrite or proxy_pass to internal ip ?

Francis DalyOctober 30, 2012 03:50PM

Re: Rewrite or proxy_pass to internal ip ?

hristocOctober 31, 2012 05:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready