Welcome! Log In Create A New Profile

Advanced

Re: rewrite proxy flag set problem

March 26, 2012 08:27AM
Hi

Let me clear my question again.

My current problem is if I used the rewrite rules my site is working(this is my testing machine so Ip just like 192.168......), but problem is it not show the original server Ip , instead it show the 192.168.1.210 at client side, I want to hide this Ip 192.168.1.210. want to show the original server IP when redirect happened.
Hope you clear with my requirement.


Now I have set this in nginx, I just give u my nginx configuration details as below


server {
listen 80;
server_name localhost;

#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;

location / {
root /var/www/vendx/html_asp;
index index.html index.shtml;
}


location \.(js|css|png|jpg|jpeg|gif|ico|html|xml)$ {}

location /auction/ {
proxy_pass http://192.168.1.210;
}


location ~ \.(cgi|pm)$ {
gzip off;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_index index.cgi;
fastcgi_param SCRIPT_FILENAME /var/www/vendx$fastcgi_script_name;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}





I am getting the following error when redirect happened ...............



2012/03/26 17:32:24 [error] 5349#0: *1 open() "/var/www/vendx/html_asp/stylesheet" failed (2: No such file or directory), client: 192.168.1.44, server: localhost, request: "GET /stylesheet HTTP/1.1", host: "192.168.1.45", referrer: "http://192.168.1.45/auction/?id=1332416535292370.0097187543142212"
2012/03/26 17:32:24 [error] 5349#0: *5 open() "/var/www/vendx/html_asp/static/images/error.png" failed (2: No such file or directory), client: 192.168.1.44, server: localhost, request: "GET /static/images/error.png HTTP/1.1", host: "192.168.1.45", referrer: "http://192.168.1.45/auction/?id=1332416535292370.0097187543142212"
2012/03/26 17:32:24 [error] 5349#0: *1 directory index of "/var/www/vendx/html_asp/scripts/" is forbidden, client: 192.168.1.44, server: localhost, request: "GET /scripts/ HTTP/1.1", host: "192.168.1.45", referrer: "http://192.168.1.45/auction/?id=1332416535292370.0097187543142212"
2012/03/26 17:32:24 [error] 5349#0: *1 open() "/var/www/vendx/html_asp/static/images/error.png" failed (2: No such file or directory), client: 192.168.1.44, server: localhost, request: "GET /static/images/error.png HTTP/1.1", host: "192.168.1.45", referrer: "http://192.168.1.45/auction/?id=1332416535292370.0097187543142212"
Subject Author Posted

rewrite proxy flag set problem

niraj March 23, 2012 07:16AM

Re: rewrite proxy flag set problem

Maxim Dounin March 23, 2012 07:52AM

Re: rewrite proxy flag set problem

niraj March 24, 2012 07:48AM

Re: rewrite proxy flag set problem

niraj March 26, 2012 05:41AM

Re: rewrite proxy flag set problem

Jonathan Matthews March 26, 2012 07:06AM

Re: rewrite proxy flag set problem

niraj March 26, 2012 07:39AM

Re: rewrite proxy flag set problem

Jonathan Matthews March 26, 2012 07:58AM

Re: rewrite proxy flag set problem

niraj March 26, 2012 08:27AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 12:29AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 01:22AM

Re: rewrite proxy flag set problem

Jonathan Matthews March 26, 2012 09:40AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 01:20AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 01:26AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 01:47AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 01:54AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 02:07AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 02:52AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 02:18AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 04:06AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 04:50AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 04:56AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 08:47AM

Re: rewrite proxy flag set problem

niraj March 28, 2012 01:31AM

Re: rewrite proxy flag set problem

niraj April 09, 2012 04:26AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 09:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready