rewrite rules issue

Francis Daly francis at daoine.org
Sun Apr 19 22:50:42 UTC 2015


On Sun, Apr 19, 2015 at 09:53:43AM -0400, nicocolt wrote:

Hi there,

> I don't understand how to proceed in order to see only
> http://subdomain.domain.fr/directory/ instead of
> http://subdomain.domain.fr/subdomain/directory/

I'll still suggest

  root /var/www/domain.fr/web/subdomain;

in a separate server{} block, and then have /stats/ and /error/ locations
which do whatever else you want them to do.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list