1 ################################################################
2 # Web server configuration for www.martinvillalba.com. #
3 ################################################################
9 worker_connections 1024;
14 include nginx/conf/mime.types;
15 default_type application/octet-stream;
18 client_body_buffer_size 8k;
19 client_header_buffer_size 1k;
20 client_max_body_size 1k;
21 large_client_header_buffers 1 1k;
24 client_body_timeout 60;
25 client_header_timeout 60;
26 keepalive_timeout 60 60;
30 keepalive_requests 10;
31 ignore_invalid_headers on;
32 limit_zone gulag $binary_remote_addr 1m;
33 recursive_error_pages on;
35 server_name_in_redirect off;
48 gzip_http_version 1.1;
50 gzip_types text/plain text/css image/x-icon image/x-ms-bmp
51 text/x-javascript text/xml application/xml+rss
52 application/atom+xml images/svg+xml
53 application/pdf application/xhtml+xml;
57 log_format main '$remote_addr $host $remote_user'
58 ' [$time_local] "$request" $status'
59 ' $body_bytes_sent "$http_referer"'
60 ' "$http_user_agent" "$gzip_ratio"';
62 ## Default Host (Deny All) ##
68 ## Domain Root Host (Redirect All) ##
70 listen martinvillalba.com:80;
71 server_name martinvillalba.com;
72 rewrite ^ $scheme://www.martinvillalba.com$request_uri?
76 ## WWW Host (Serve) ##
79 add_header Cache-Control public;
83 listen www.martinvillalba.com:80;
84 server_name www.martinvillalba.com;
88 access_log logs/access.log main;
89 error_log logs/error.log info;
95 ## Curse Of The Favicon ##
96 location /favicon.ico {
101 #Use default handler pages.