Welcome! Log In Create A New Profile

Advanced

disable_symlinks + FreeBSD 7.*

July 26, 2012 10:20AM
Под FreeBSD 7.4 (amd64/i386) при установке последней стабильной версий nginx, доступной в портах (nginx-1.2.2,1) не работает директива disable_symlinks. Ошибка:

# /usr/local/etc/rc.d/nginx start
Performing sanity check on nginx configuration:
nginx: [emerg] unknown directive "disable_symlinks" in /usr/local/etc/nginx/nginx.conf:59
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
Starting nginx.
nginx: [emerg] unknown directive "disable_symlinks" in /usr/local/etc/nginx/nginx.conf:59

что приводит к полной парализации работы веб-сервиса.

проблемная строка в конфиге nginx:
disable_symlinks if_not_owner from=/home/test1/data/www/test.ru;


версия используемого ПО:

OS: FreeBSD 7.4 amd64

# /usr/local/sbin/nginx -v
nginx version: nginx/1.2.2

nginx собран из портов. использовались следующие опции:

# /usr/local/sbin/nginx -V
nginx version: nginx/1.2.2
built by gcc 4.2.1 20070719 [FreeBSD]
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_gzip_static_module --with-http_stub_status_module --with-pcre --with-http_ssl_module

Проблема стабильно повторяется на FreeBSD 7.4. На ОС FreeBSD 8.3 и 9.0 такой проблемы с теми же версиями ПО нет.
Subject Author Posted

disable_symlinks + FreeBSD 7.*

alexstream July 26, 2012 10:20AM

Re: disable_symlinks + FreeBSD 7.*

Валентин Бартенев July 26, 2012 10:58AM

Re: disable_symlinks + FreeBSD 7.*

alexstream July 26, 2012 11:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
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