Thank you very much! I knew I overlooked something stupid. That was it exactly. Works as expected now.<br>*embarrassed* "More sleep less, I can finish this up any time now.."<br><br><br><div class="gmail_quote">On Tue, Aug 9, 2011 at 1:53 AM, Stefan Caunter <span dir="ltr"><<a href="mailto:stef@caunter.ca">stef@caunter.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On Tue, Aug 9, 2011 at 1:30 AM, Mike L <<a href="mailto:jackoroses@gmail.com">jackoroses@gmail.com</a>> wrote:<br>
> I need some enlightenment from some savants here.<br>
> My issue is I can't seem to get logging to work besides logging to<br>
> /var/log/messages. I originally installed the non-devel port on freebsd 8.2,<br>
> which actually logged to nginx-error.log for a little, until I started<br>
> tweaking the config file more to my setup. I originally intended to override<br>
> the log path compile options in the config file by pointing to<br>
> /var/log/www/nginx-access.log I never was able to get any logging to this<br>
> file though. So I went back to having the path in the config file match the<br>
> compile options - /var/log/nginx-access.log<br>
> Still no logging to this file and no files created. So I touched the files<br>
> thinking maybe.. That didn't work and than I did a chmod/chown on the files<br>
> hoping that was the issue. Still no logging and by this time no errors<br>
> 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<br>
> "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<br>
> 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<br>
> /usr/local/include' --with-ld-opt='-L /usr/local/lib'<br>
> --conf-path=/usr/local/etc/nginx/nginx.conf<br>
> --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid<br>
> --error-log-path=/var/log/nginx-error.log --user=www --group=www<br>
> --with-file-aio --with-ipv6<br>
> --http-client-body-temp-path=/var/tmp/nginx/client_body_temp<br>
> --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp<br>
> --http-proxy-temp-path=/var/tmp/nginx/proxy_temp<br>
> --http-scgi-temp-path=/var/tmp/nginx/scgi_temp<br>
> --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp<br>
> --http-log-path=/var/log/nginx-access.log<br>
> --add-module=/usr/ports/www/nginx-devel/work/giom-nginx_accept_language_module-02262ce<br>
> --add-module=/usr/ports/www/nginx-devel/work/ngx_http_auth_request_module-0.2<br>
> --add-module=/usr/ports/www/nginx-devel/work/agentzh-headers-more-nginx-module-137855d<br>
> --with-http_dav_module<br>
> --add-module=/usr/ports/www/nginx-devel/work/ngx-fancyindex-0.3.1<br>
> --add-module=/usr/ports/www/nginx-devel/work/ngx_http_gunzip_filter_module-0.3<br>
> --with-http_flv_module --with-http_geoip_module<br>
> --with-http_gzip_static_module --with-http_image_filter_module<br>
> --with-http_perl_module --with-http_realip_module --with-http_ssl_module<br>
> --with-http_stub_status_module<br>
> --add-module=/usr/ports/www/nginx-devel/work/nginx_upload_module-2.2.0<br>
> --add-module=/usr/ports/www/nginx-devel/work/nginx_uploadprogress_module-0.8.2<br>
> --with-http_xslt_module<br>
> --add-module=/usr/ports/www/nginx-devel/work/mod_zip-1.1.6<br>
> --add-module=/usr/ports/www/nginx-devel/work/agentzh-memc-nginx-module-4f1952c<br>
> --with-pcre --with-syslog --with-syslog-facility=LOG_DAEMON<br>
<br>
</div></div>Looks like you've told nginx to log to syslog, not a file, so you<br>
would need to set logging facility and location in the config for<br>
syslogd.<br>
If that's not what you want, recompile without that option and you'll<br>
get your log files back.<br>
<div class="im"><br>
> --add-module=/usr/ports/www/nginx-devel/work/nginx_udplog_module-1.0.0<br>
> --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<br>
> mentioned I have attempted several different paths for loggin in this config<br>
> 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]<br>
> "$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>
<br>
</div>see<br>
<a href="http://wiki.nginx.org/CoreModule#error_log" target="_blank">http://wiki.nginx.org/CoreModule#error_log</a><br>
<br>
you need something like:<br>
error_log /var/log/nginx-vhostname-error.log info;<br>
<br>
for your included servers, or in nginx.conf somewhere.<br>
<div><div></div><div class="h5"><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" target="_blank">www.xxx.com</a> <a href="http://xxx.com" target="_blank">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<br>
> last;<br>
> rewrite<br>
> ^/index\.php/([a-z]+),([0-9]+)\.(\w+)/(\w+),(\w+)/(\w+)\.html<br>
> /index.php?$1=$2.$3&$4=$5&$6 last;<br>
> rewrite<br>
> ^/index\.php/([a-z]+),([0-9]+)\.(\w+)/(\w+),(\w+)\.html<br>
> /index.php?$1=$2.$3&$4=$5 last;<br>
> rewrite<br>
> ^/index\.php/([a-z]+),([0-9]+)\.(\w+)/(\w+)/(\w+)\.html<br>
> /index.php?$1=$2.$3&$4&$5 last;<br>
> rewrite<br>
> ^/index\.php/([a-z]+),([0-9]+)\.(\w+)/(\w+)\.html /index.php?$1=$2.$3&$4<br>
> last;<br>
> rewrite<br>
> ^/index\.php/([a-z]+),([0-9]+)/(\w+),(\w+)\.html /index.php?$1=$2&$3=$4<br>
> last;<br>
> rewrite ^/index\.php/([a-z]+),([0-9]+)\.(\w+)\.html<br>
> /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" target="_blank">127.0.0.1:9000</a>;<br>
> fastcgi_index index.php;<br>
> fastcgi_param SCRIPT_FILENAME<br>
> $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<br>
> 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<br>
> 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<br>
> at the same place I was 30 hours ago.<br>
><br>
<br>
</div></div>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br>