RequestHeader set X-Base-Path

khine nginx-forum at nginx.us
Fri Aug 27 12:21:51 MSD 2010


hello,

i have this apache vhost entry,

[code]

   ServerName company.domain.com
   ServerAlias company-limited.domain.com
  
     RewriteEngine On
     RewriteRule ^/(.*)
http://localhost:8080/companies/company-limited/$1 [P]
     RequestHeader set X-Base-Path companies/company-limited
  
    RewriteLogLevel 9
    RewriteLog     "logs/company-limited_rewrite.log"
    ErrorLog       "logs/company-limited_error.log"
    CustomLog "logs/company-limited-access_log" common

[/code]

what will be the equivalent nginx config file for this?

thank you.

norman

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,124193,124193#msg-124193




More information about the nginx mailing list