Welcome! Log In Create A New Profile

Advanced

unknown <my_host> variable

Posted by lbj 
lbj
unknown <my_host> variable
January 24, 2012 02:55AM
Добрый день, помогите пожалуйста разобраться , код в файле универсальной конфигурации , после перезапуска nginx выдает ошибку unknown <my_host> variable
Код:
server {
listen 80 default;
server_name ~^(www\.)?(?P<my_host>.+)$;
root /home/sites/$my_host/;
index index.html index.htm;
location ~* \.(css|js|txt)$
{
expires 1d;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 16k;
gzip_types text/css text/javascript application/x-javascript;

}

location ~* \.(gif|jpg|jpeg|png|ico|swf|bmp|)$
{
expires 5d;
gzip off;
}

}
lbj
Re: unknown <my_host> variable
January 24, 2012 03:50AM
Версия ОС Debian 6, версия nginx 0.7.67
Re: unknown <my_host> variable
January 26, 2012 02:35AM
server_name ~^(www\.)?(?<myhost>.+)$;
root /home/sites/$myhost/;
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 92
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready