Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. [emerg] 55#55: "server" directive is not allowed here in /etc/nginx/nginx.conf:1
  2.  
  3. user www-data;
  4. worker_processes 4;
  5. pid /run/nginx.pid;
  6.  
  7. events {
  8. worker_connections 768;
  9. }
  10.  
  11. http {
  12. sendfile on;
  13. tcp_nopush on;
  14. tcp_nodelay on;
  15. keepalive_timeout 65;
  16. types_hash_max_size 2048;
  17. server_tokens off;
  18. client_max_body_size 500M;
  19.  
  20. include /etc/nginx/mime.types;
  21. default_type application/octet-stream;
  22.  
  23. access_log /var/log/nginx/access.log;
  24. error_log /var/log/nginx/error.log;
  25.  
  26. gzip on;
  27. gzip_disable "msie6";
  28.  
  29. include /etc/nginx/conf.d/*.conf;
  30. include /etc/nginx/sites-enabled/*;
  31. }
  32.  
  33. sudo nginx -t
  34.  
  35. /var/log/nginx/error.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement