php - Koken: Force overwriting the URL -
I have a website running Status is that I installed varnish on port : 80
And it redirects everything to Nginx, which is on the port : 8080
.
Now I want Nginx to write an error message when someone tries to access it from the outside (port : 8080
), I want all Some first be managed by varnish.
Problem: You can not set a custom URL in Koken, so all posts on my site http://foo.com:8080/bar
redirects.
Do you know how URLs can be banned in a custom URL?
Thanks for the reply, Balint
Adding it to your nginx.conf Try:
port_in_redirect closed;
This should keep 8080 out of your URL