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;
}
}
Subject Author Posted

Rewrite or proxy_pass to internal ip ?

hristoc October 29, 2012 04:03AM

Re: Rewrite or proxy_pass to internal ip ?

Francis Daly October 29, 2012 05:52AM

Re: Rewrite or proxy_pass to internal ip ?

hristoc October 29, 2012 06:43AM

Re: Rewrite or proxy_pass to internal ip ?

Francis Daly October 29, 2012 05:06PM

Re: Rewrite or proxy_pass to internal ip ?

hristoc October 30, 2012 04:51AM

Re: Rewrite or proxy_pass to internal ip ?

Francis Daly October 30, 2012 03:50PM

Re: Rewrite or proxy_pass to internal ip ?

hristoc October 31, 2012 05:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready