Welcome! Log In Create A New Profile


unknown <my_host> variable

Posted by 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;

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: 76
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready