Welcome! Log In Create A New Profile

Advanced

Re: redirect joomla url to dns name

Francis Daly
December 04, 2012 07:22AM
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@daoine.org

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

redirect joomla url to dns name

srinivasa.nallapati December 04, 2012 04:10AM

Re: redirect joomla url to dns name

Francis Daly December 04, 2012 07:22AM

Re: redirect joomla url to dns name

srinivasa.nallapati December 04, 2012 07:34AM

Re: redirect joomla url to dns name

Antonio P.P. Almeida December 04, 2012 07:42AM

Re: redirect joomla url to dns name

srinivasa.nallapati December 04, 2012 07:48AM

Re: redirect joomla url to dns name

srinivasa.nallapati December 04, 2012 08:16AM

Re: redirect joomla url to dns name

srinivasa.nallapati December 04, 2012 08:20AM

Re: redirect joomla url to dns name

Francis Daly December 04, 2012 10:14AM

Re: redirect joomla url to dns name

srinivasa.nallapati December 04, 2012 10:46AM

Re: redirect joomla url to dns name

Francis Daly December 04, 2012 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready