Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Proxy Pass Redirect Problem (3 replies)

$
0
0
Not sure if this is my configuration causing this symptom or openresty.

Here is whats happening.

If I try to access the store "admin"
via: http://mysite.com/admin

I am getting proxy redirects sent to my browser and seeing
127.0.0.1:8000/admin in my address bar.

Not exactly the result I was looking for.

Any pointers where I should look?

Running ngx_openresty/1.4.3.6

Here is my config

location / {
root html;
index index.php index.html index.htm;
try_files $uri @store;
}
location @wsgi {
include uwsgi_params;
uwsgi_pass unix://tmp/spften.sock;
}

location @store {
include uwsgi_params;
proxy_pass http://127.0.0.1:8000$uri;
proxy_intercept_errors on;
#recursive_error_pages on;
error_page 404, 502 = @wsgi;
}

Thanks in advance for any pointers.


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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>