Welcome! Log In Create A New Profile

Advanced

Re: help need (convert vhost to location)

Francis Daly
December 26, 2020 02:20PM
On Tue, Dec 15, 2020 at 07:42:00PM +0200, Gregory Edigarov wrote:

Hi there,

> I have this server section:
....
> now I need to convert this virtual server to location.
> i.e. to be called from postmaster.example.com/control/

you will probably want to wrap your current relevant location{} blocks
within a "location ^~ /control/ {}" block, and then probably also include
"alias /var/www/vexim/vexim;" within that block so that nginx will be
able to tell the fastcgi server what file it should process.

Depending on the application, you may need to tell it that it is below
/control/, so that it can adjust any internal links that it publishes.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

help need (convert vhost to location)

Gregory Edigarov December 15, 2020 12:44PM

Re: help need (convert vhost to location)

Francis Daly December 26, 2020 02:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready