Proxy_pass remote nginx server

Francis Daly francis at daoine.org
Tue Dec 17 20:34:51 UTC 2013


On Tue, Dec 17, 2013 at 12:18:00PM -0500, hussan wrote:

Hi there,

> 	location /blog/ {
> 	location / {
> 	location ~ "^(.+\.php)($|/)" {
> 	location ~* /\.(ht|git|svn) {

> When i try www.site.com/blog/ proxy_pass works, go to nginx server 2 , and
> my css/js are loaded fine. But when try www.site.com/blog/wp-admin/ is
> redirected to www.site.com/blog/wp-login.php (on server 1) 404 error(i dont
> have this file in server 1). 
> 
> how i can solve this? all www.site.com/blog/* trafic go to proxy_pass on
> nginx server 2 www.site2.com/* ?

http://nginx.org/r/location

You want ^~

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list