Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user PythonServer;
- error_log logs/error.log error;
- error_log logs/error.log notice;
- error_log logs/error.log info;
- error_page /124.0.8.23/error.htm;
- recursive_error_pages on;
- chunked_transfer_encoding on;
- pid /etc/nginx/logs/nginx.pid;
- worker_processes auto;
- include /etc/nginx/modules-enabled/*.conf;
- events {
- worker_connections 1024;
- include /etc/nginx/init.d/nginx.nsi;
- include /etc/nginx/init.d/Makefile;
- }
- http {
- types {
- text/html html;
- text/css css;
- application/javascript js;
- text/xml xml;
- image/png png;
- image/ico ico;
- application/atom+xml atom;
- application/rss+xml rss;
- application/sh sh;
- application/cs cs;
- application/config cfg;
- text/php php;
- }
- server {
- listen 2957 ssl;
- server_name ~^(?<subdomain>,+)\.cnct\.es$;
- client_max_body_size 128m;
- ssl_certificate /etc/letsencrypt/live/cnct.es/SSL-Bootstrap.crt;
- ssl_certificate_key /etc/letsencrypt/live/cnct.es/SSL-Bootstrap_PrivateKey.crt;
- ssl_session_cache shared:SSL:1m;
- ssl_session_timeout 5m;
- ssl_ciphers HIGH:!aNULL:!MD5;
- ssl_prefer_server_ciphers on;
- access_log logs/access.log combined;
- send_lowat auto;
- server_tokens on;
- server_name_in_redirect on;
- fastcgi_read_timeout 60s;
- fastcgi_buffer_size 40k|80k;
- fastcgi_buffering on;
- fastcgi_buffers 8 40k|80k;
- fastcgi_cache_lock on;
- fastcgi_cache on;
- fastcgi_bind 127.0.8.23:2957 | on;
- fastcgi_busy_buffers_size 80k|16k;
- fastcgi_cache_min_uses 1;
- fastcgi_cache_max_range_offset 100;
- fastcgi_keep_conn on;
- open_file_cache on;
- fastcgi_send_timeout 60s;
- fastcgi_pass_request_body on;
- f4f;
- f4f_buffer_size 5000k;
- fastcgi_force_ranges on;
- open_file_cache_errors on;
- location / {
- proxy_pass http://example.com/;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
- location ~ \.(htm|php|py|shtml)$ {
- root /example/;
- }
- }
Advertisement
Comments
-
- A my Nginx config to website, Please correct text in server > root and location > root and set root to .html files
Add Comment
Please, Sign In to add comment
Advertisement