Skip to content

Instantly share code, notes, and snippets.

@faddat
Created January 22, 2015 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faddat/aa1b6bef3a6589d6ee0d to your computer and use it in GitHub Desktop.
Save faddat/aa1b6bef3a6589d6ee0d to your computer and use it in GitHub Desktop.
Web site configs

server { listen 80 default_server;

root /var/www/fenixer; index index.html index.htm; pagespeed on;

pagespeed FileCachePath /var/ngx_pagespeed_cache;

location ~ “.pagespeed.([a-z].)?[a-z]{2}.[^.]{10}.[^.]+” { add_header “” “”; } location ~ “^/pagespeed_static/” { } location ~ “^/ngx_pagespeed_beacon$” { }

pagespeed EnableFilters insert_ga; pagespeed AnalyticsID <UA-58852800-1>;

server_name fenixer.org;

location / {

try_files $uri $uri/ =404;

} }

server { listen 80 default_server;

root /var/www/fenixer; index index.html index.htm; pagespeed on;

pagespeed FileCachePath /var/ngx_pagespeed_cache;

location ~ “.pagespeed.([a-z].)?[a-z]{2}.[^.]{10}.[^.]+” { add_header “” “”; } location ~ “^/pagespeed_static/” { } location ~ “^/ngx_pagespeed_beacon$” { }

pagespeed EnableFilters insert_ga; pagespeed AnalyticsID <UA-58852800-1>;

server_name fenixer.org;

location / {

try_files $uri $uri/ =404;

} } root@install:/etc/nginx/sites-available# cat itdawns.org

##

#

#

##

server {

pagespeed on;

pagespeed FileCachePath /var/ngx_pagespeed_cache;

location ~ “.pagespeed.([a-z].)?[a-z]{2}.[^.]{10}.[^.]+” { add_header “” “”; } location ~ “^/pagespeed_static/” { } location ~ “^/ngx_pagespeed_beacon$” { }

listen 80; listen [::]:80;

root /var/www/itdawns; index index.html index.htm;

server_name itdawns.org;

location / {

try_files $uri $uri/ =404;

}

#location /RequestDenied {

#}

#error_page 404 /404.html;

# #error_page 500 502 503 504 /50x.html; #location = /50x.html {

#}

# #location ~ .php$ {

#

#}

# #location ~ /.ht {

#} }

# #server {

#

#}

# #server {

#

#

#

#

#

#}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment