Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
4.7k views
in Q2A Core by
edited by
Hi all,

I'm using nginx with varnish as the reverse proxy, which listen to port 8080 and port 80 repectively.

And the URL is rewritten to "www.domainname.com:8080" when i access my q2a site. However, i expect "www.domainname.com:80" since the varnish listen port 80;

I checked the configuration file of q2a, and there's no explicit declaration to use port 8080;

I also checked the .htaccess under q2a installation directory, neither there is any thing related to port 8080;

I wonder why this happens. Thanks.
Q2A version: 1.5.4

1 Answer

0 votes
by
the problem is due to the url rewrites of nginx redirect when input the url without trailing slash.

http://serverfault.com/questions/351212/nginx-redirects-to-port-8080-when-accessing-url-without-slash
...