Skip to content

Instantly share code, notes, and snippets.

@behemphi
Created February 21, 2013 03:31
Show Gist options
  • Select an option

  • Save behemphi/5001817 to your computer and use it in GitHub Desktop.

Select an option

Save behemphi/5001817 to your computer and use it in GitHub Desktop.
basic nginx
1 user nginx;
2 worker_processes 1;
3
4 events {
5 worker_connections 1024;
6 }
7
8 http {
9 include /etc/nginx/mime.types;
10 default_type application/octet-stream;
11
12 sendfile on;
13 keepalive_timeout 65;
14
15 log_format main '[$time_local] '
16 '"$request" status:$status bytes:$body_bytes_sent ';
17
18 gzip on;
19 gzip_http_version 1.1;
20 gzip_comp_level 2;
21 gzip_types text/plain text/css
22 application/x-javascript text/xml
23 application/xml application/xml+rss
24 text/javascript;
25
26 server {
27 listen 80;
28 server_name ngx.feedmagnet.com;
29
30 access_log /var/log/nginx/boyd.log main;
31
32 location / {
33 root /var/www;
34 index index.html;
35 }
36
37 # 38 location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { 39 root /var/www;
40 expires 1m;
41 }
42 } 43 44 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment