Возникла проблема в работе nginx после обновления и сборки со всеми модулями на тестовой площадке(пересобирался для проверки своего патча https://bugs.freebsd.org/bugzilla/show_ ... =200263#c4)
Вводные данные
Код: Выделить всё
nginx-1.8.0_1,2
Name : nginx
Version : 1.8.0_1,2
Installed on : Wed Jun 17 09:48:50 EEST 2015
Origin : www/nginx
Architecture : freebsd:10:x86:32
Prefix : /usr/local
Categories : www ruby perl5 ipv6
Licenses : BSD2CLAUSE
Maintainer : osa@FreeBSD.org
WWW : http://nginx.org/
Comment : Robust and small WWW server
Options :
AJP : on
ARRAYVAR : on
CACHE_PURGE : on
CLOJURE : on
DEBUG : off
DEBUGLOG : off
DRIZZLE : on
ECHO : on
ENCRYPTSESSION : on
FILE_AIO : on
FORMINPUT : on
GOOGLE_PERFTOOLS: on
GRIDFS : on
HEADERS_MORE : on
HTTP : on
HTTP_ACCEPT_LANGUAGE: on
HTTP_ACCESSKEY : on
HTTP_ADDITION : on
HTTP_AUTH_DIGEST: on
HTTP_AUTH_KRB5 : off
HTTP_AUTH_LDAP : on
HTTP_AUTH_PAM : on
HTTP_AUTH_REQ : on
HTTP_CACHE : on
HTTP_DAV : on
HTTP_DAV_EXT : on
HTTP_EVAL : on
HTTP_FANCYINDEX: on
HTTP_FLV : on
HTTP_FOOTER : on
HTTP_GEOIP : on
HTTP_GUNZIP_FILTER: on
HTTP_GZIP_STATIC: on
HTTP_IMAGE_FILTER: on
HTTP_MOGILEFS : on
HTTP_MP4 : off
HTTP_MP4_H264 : on
HTTP_NOTICE : on
HTTP_PERL : on
HTTP_PUSH : on
HTTP_PUSH_STREAM: on
HTTP_RANDOM_INDEX: on
HTTP_REALIP : on
HTTP_REDIS : on
HTTP_RESPONSE : on
HTTP_REWRITE : on
HTTP_SECURE_LINK: on
HTTP_SSL : on
HTTP_STATUS : on
HTTP_SUB : on
HTTP_SUBS_FILTER: on
HTTP_UPLOAD : on
HTTP_UPLOAD_PROGRESS: on
HTTP_UPSTREAM_FAIR: on
HTTP_UPSTREAM_STICKY: on
HTTP_XSLT : on
HTTP_ZIP : on
ICONV : on
IPV6 : on
LET : on
LUA : on
MAIL : on
MAIL_IMAP : on
MAIL_POP3 : on
MAIL_SMTP : on
MAIL_SSL : on
MEMC : on
MODSECURITY : on
NAXSI : on
PASSENGER : on
POSTGRES : on
RDS_CSV : on
RDS_JSON : on
REDIS2 : on
RTMP : on
SET_MISC : on
SFLOW : on
SLOWFS_CACHE : on
SMALL_LIGHT : on
SPDY : on
SRCACHE : on
STATSD : on
THREADS : on
UDPLOG : on
VIDEO : on
WWW : on
XRID_HEADER : on
XSS : on
Shared Libs required:
libyajl.so.2
libxslt.so.1
libxml2.so.2
libprofiler.so.0
libpq.so.5
libperl.so.5.20
libpcre.so.1
libluajit-5.1.so.2
libldap-2.4.so.2
liblber-2.4.so.2
libgd.so.5
libexslt.so.0
libexpat.so.1
libdrizzle.so.0
libcurl.so.4
libaprutil-1.so.0
libapr-1.so.0
libMagickWand-6.so.2
libMagickCore-6.so.2
libGeoIP.so.1
Annotations :
cpe : cpe:2.3:a:nginx:nginx:1.8.0:::::freebsd10:x86:1
Flat size : 3.08MiB
Description :
NGINX is a high performance edge web server with the lowest memory footprint
and the key features to build modern and efficient web infrastructure.
NGINX functionality includes HTTP server, HTTP and mail reverse proxy, caching,
load balancing, compression, request throttling, connection multiplexing and
reuse, SSL offload and HTTP media streaming.
WWW: http://nginx.org/
WWW: http://nginx.com/
Код: Выделить всё
apache24-2.4.12
Name : apache24
Version : 2.4.12
Installed on : Sat Jun 6 23:35:45 EEST 2015
Origin : www/apache24
Architecture : freebsd:10:x86:32
Prefix : /usr/local
Categories : www ipv6
Licenses :
Maintainer : apache@FreeBSD.org
WWW : http://httpd.apache.org/
Comment : Version 2.4.x of Apache web server
Options :
ACCESS_COMPAT : on
ACTIONS : on
ALIAS : on
ALLOWMETHODS : on
ASIS : on
AUTHNZ_FCGI : on
AUTHNZ_LDAP : off
AUTHN_ANON : on
AUTHN_CORE : on
AUTHN_DBD : on
AUTHN_DBM : on
AUTHN_FILE : on
AUTHN_SOCACHE : on
AUTHZ_CORE : on
AUTHZ_DBD : on
AUTHZ_DBM : on
AUTHZ_GROUPFILE: on
AUTHZ_HOST : on
AUTHZ_OWNER : on
AUTHZ_USER : on
AUTH_BASIC : on
AUTH_DIGEST : on
AUTH_FORM : on
AUTOINDEX : on
BUCKETEER : off
BUFFER : on
CACHE : on
CACHE_DISK : on
CACHE_SOCACHE : on
CASE_FILTER : off
CASE_FILTER_IN : off
CERN_META : on
CGI : on
CGID : on
CHARSET_LITE : on
DATA : on
DAV : on
DAV_FS : on
DAV_LOCK : on
DBD : on
DEFLATE : on
DIALUP : on
DIR : on
DUMPIO : on
ECHO : off
ENV : on
EXAMPLE_HOOKS : off
EXAMPLE_IPC : off
EXPIRES : on
EXT_FILTER : on
FILE_CACHE : on
FILTER : on
HEADERS : on
HEARTBEAT : on
HEARTMONITOR : on
IDENT : off
IMAGEMAP : on
INCLUDE : on
INFO : on
IPV4_MAPPED : off
LBMETHOD_BYBUSYNESS: on
LBMETHOD_BYREQUESTS: on
LBMETHOD_BYTRAFFIC: on
LBMETHOD_HEARTBEAT: on
LDAP : off
LOGIO : on
LOG_DEBUG : on
LOG_FORENSIC : on
LUA : off
LUAJIT : off
MACRO : on
MIME : on
MIME_MAGIC : on
MPM_EVENT : off
MPM_PREFORK : on
MPM_SHARED : on
MPM_WORKER : off
NEGOTIATION : on
OPTIONAL_FN_EXPORT: off
OPTIONAL_FN_IMPORT: off
OPTIONAL_HOOK_EXPORT: off
OPTIONAL_HOOK_IMPORT: off
PROXY : on
PROXY_AJP : on
PROXY_BALANCER : on
PROXY_CONNECT : on
PROXY_EXPRESS : on
PROXY_FCGI : on
PROXY_FDPASS : on
PROXY_FTP : on
PROXY_HTML : off
PROXY_HTTP : on
PROXY_SCGI : on
PROXY_WSTUNNEL : on
RATELIMIT : on
REFLECTOR : on
REMOTEIP : on
REQTIMEOUT : on
REQUEST : on
REWRITE : on
SED : on
SESSION : on
SESSION_COOKIE : on
SESSION_CRYPTO : on
SESSION_DBD : on
SETENVIF : on
SLOTMEM_PLAIN : on
SLOTMEM_SHM : on
SOCACHE_DBM : on
SOCACHE_DC : off
SOCACHE_MEMCACHE: on
SOCACHE_SHMCB : on
SPELING : on
SSL : on
STATUS : on
SUBSTITUTE : on
SUEXEC : off
UNIQUE_ID : on
USERDIR : on
USERTRACK : on
VERSION : on
VHOST_ALIAS : on
WATCHDOG : on
XML2ENC : off
Shared Libs required:
libpcre.so.1
libgdbm.so.4
libexpat.so.1
libdb-5.3.so.0
libaprutil-1.so.0
libapr-1.so.0
Annotations :
cpe : cpe:2.3:a:apache:http_server:2.4.12:::::freebsd10:x86
Flat size : 22.3MiB
Description :
The Apache HTTP Server Project is an effort to develop and maintain an
open-source HTTP server for various modern desktop and server operating
systems, such as UNIX and Windows NT. The goal of this project is to
provide a secure, efficient and extensible server which provides HTTP
services in sync with the current HTTP standards.
The 2.x branch of Apache Web Server includes several improvements like
threading, use of APR, native IPv6 and SSL support, and many more.
WWW: http://httpd.apache.org/
Код: Выделить всё
php5-5.4.42
Name : php5
Version : 5.4.42
Installed on : Mon Jun 15 10:00:58 EEST 2015
Origin : lang/php5
Architecture : freebsd:10:x86:32
Prefix : /usr/local
Categories : www lang devel
Licenses : PHP301
Maintainer : ale@FreeBSD.org
WWW : http://www.php.net/
Comment : PHP Scripting Language
Options :
CGI : on
CLI : on
DEBUG : off
DTRACE : off
EMBED : off
FPM : on
IPV6 : on
LINKTHR : on
MAILHEAD : on
ZTS : off
Shared Libs required:
libxml2.so.2
libpcre.so.1
Annotations :
cpe : cpe:2.3:a:php:php:5.4.42:::::freebsd10:x86
Flat size : 13.4MiB
Description :
PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
Source general-purpose scripting language that is especially suited for
Web development and can be embedded into HTML. Its syntax draws upon C,
Java, and Perl, and is easy to learn. The main goal of the language is to
allow web developers to write dynamically generated webpages quickly, but
you can do much more with PHP.
WWW: http://www.php.net/
Код: Выделить всё
root@router:/usr/ports/www/nginx # php -v
PHP 5.4.42 (cli) (built: Jun 15 2015 09:59:08)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
root@router:/usr/ports/www/nginx # apachectl -V
Server version: Apache/2.4.12 (FreeBSD)
Server built: Jun 6 2015 23:35:20
Server's Module Magic Number: 20120211:41
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture: 32-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/usr/local"
-D SUEXEC_BIN="/usr/local/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
-D AP_TYPES_CONFIG_FILE="etc/apache24/mime.types"
-D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"
root@router:/usr/ports/www/nginx # nginx -V
nginx version: nginx/1.8.0
built with OpenSSL 1.0.1j-freebsd 15 Oct 2014
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 --with-file-aio --with-ipv6 --with-google_perftools_module --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 --add-module=/usr/ports/www/nginx/work/nginx_accept_language_module-2f69842 --add-module=/usr/ports/www/nginx/work/nginx-accesskey-2.0.3 --with-http_addition_module --add-module=/usr/ports/www/nginx/work/nginx-http-auth-digest-bd1c86a --add-module=/usr/ports/www/nginx/work/nginx-auth-ldap-928856aa95 --add-module=/usr/ports/www/nginx/work/ngx_http_auth_pam_module-1.2 --with-http_auth_request_module --add-module=/usr/ports/www/nginx/work/nginx_ajp_module-bf6cd93 --add-module=/usr/ports/www/nginx/work/ngx_cache_purge-2.3 --add-module=/usr/ports/www/nginx/work/nginx-clojure-0.3.0/src/c --add-module=/usr/ports/www/nginx/work/echo-nginx-module-0.57 --add-module=/usr/ports/www/nginx/work/headers-more-nginx-module-0.26 --with-http_dav_module --add-module=/usr/ports/www/nginx/work/nginx-dav-ext-module-0.0.3 --add-module=/usr/ports/www/nginx/work/nginx-eval-module-1.0.3 --add-module=/usr/ports/www/nginx/work/ngx-fancyindex-0.3.4 --add-module=/usr/ports/www/nginx/work/nginx-http-footer-filter-1.2.2 --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_image_filter_module --add-module=/usr/ports/www/nginx/work/nginx_mogilefs_module-1.0.4 --add-module=/usr/ports/www/nginx/work/nginx_mod_h264_streaming-2.2.7 --add-module=/usr/ports/www/nginx/work/nginx-notice-3c95966 --with-http_perl_module --add-module=/usr/ports/www/nginx/work/nginx_http_push_module-0.692 --add-module=/usr/ports/www/nginx/work/nginx-push-stream-module-0.3.5 --with-http_random_index_module --with-http_realip_module --add-module=/usr/ports/www/nginx/work/ngx_http_redis-0.3.7 --add-module=/usr/ports/www/nginx/work/ngx_http_response-0.3 --add-module=/usr/ports/www/nginx/work/ngx_http_substitutions_filter_module-0.6.2 --with-http_secure_link_module --with-http_stub_status_module --with-http_sub_module --add-module=/usr/ports/www/nginx/work/nginx-upload-module-aba1e3f34c --add-module=/usr/ports/www/nginx/work/nginx-upload-progress-module-0.9.0 --add-module=/usr/ports/www/nginx/work/nginx_upstream_fair-20090923 --add-module=/usr/ports/www/nginx/work/nginx-goodies-nginx-sticky-module-ng-c825ea7c5c91/ --with-http_xslt_module --add-module=/usr/ports/www/nginx/work/mod_zip-1.1.6 --add-module=/usr/ports/www/nginx/work/drizzle-nginx-module-0.1.8 --add-module=/usr/ports/www/nginx/work/ngx_devel_kit-0.2.19 --add-module=/usr/ports/www/nginx/work/encrypted-session-nginx-module-0.03 --add-module=/usr/ports/www/nginx/work/nginx-gridfs-0.8 --add-module=/usr/ports/www/nginx/work/nginx-let-module-0.0.4 --add-module=/usr/ports/www/nginx/work/lua-nginx-module-0.9.15 --add-module=/usr/ports/www/nginx/work/memc-nginx-module-0.15 --add-module=/usr/ports/www/nginx/work/modsecurity-2.9.0/nginx/modsecurity --add-module=/usr/ports/www/nginx/work/naxsi-core-0.50/naxsi_src --with-pcre --add-module=/usr/ports/www/nginx/work/passenger-5.0.10/ext/nginx --add-module=/usr/ports/www/nginx/work/ngx_postgres-1.0rc5-1-g49855a0 --add-module=/usr/ports/www/nginx/work/rds-csv-nginx-module-0.05 --add-module=/usr/ports/www/nginx/work/rds-json-nginx-module-0.13 --add-module=/usr/ports/www/nginx/work/redis2-nginx-module-0.11 --add-module=/usr/ports/www/nginx/work/nginx-rtmp-module-1.1.7 --add-module=/usr/ports/www/nginx/work/set-misc-nginx-module-0.28 --add-module=/usr/ports/www/nginx/work/nginx-sflow-module-0.9.7 --add-module=/usr/ports/www/nginx/work/ngx_slowfs_cache-1.10 --add-module=/usr/ports/www/nginx/work/ngx_small_light-0.6.9 --add-module=/usr/ports/www/nginx/work/srcache-nginx-module-0.29 --add-module=/usr/ports/www/nginx/work/nginx-statsd-b756a12 --add-module=/usr/ports/www/nginx/work/nginx_udplog_module-1.0.0 --add-module=/usr/ports/www/nginx/work/nginx-x-rid-header-0daa3cc --add-module=/usr/ports/www/nginx/work/xss-nginx-module-0.04 --with-http_spdy_module --with-threads --with-mail --with-mail_ssl_module --with-http_ssl_module --add-module=/usr/ports/www/nginx/work/array-var-nginx-module-0.03 --add-module=/usr/ports/www/nginx/work/form-input-nginx-module-0.07 --add-module=/usr/ports/www/nginx/work/iconv-nginx-module-0.10
Код: Выделить всё
root@router:/usr/ports/www/nginx # cat /usr/local/etc/nginx/nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
include /usr/local/etc/nginx/conf.d/*.conf;
}
Код: Выделить всё
root@router:/usr/ports/www/nginx # cat /usr/local/etc/nginx/conf.d/flow-reports.conf
server {
listen 80;
server_name flow-reports;
charset utf-8;
access_log /var/log/nginx/flow-reports.access.log;
error_log /var/log/nginx/flow-reports.error.log;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
root /usr/local/www/flow-reports;
index index.php;
autoindex on;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
location ~ /\.ht {
deny all;
}
}
Код: Выделить всё
2015/06/17 12:12:17 [error] 26900#101230: *1 open() "/usr/local/etc/nginx/html/index.php" failed (2: No such file or directory), client: 10.1.7.113, server: flow-reports, request: "GET / HTTP/1.1", host: "flow-reports", referrer: "http://flow-reports/daily/"