redirect joomla url to dns name

srinivasa.nallapati nginx-forum at nginx.us
Tue Dec 4 09:10:51 UTC 2012


HI All ,

my joomla application is running 192.168.1.203 system in httpd
sever,Operating system Fedora 14.
URL : http://192.168.1.203/joomla

I want redirect this url with some good name like , srinivas.walkingtree.in
(it was created by dns server for ip 192.168.1.150).

my nginx,conf file .(nginx server = 192.168.1.150)

server {
  listen 192.168.1.150:80;
  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 .

Please help me .

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,233546,233546#msg-233546



More information about the nginx mailing list