Welcome! Log In Create A New Profile

Advanced

Re: rewrite Location header?

February 04, 2010 01:20AM
Thanks alot for your help, Igor.

server_name already is 192.168.1.100;

Here's my complete config:

user www-data www-data;
worker_processes 1;
error_log logs/error.log;
pid logs/nginx.pid;
worker_rlimit_nofile 8192;

events {
worker_connections 4096;
}

http {
include /etc/nginx/mime.types;

## Proxy options
proxy_buffering on;
proxy_cache_min_uses 3;
proxy_cache_path /usr/local/nginx/proxy_temp/ levels=1:2 keys_zone=cache:10m inactive=10m max_size=1000M;
proxy_cache_valid any 10m;
proxy_ignore_client_abort off;
proxy_intercept_errors on;
proxy_next_upstream error timeout invalid_header;
proxy_redirect off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 60;
proxy_send_timeout 60;
proxy_read_timeout 60;

default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128; # this seems to be required for some vhosts

server {
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;
index index.html;
listen 192.168.1.100:80 default;
root /usr/local/nginx/html;
server_name 192.168.1.100;

# Proxy
location /agilo {
proxy_pass http://192.168.1.9:8001/;
}

location /svn {
proxy_pass http://192.168.1.9/svn/;
}
location /somesite {
proxy_pass http://192.168.1.9:8001/somesite;
}
}
}
Subject Author Posted

rewrite Location header?

3molo February 03, 2010 08:50AM

Re: rewrite Location header?

Igor Sysoev February 03, 2010 09:28AM

Re: rewrite Location header?

3molo February 03, 2010 09:40AM

Re: rewrite Location header?

3molo February 03, 2010 09:41AM

Re: rewrite Location header?

Igor Sysoev February 03, 2010 10:04AM

Re: rewrite Location header?

3molo February 04, 2010 01:20AM

Re: rewrite Location header?

3molo February 04, 2010 01:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
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