rewrite Location header?

3molo nginx-forum at
Thu Feb 4 09:20:37 MSK 2010

Thanks alot for your help, Igor.

server_name already is;

Here's my complete config:

user       www-data www-data;
worker_processes  1;
error_log  logs/error.log;
pid        logs/;
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 default;
      root        /usr/local/nginx/html;

      # Proxy
      location /agilo {

      location /svn {
      location /somesite {

Posted at Nginx Forum:,49946,50284#msg-50284

More information about the nginx mailing list