I need some enlightenment from some savants here.<br>My issue is I can't seem to get logging to work besides logging to /var/log/messages. I originally installed the non-devel port on freebsd 8.2, which actually logged to nginx-error.log for a little, until I started tweaking the config file more to my setup. I originally intended to override the log path compile options in the config file by pointing to /var/log/www/nginx-access.log I never was able to get any logging to this file though. So I went back to having the path in the config file match the compile options - /var/log/nginx-access.log<br>
Still no logging to this file and no files created. So I touched the files thinking maybe.. That didn't work and than I did a chmod/chown on the files hoping that was the issue. Still no logging and by this time no errors logging either. I only get the output in messages.<br>
I have done a lsof looking to see if any files are open yet I'm not too "bright" and didn't see any output showing logging.<br>I've looked at my syslog.conf/newsyslog.conf and didn't see any help there. <br>
I've attempted to have both global and server log configurations and neither seem to do anything for me currently.<br> I am currently running nginx -V<br>nginx: nginx version: nginx/1.1.0<br>nginx: TLS SNI support enabled<br>
nginx: 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 --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-devel/work/giom-nginx_accept_language_module-02262ce --add-module=/usr/ports/www/nginx-devel/work/ngx_http_auth_request_module-0.2 --add-module=/usr/ports/www/nginx-devel/work/agentzh-headers-more-nginx-module-137855d --with-http_dav_module --add-module=/usr/ports/www/nginx-devel/work/ngx-fancyindex-0.3.1 --add-module=/usr/ports/www/nginx-devel/work/ngx_http_gunzip_filter_module-0.3 --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_perl_module --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module --add-module=/usr/ports/www/nginx-devel/work/nginx_upload_module-2.2.0 --add-module=/usr/ports/www/nginx-devel/work/nginx_uploadprogress_module-0.8.2 --with-http_xslt_module --add-module=/usr/ports/www/nginx-devel/work/mod_zip-1.1.6 --add-module=/usr/ports/www/nginx-devel/work/agentzh-memc-nginx-module-4f1952c --with-pcre --with-syslog --with-syslog-facility=LOG_DAEMON --add-module=/usr/ports/www/nginx-devel/work/nginx_udplog_module-1.0.0 --add-module=/usr/ports/www/nginx-devel/work/agentzh-xss-nginx-module-8618dd3<br>
<br><br>My .conf file which probably has other issues with it as well. As I mentioned I have attempted several different paths for loggin in this config file and tried to remove paths to see if that made any difference.<br>
user www www;<br>worker_processes 1;<br><br>events{ worker_connections 1024;<br>}<br>http {<br> include mime.types;<br> default_type application/octet-stream;<br> log_format main '$remote_addr - $remote_user [$time_local] "$request" '<br>
'$status $body_bytes_sent "$http_referer" '<br> '"$http_user_agent" "$http_x_forwarded_for"';<br> access_log /var/log/nginx-access.log main;<br>
sendfile on;<br> tcp_nopush on;<br> tcp_nodelay on;<br> #keepalive_timeout 0;<br> keepalive_timeout 65;<br> gzip on;<br> gzip_static on;<br> gzip_buffers 16 8k;<br>
gzip_comp_level 6;<br> gzip_http_version 1.0;<br> gzip_types text/plain text/css image/x-icon image/bmp;<br> gzip_vary on;<br> gzip_min_length 1100;<br><br><br><br><br><br>server {<br>
server_name <a href="http://www.xxx.com">www.xxx.com</a> <a href="http://xxx.com">xxx.com</a>;<br> listen 80;<br> listen 443 ssl;<br> root /usr/local/www/crafty;<br> index index.php index.html index.htm;<br>
ssl_certificate /usr/local/etc/ssl/server.crt;<br> ssl_certificate_key /usr/local/etc/ssl/server.key;<br> ssl_session_timeout 5m;<br> ssl_protocols SSLv2 SSLv3 TLSv1;<br> ssl_ciphers HIGH:!aNULL:!MD5;<br>
ssl_prefer_server_ciphers on;<br> access_log /var/log/nginx-access.host.log combined;<br> error_log /var/log/nginx-error.log error;<br><br> location ~ \.htaccess {<br> deny all;<br>
}<br><br> location / {<br> if (!-e $request_filename) {<br> rewrite ^/([^?]*)(?:\?(.*))? /index.php?title=$1&$2 last;<br> rewrite ^/index\.php/([a-z]+),([0-9]+)\.(\w+)/(\w+),(\w+)/(\w+)\.html /index.php?$1=$2.$3&$4=$5&$6 last;<br>
rewrite ^/index\.php/([a-z]+),([0-9]+)\.(\w+)/(\w+),(\w+)\.html /index.php?$1=$2.$3&$4=$5 last;<br> rewrite ^/index\.php/([a-z]+),([0-9]+)\.(\w+)/(\w+)/(\w+)\.html /index.php?$1=$2.$3&$4&$5 last;<br>
rewrite ^/index\.php/([a-z]+),([0-9]+)\.(\w+)/(\w+)\.html /index.php?$1=$2.$3&$4 last;<br> rewrite ^/index\.php/([a-z]+),([0-9]+)/(\w+),(\w+)\.html /index.php?$1=$2&$3=$4 last;<br>
rewrite ^/index\.php/([a-z]+),([0-9]+)\.(\w+)\.html /index.php?$1=$2.$3 last;<br> }<br> if ($uri ~* "\.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$") {<br> expires max;<br>
break;<br> }<br> error_page 404 /404.html;<br> location = /404.html {<br> root /usr/local/www/crafty;<br> }<br> # redirect server error pages to the static page /50x.html<br>
#<br> error_page 500 502 503 504 /50x.html;<br> location = /50x.html {<br> root /usr/local/www/crafty;<br> }<br><br> }<br><br> location ~* \.php$ {<br> if (!-e $request_filename) {<br>
return 404;<br> }<br> root /usr/local/www/crafty;<br> include /usr/local/etc/nginx/fastcgi_params;<br> #if ($uri !~ "^/images/") {<br>
fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br> fastcgi_index index.php;<br> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br> }<br>
}<br><br>}<br><br>my google powers have let me down and the only thing I have found in searching on this is issues with past versions but nothing for current.<br>I have tried all methods of stopping/starting the daemon. From using the rc.d script to pkill to calling the binary -s to rebooting the server.<br>
I'm at a lost right now, I thought a reinstall of devel would help but I'm at the same place I was 30 hours ago.<br>