# RequestHeader set X-Base-Path

**URL:** <https://www.ruby-forum.com/t/requestheader-set-x-base-path/193967>\
**Category:** NGINX\
**Created:** [August 27, 2010, 10:22am UTC](https://www.ruby-forum.com/t/requestheader-set-x-base-path/193967 "2010-08-27T10:22:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![khine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c67d28/32.png) [@khine](https://www.ruby-forum.com/u/khine)\
**Post date:** [August 27, 2010, 10:22am UTC](https://www.ruby-forum.com/t/requestheader-set-x-base-path/193967/1 "2010-08-27T10:22:43Z")

</div>

hello,

i have this apache vhost entry,

```auto

   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

```

what will be the equivalent nginx config file for this?

thank you.

norman

Posted at Nginx Forum:

> **[RequestHeader set X-Base-Path](https://forum.nginx.org/read.php?2,124193,124193#msg-124193)**
>
> hello, i have this apache vhost entry, \[code\] \<VirtualHost \*:80\> ServerName company.domain.com ServerAlias company-limited.domain.com \<IfModule mod\_rewrite.c\> RewriteEngine On RewriteRule ^/(.\*) htt
