# Ginx reverse proxy + wordpress in subdir

**URL:** <https://www.ruby-forum.com/t/ginx-reverse-proxy-wordpress-in-subdir/223591>\
**Category:** NGINX\
**Created:** [October 10, 2012, 4:49pm UTC](https://www.ruby-forum.com/t/ginx-reverse-proxy-wordpress-in-subdir/223591 "2012-10-10T16:49:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 10, 2012, 4:49pm UTC](https://www.ruby-forum.com/t/ginx-reverse-proxy-wordpress-in-subdir/223591/1 "2012-10-10T16:49:12Z")

</div>

hello @all

i have url [test.example.com/blog](http://test.example.com/blog)  
in nginx i have defined a reverse proxy

location /blog {  
proxy\_pass [http://blog.example.com/](http://blog.example.com/);  
proxy\_redirect default;  
}

all this is running very well.

in the directory I want to install wordpress.  
but the link to the wordpress install is look like

[http://test.example.com/wp-admin/setup-config.php](http://test.example.com/wp-admin/setup-config.php)

instead of  
[http://test.example.com/blog/wp-admin/setup-config.php](http://test.example.com/blog/wp-admin/setup-config.php)

is it possible to fix this on nginx side?
