Help Required: Host name modification.

Maxim Dounin mdounin at
Sat Jul 31 02:22:34 MSD 2010


On Tue, Jul 27, 2010 at 04:58:49PM +0530, Sougata Pal. wrote:

> I have tried the following config, but it is generating error while
> restarting the server.
> *Error: *[emerg]: unknown "new_host" variable
> server {
>   listen 80;
>   server_name ~(?P<new_host>.*)\.xyz\.com;

Named captures in regular expression are supported in 0.8.25+.  
You are probably using an older version.

Maxim Dounin

More information about the nginx mailing list