'Lost' the default config location

Francis Daly francis at daoine.org
Wed Dec 4 12:06:19 UTC 2019


On Tue, Dec 03, 2019 at 05:28:32AM -0500, chewiesw wrote:

Hi there,

> Noob here , so please bear with me.  I have a reverse proxy working so if I
> https://mysite.com/footyscore the page will launch. However if I browse to
> http or https://mysite.com the default welcome to nginx page loads. I want
> to change this (change the root) so that my roundcube webmail will launch.

It might be that just adding

  location = / { return 301 /footyscore/; }

to your config will work -- that should cause any request to
https://mysite.com/ to be invited to make a new request for
https://mysite.com/footyscore/, which should then work as it currently
does.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list