redirect joomla url to dns name

Francis Daly francis at daoine.org
Tue Dec 4 15:11:55 UTC 2012


On Tue, Dec 04, 2012 at 08:20:37AM -0500, srinivasa.nallapati wrote:

Hi there,

>  GET 
> http://srinivas.walkingtree.in/joomla/components/com_virtuemart/assets/css/facebox.css
> 404 (Not Found) /:12

What file, on what server, does that "facebox.css" correspond to?

If you issue the request with "curl -i", can you see whether the 404
message came from nginx or from something else?

Untested, but I suspect that you want either

  location / {
    proxy_pass http://192.168.1.203;
    # the rest of the config goes here
  }

or

  location /joomla/ {
    proxy_pass http://192.168.1.203/joomla/;
    # the rest of the config goes here
  }
  location = / {
    return 301 /joomla/;
  }

to achieve what you want -- but it's not yet clear exactly what you want.

http://nginx.org/r/proxy_pass for details.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list