Welcome! Log In Create A New Profile

Advanced

Re: Proxy_pass remote nginx server

Francis Daly
December 18, 2013 08:00AM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy_pass remote nginx server

hussan December 17, 2013 12:18PM

Re: Proxy_pass remote nginx server

Francis Daly December 18, 2013 08:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready