Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # borrowed from Apache
  2. # (Could use $host instead of $server_name to log vhost aliases separately)
  3. log_format vhost_combined '$server_name $remote_addr - $remote_user [$time_local] '
  4. '"$request" $status $body_bytes_sent '
  5. '"$http_referer" "$http_user_agent"';
  6.  
  7. # Define an access log for VirtualHosts that don't define their own logfile
  8. access_log /var/log/nginx/other_vhosts_access.log vhost_combined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement