0

We have run nginx open source on windows using stream access_log successfully.

When we try to run nginx open source on ubuntu using stream access_log, it is not allowed.

Is there a way to enable stream server access_log in nginx open source on ubuntu?

David Ringsmuth
  • 325
  • 1
  • 12
  • Show config and nginx version – Alexey Ten Mar 24 '17 at 06:10
  • stream server access_log fails on: nginx version: nginx/1.10.0 (Ubuntu) Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial – David Ringsmuth Mar 24 '17 at 15:00
  • stream server access_log works on: nginx version: nginx/1.11.5 (nginx-plus-r11) Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial – David Ringsmuth Mar 24 '17 at 15:00
  • stream { ssl_certificate /etc/ssl/nginx/x.com.crt; #public ssl_certificate_key /etc/ssl/nginx/x.com.key; #private ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; ssl_session_timeout 1h; ssl_handshake_timeout 30s; log_format main '$remote_addr $time_iso8601 ' '$protocol status $bytes_sent $bytes_received ' '$session_time ' '$upstream_bytes_sent $upstream_bytes_received $upstream_connect_time'; upstream YTA {server 127.0.0.1:21960;} server {listen 21966 ssl; proxy_pass YTA; access_log /var/logs/YTA.log main; } } – David Ringsmuth Mar 24 '17 at 15:03
  • http://nginx.org/en/docs/stream/ngx_stream_log_module.html was introduced in version 1.11.4 – Alexey Ten Mar 24 '17 at 15:05
  • Don't post config in comments. Edit your question. Anyway, you need newer version of nginx. – Alexey Ten Mar 24 '17 at 15:06
  • https://www.nginx.com/resources/wiki/start/topics/tutorials/install/#ubuntu-ppa – Alexey Ten Mar 24 '17 at 15:10
  • Thanks for directing me on posting the config. I ran the sudo apt-get update and sudo apt-get upgrade, and it did not update to a newer open-source version. Does that mean I'm on the newest open source version? – David Ringsmuth Mar 24 '17 at 15:22
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/138951/discussion-between-alexey-ten-and-david-ringsmuth). – Alexey Ten Mar 24 '17 at 15:26

0 Answers0