redirect joomla url to dns name
Francis Daly
francis at daoine.org
Tue Dec 4 12:20:25 UTC 2012
On Tue, Dec 04, 2012 at 04:10:51AM -0500, srinivasa.nallapati wrote:
Hi there,
> server_name srinivas.walkingtree.in;
> location / {
> proxy_set_header X-Forwarded-Host $host;
> proxy_set_header X-Forwarded-Server $host;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_pass http://192.168.1.203/joomla;
> }
> At first , When i access http://srinivas.walkingtree.in . This is working .
> If i click on any button (products), it is redirecting to
> http://192.168.1.203/joomla/products .
http://nginx.org/r/proxy_set_header
Most likely you can get it to do what you want by adding
proxy_set_header Host $host;
beside the other proxy_set_header lines.
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list