nginx.conf 538 B

1234567891011121314151617181920212223242526272829
  1. worker_processes 1;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. sendfile on;
  9. keepalive_timeout 65;
  10. gzip on;
  11. server {
  12. listen 80;
  13. server_name wx.local;
  14. root /var/weewx/public_html;
  15. location / {
  16. index index.html index.htm;
  17. }
  18. error_page 500 502 503 504 /50x.html;
  19. location = /50x.html {
  20. root /usr/local/www/nginx-dist;
  21. }
  22. }
  23. }