Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

menage

  • Loading branch information...
commit 1aa499b9541676bfafbac31376950b380189bb6b 1 parent ed0d406
@pad92 authored
View
34 Nginx/etc/fastcgi_params
@@ -1,34 +0,0 @@
-fastcgi_param QUERY_STRING $query_string;
-fastcgi_param REQUEST_METHOD $request_method;
-fastcgi_param CONTENT_TYPE $content_type;
-fastcgi_param CONTENT_LENGTH $content_length;
-
-fastcgi_param SCRIPT_NAME $fastcgi_script_name;
-fastcgi_param REQUEST_URI $request_uri;
-fastcgi_param DOCUMENT_URI $document_uri;
-fastcgi_param DOCUMENT_ROOT $document_root;
-fastcgi_param SERVER_PROTOCOL $server_protocol;
-fastcgi_param HTTPS $https if_not_empty;
-
-fastcgi_param GATEWAY_INTERFACE CGI/1.1;
-fastcgi_param SERVER_SOFTWARE nginx;
-
-fastcgi_param REMOTE_ADDR $remote_addr;
-fastcgi_param REMOTE_PORT $remote_port;
-fastcgi_param SERVER_ADDR $server_addr;
-fastcgi_param SERVER_PORT $server_port;
-fastcgi_param SERVER_NAME $server_name;
-
-# PHP only, required if PHP was built with --enable-force-cgi-redirect
-fastcgi_param REDIRECT_STATUS 200;
-
-fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
-# http://interfacelab.com/nginx-php-fpm-apc-awesome/
-fastcgi_connect_timeout 60;
-fastcgi_send_timeout 180;
-fastcgi_read_timeout 180;
-fastcgi_buffer_size 128k;
-fastcgi_buffers 4 256k;
-fastcgi_busy_buffers_size 256k;
-fastcgi_temp_file_write_size 256k;
-fastcgi_intercept_errors on;
View
4 Nginx/etc/global/cache-control.conf
@@ -1,4 +0,0 @@
-#location ~* \.(jpg|png|gif|jpeg|css|js|mp3|wav|swf|mov|doc|pdf|xls|ppt|docx|pptx|xlsx)$ {
-# expires 24h;
-# log_not_found off;
-#}
View
4 Nginx/etc/global/errors.conf
@@ -1,4 +0,0 @@
-error_page 500 502 503 504 /50x.html;
-location = /50x.html {
- root /usr/local/www/nginx-dist;
-}
View
1  Nginx/etc/global/logs.conf
@@ -1 +0,0 @@
-access_log /var/log/nginx/$host-access.log;
View
19 Nginx/etc/global/proxy.conf
@@ -1,19 +0,0 @@
-client_body_buffer_size 128k;
-#client_max_body_size 10M;
-proxy_buffer_size 16k;
-proxy_buffering on;
-proxy_buffers 32 4k;
-proxy_busy_buffers_size 64k;
-proxy_cache_min_uses 3;
-proxy_cache_valid any 10m;
-proxy_connect_timeout 60;
-proxy_ignore_client_abort off;
-proxy_ignore_headers Expires Cache-Control;
-proxy_intercept_errors on;
-proxy_next_upstream error timeout invalid_header;
-proxy_read_timeout 60;
-proxy_redirect off;
-proxy_send_timeout 60;
-proxy_set_header Host $host;
-proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-proxy_set_header X-Real-IP $remote_addr;
View
38 Nginx/etc/global/restrictions.conf
@@ -1,38 +0,0 @@
-## Only allow these request methods ##
-if ($request_method !~ ^(GET|HEAD|POST)$ ) {
- return 444;
-}
-## Do not accept DELETE, SEARCH and other methods ##
-
-location = /favicon.ico {
- empty_gif;
- log_not_found off;
- access_log off;
-}
-
-location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
-}
-
-location ~ /\. {
- deny all;
- access_log off;
- log_not_found off;
-}
-
-# http://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html
-## Start: Size Limits & Buffer Overflows ##
-client_body_buffer_size 1K;
-client_header_buffer_size 1k;
-client_max_body_size 1m;
-large_client_header_buffers 2 1k;
-## END: Size Limits & Buffer Overflows ##
-
-## Deny certain Referers ###
-if ( $http_referer ~* (babes|forsale|girl|jewelry|love|nudit|organic|poker|porn|sex|teen) )
-{
- return 403;
-}
-##
View
50 Nginx/etc/global/wordpress-ms-subdir-wp-super-cache.conf
@@ -1,50 +0,0 @@
-# WP Super Cache rules.
-# Designed to be included from a 'wordpress-ms-...' configuration file.
-
-# Enable detection of the .gz extension for statically compressed content.
-# Comment out this line if static gzip support is not compiled into nginx.
-gzip_static on;
-
-set $supercacheuri "";
-set $supercachefile "$document_root/wp-content/cache/supercache/${http_host}${uri}index.html";
-if (-e $supercachefile) {
- set $supercacheuri "/wp-content/cache/supercache/${http_host}${uri}index.html";
-}
-
-# If this is a POST request, pass the request onto WordPress.
-if ($request_method = POST) {
- set $supercacheuri "";
-}
-
-# If there is a query string, serve the uncached version.
-if ($query_string) {
- set $supercacheuri "";
-}
-
-# Logged in users and those who have posted a comment get the non-cached version.
-if ($http_cookie ~* comment_author_|wordpress_logged_in|wp-postpass_) {
- set $supercacheuri "";
-}
-
-# Mobile browsers get the non-cached version.
-# Wastes CPU cycles if there isn't a mobile browser WP theme for the site.
-if ($http_x_wap_profile) {
- set $supercacheuri "";
-}
-
-if ($http_profile) {
- set $supercacheuri "";
-}
-
-if ($http_user_agent ~* (2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800)) {
- set $supercacheuri "";
-}
-
-if ($http_user_agent ~* (w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-)) {
- set $supercacheuri "";
-}
-
-# Stop processing if the supercache file is valid.
-if ($supercacheuri) {
- rewrite ^ $supercacheuri break;
-}
View
61 Nginx/etc/global/wordpress-ms-subdomain.conf
@@ -1,61 +0,0 @@
-# WordPress multisite subdirectory rules.
-# Designed to be included in any server {} block.
-
-# This order might seem weird - this is attempted to match last if rules below fail.
-# http://wiki.nginx.org/HttpCoreModule
-location / {
- try_files $uri $uri/ /index.php?$args;
-}
-
-# Add trailing slash to */wp-admin requests.
-rewrite /wp-admin$ $scheme://$host$uri/ permanent;
-
-# Directives to send expires headers and turn off 404 error logging.
-location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires 24h;
- log_not_found off;
-}
-
-# Pass uploaded files to wp-includes/ms-files.php.
-rewrite /files/$ /index.php last;
-
-# For multisite: Use a caching plugin that creates symlinks to the correct subdirectory structure to get some performance gains.
-set $cachetest "$document_root/wp-content/cache/ms-filemap/${host}${uri}";
-if ($uri ~ /$) {
- set $cachetest "";
-}
-if (-f $cachetest) {
- # Rewrites the URI and stops rewrite processing so it doesn't start over and attempt to pass it to the next rule.
- rewrite ^ /wp-content/cache/ms-filemap/${host}${uri} break;
-}
-
-if ($uri !~ wp-content/plugins) {
- rewrite /files/(.+)$ /wp-includes/ms-files.php?file=$1 last;
-}
-
-# Uncomment one of the lines below for the appropriate caching plugin (if used).
-#include global/wordpress-ms-subdir-wp-super-cache.conf;
-#include global/wordpress-ms-subdir-w3-total-cache.conf;
-
-# Rewrite multisite '.../wp-.*' and '.../*.php'.
-if (!-e $request_filename) {
- rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
- rewrite ^/[_0-9a-zA-Z-]+.*(/wp-admin/.*\.php)$ $1 last;
- rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
-}
-
-# Pass all .php files onto a php-fpm/php-fcgi server.
-location ~ \.php$ {
- # Zero-day exploit defense.
- # http://forum.nginx.org/read.php?2,88845,page=3
- # Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
- # Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
- try_files $uri =404;
-
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- include fastcgi_params;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
-# fastcgi_intercept_errors on;
- fastcgi_pass php;
-}
View
61 Nginx/etc/global/wordpress-ms.conf
@@ -1,61 +0,0 @@
-# WordPress multisite subdirectory rules.
-# Designed to be included in any server {} block.
-
-# This order might seem weird - this is attempted to match last if rules below fail.
-# http://wiki.nginx.org/HttpCoreModule
-location / {
- try_files $uri $uri/ /index.php?$args;
-}
-
-# Add trailing slash to */wp-admin requests.
-rewrite /wp-admin$ $scheme://$host$uri/ permanent;
-
-# Directives to send expires headers and turn off 404 error logging.
-location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires 24h;
- log_not_found off;
-}
-
-# Pass uploaded files to wp-includes/ms-files.php.
-rewrite /files/$ /index.php last;
-
-# For multisite: Use a caching plugin that creates symlinks to the correct subdirectory structure to get some performance gains.
-set $cachetest "$document_root/wp-content/cache/ms-filemap/${host}${uri}";
-if ($uri ~ /$) {
- set $cachetest "";
-}
-if (-f $cachetest) {
- # Rewrites the URI and stops rewrite processing so it doesn't start over and attempt to pass it to the next rule.
- rewrite ^ /wp-content/cache/ms-filemap/${host}${uri} break;
-}
-
-if ($uri !~ wp-content/plugins) {
- rewrite /files/(.+)$ /wp-includes/ms-files.php?file=$1 last;
-}
-
-# Uncomment one of the lines below for the appropriate caching plugin (if used).
-#include global/wordpress-ms-subdir-wp-super-cache.conf;
-#include global/wordpress-ms-subdir-w3-total-cache.conf;
-
-# Rewrite multisite '.../wp-.*' and '.../*.php'.
-if (!-e $request_filename) {
- rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
- rewrite ^/[_0-9a-zA-Z-]+.*(/wp-admin/.*\.php)$ $1 last;
- rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
-}
-
-# Pass all .php files onto a php-fpm/php-fcgi server.
-location ~ \.php$ {
- # Zero-day exploit defense.
- # http://forum.nginx.org/read.php?2,88845,page=3
- # Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
- # Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
- try_files $uri =404;
-
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- include fastcgi_params;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
-# fastcgi_intercept_errors on;
- fastcgi_pass php;
-}
View
55 Nginx/etc/global/wordpress.conf
@@ -1,55 +0,0 @@
-location / {
- try_files $uri $uri/ /index.php?$args;
-}
-#if (!-e $request_filename) {
-# rewrite ^(.+)$ /index.php?q=$1 last;
-#}
-
-rewrite /wp-admin$ $scheme://$host$uri/ permanent;
-
-location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
-}
-
-location /wp-includes/ {
- expires 7d;
-}
-location /wp-content/ {
- expires 14d;
-}
-
-# Uncomment one of the lines below for the appropriate caching plugin (if used).
-#include global/wordpress-wp-super-cache.conf;
-#include global/wordpress-w3-total-cache.conf;
-
-location /readme.html {
- return 404;
-}
-
-location ~* \.(php|inc)$ {
- if ($uri ~ "uploads") {
- return 403;
- }
- if (!-f $request_filename) {
- return 404;
- }
-
- if ($request_method = GET) {
- set $memcached_key $request_uri;
- memcached_pass mcache;
- error_page 404 = @wpnocache;
- }
- if ($request_method != GET) {
- fastcgi_pass php;
- }
-}
-
-location @wpnocache {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- include fastcgi_params;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass php;
-}
View
0  Nginx/etc/htpasswd
No changes.
View
109 Nginx/etc/koi-utf
@@ -1,109 +0,0 @@
-
-# This map is not a full koi8-r <> utf8 map: it does not contain
-# box-drawing and some other characters. Besides this map contains
-# several koi8-u and Byelorussian letters which are not in koi8-r.
-# If you need a full and standard map, use contrib/unicode2nginx/koi-utf
-# map instead.
-
-charset_map koi8-r utf-8 {
-
- 80 E282AC ; # euro
-
- 95 E280A2 ; # bullet
-
- 9A C2A0 ; # &nbsp;
-
- 9E C2B7 ; # &middot;
-
- A3 D191 ; # small yo
- A4 D194 ; # small Ukrainian ye
-
- A6 D196 ; # small Ukrainian i
- A7 D197 ; # small Ukrainian yi
-
- AD D291 ; # small Ukrainian soft g
- AE D19E ; # small Byelorussian short u
-
- B0 C2B0 ; # &deg;
-
- B3 D081 ; # capital YO
- B4 D084 ; # capital Ukrainian YE
-
- B6 D086 ; # capital Ukrainian I
- B7 D087 ; # capital Ukrainian YI
-
- B9 E28496 ; # numero sign
-
- BD D290 ; # capital Ukrainian soft G
- BE D18E ; # capital Byelorussian short U
-
- BF C2A9 ; # (C)
-
- C0 D18E ; # small yu
- C1 D0B0 ; # small a
- C2 D0B1 ; # small b
- C3 D186 ; # small ts
- C4 D0B4 ; # small d
- C5 D0B5 ; # small ye
- C6 D184 ; # small f
- C7 D0B3 ; # small g
- C8 D185 ; # small kh
- C9 D0B8 ; # small i
- CA D0B9 ; # small j
- CB D0BA ; # small k
- CC D0BB ; # small l
- CD D0BC ; # small m
- CE D0BD ; # small n
- CF D0BE ; # small o
-
- D0 D0BF ; # small p
- D1 D18F ; # small ya
- D2 D180 ; # small r
- D3 D181 ; # small s
- D4 D182 ; # small t
- D5 D183 ; # small u
- D6 D0B6 ; # small zh
- D7 D0B2 ; # small v
- D8 D18C ; # small soft sign
- D9 D18B ; # small y
- DA D0B7 ; # small z
- DB D188 ; # small sh
- DC D18D ; # small e
- DD D189 ; # small shch
- DE D187 ; # small ch
- DF D18A ; # small hard sign
-
- E0 D0AE ; # capital YU
- E1 D090 ; # capital A
- E2 D091 ; # capital B
- E3 D0A6 ; # capital TS
- E4 D094 ; # capital D
- E5 D095 ; # capital YE
- E6 D0A4 ; # capital F
- E7 D093 ; # capital G
- E8 D0A5 ; # capital KH
- E9 D098 ; # capital I
- EA D099 ; # capital J
- EB D09A ; # capital K
- EC D09B ; # capital L
- ED D09C ; # capital M
- EE D09D ; # capital N
- EF D09E ; # capital O
-
- F0 D09F ; # capital P
- F1 D0AF ; # capital YA
- F2 D0A0 ; # capital R
- F3 D0A1 ; # capital S
- F4 D0A2 ; # capital T
- F5 D0A3 ; # capital U
- F6 D096 ; # capital ZH
- F7 D092 ; # capital V
- F8 D0AC ; # capital soft sign
- F9 D0AB ; # capital Y
- FA D097 ; # capital Z
- FB D0A8 ; # capital SH
- FC D0AD ; # capital E
- FD D0A9 ; # capital SHCH
- FE D0A7 ; # capital CH
- FF D0AA ; # capital hard sign
-}
View
103 Nginx/etc/koi-win
@@ -1,103 +0,0 @@
-
-charset_map koi8-r windows-1251 {
-
- 80 88 ; # euro
-
- 95 95 ; # bullet
-
- 9A A0 ; # &nbsp;
-
- 9E B7 ; # &middot;
-
- A3 B8 ; # small yo
- A4 BA ; # small Ukrainian ye
-
- A6 B3 ; # small Ukrainian i
- A7 BF ; # small Ukrainian yi
-
- AD B4 ; # small Ukrainian soft g
- AE A2 ; # small Byelorussian short u
-
- B0 B0 ; # &deg;
-
- B3 A8 ; # capital YO
- B4 AA ; # capital Ukrainian YE
-
- B6 B2 ; # capital Ukrainian I
- B7 AF ; # capital Ukrainian YI
-
- B9 B9 ; # numero sign
-
- BD A5 ; # capital Ukrainian soft G
- BE A1 ; # capital Byelorussian short U
-
- BF A9 ; # (C)
-
- C0 FE ; # small yu
- C1 E0 ; # small a
- C2 E1 ; # small b
- C3 F6 ; # small ts
- C4 E4 ; # small d
- C5 E5 ; # small ye
- C6 F4 ; # small f
- C7 E3 ; # small g
- C8 F5 ; # small kh
- C9 E8 ; # small i
- CA E9 ; # small j
- CB EA ; # small k
- CC EB ; # small l
- CD EC ; # small m
- CE ED ; # small n
- CF EE ; # small o
-
- D0 EF ; # small p
- D1 FF ; # small ya
- D2 F0 ; # small r
- D3 F1 ; # small s
- D4 F2 ; # small t
- D5 F3 ; # small u
- D6 E6 ; # small zh
- D7 E2 ; # small v
- D8 FC ; # small soft sign
- D9 FB ; # small y
- DA E7 ; # small z
- DB F8 ; # small sh
- DC FD ; # small e
- DD F9 ; # small shch
- DE F7 ; # small ch
- DF FA ; # small hard sign
-
- E0 DE ; # capital YU
- E1 C0 ; # capital A
- E2 C1 ; # capital B
- E3 D6 ; # capital TS
- E4 C4 ; # capital D
- E5 C5 ; # capital YE
- E6 D4 ; # capital F
- E7 C3 ; # capital G
- E8 D5 ; # capital KH
- E9 C8 ; # capital I
- EA C9 ; # capital J
- EB CA ; # capital K
- EC CB ; # capital L
- ED CC ; # capital M
- EE CD ; # capital N
- EF CE ; # capital O
-
- F0 CF ; # capital P
- F1 DF ; # capital YA
- F2 D0 ; # capital R
- F3 D1 ; # capital S
- F4 D2 ; # capital T
- F5 D3 ; # capital U
- F6 C6 ; # capital ZH
- F7 C2 ; # capital V
- F8 DC ; # capital soft sign
- F9 DB ; # capital Y
- FA C7 ; # capital Z
- FB D8 ; # capital SH
- FC DD ; # capital E
- FD D9 ; # capital SHCH
- FE D7 ; # capital CH
- FF DA ; # capital hard sign
-}
View
80 Nginx/etc/mime.types
@@ -1,80 +0,0 @@
-
-types {
- text/html html htm shtml;
- text/css css;
- text/xml xml;
- image/gif gif;
- image/jpeg jpeg jpg;
- application/x-javascript js;
- application/atom+xml atom;
- application/rss+xml rss;
-
- text/mathml mml;
- text/plain txt;
- text/vnd.sun.j2me.app-descriptor jad;
- text/vnd.wap.wml wml;
- text/x-component htc;
-
- image/png png;
- image/tiff tif tiff;
- image/vnd.wap.wbmp wbmp;
- image/x-icon ico;
- image/x-jng jng;
- image/x-ms-bmp bmp;
- image/svg+xml svg svgz;
- image/webp webp;
-
- application/java-archive jar war ear;
- application/mac-binhex40 hqx;
- application/msword doc;
- application/pdf pdf;
- application/postscript ps eps ai;
- application/rtf rtf;
- application/vnd.ms-excel xls;
- application/vnd.ms-powerpoint ppt;
- application/vnd.wap.wmlc wmlc;
- application/vnd.google-earth.kml+xml kml;
- application/vnd.google-earth.kmz kmz;
- application/x-7z-compressed 7z;
- application/x-cocoa cco;
- application/x-java-archive-diff jardiff;
- application/x-java-jnlp-file jnlp;
- application/x-makeself run;
- application/x-perl pl pm;
- application/x-pilot prc pdb;
- application/x-rar-compressed rar;
- application/x-redhat-package-manager rpm;
- application/x-sea sea;
- application/x-shockwave-flash swf;
- application/x-stuffit sit;
- application/x-tcl tcl tk;
- application/x-x509-ca-cert der pem crt;
- application/x-xpinstall xpi;
- application/xhtml+xml xhtml;
- application/zip zip;
-
- application/octet-stream bin exe dll;
- application/octet-stream deb;
- application/octet-stream dmg;
- application/octet-stream eot;
- application/octet-stream iso img;
- application/octet-stream msi msp msm;
-
- audio/midi mid midi kar;
- audio/mpeg mp3;
- audio/ogg ogg;
- audio/x-m4a m4a;
- audio/x-realaudio ra;
-
- video/3gpp 3gpp 3gp;
- video/mp4 mp4;
- video/mpeg mpeg mpg;
- video/quicktime mov;
- video/webm webm;
- video/x-flv flv;
- video/x-m4v m4v;
- video/x-mng mng;
- video/x-ms-asf asx asf;
- video/x-ms-wmv wmv;
- video/x-msvideo avi;
-}
View
53 Nginx/etc/nginx.conf
@@ -1,53 +0,0 @@
-user www www;
-worker_processes 10;
-worker_rlimit_nofile 32768;
-error_log /var/log/nginx/error.log;
-
-events {
- worker_connections 1024;
-}
-
-http {
- include mime.types;
- default_type application/octet-stream;
- index index.php index.html index.htm;
- client_body_timeout 10;
- client_header_timeout 10;
- keepalive_timeout 10 10;
- tcp_nodelay on;
-# limit_zone slimits $binary_remote_addr 10m;
-# limit_conn slimits 10;
- send_timeout 10;
- sendfile on;
- server_tokens off;
- tcp_nopush on;
- charset utf-8;
-
- gzip on;
- gzip_min_length 1000;
- gzip_vary on;
- gzip_comp_level 6;
- gzip_proxied any;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- gzip_buffers 16 8k;
- gzip_disable "MSIE [1-6].(?!.*SV1)";
-
- upstream php5-default {
- server unix:/var/run/php5-default.sock;
- }
-
- upstream php5-notes {
- server unix:/var/run/php5-notes.sock;
- }
-
- upstream rtor {
- server unix:/tmp/rtor.socket;
- }
-
- upstream mcache {
- server 127.0.0.1:11211;
- }
-
- #log_format combined '$host $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
- include sites-enabled/*;
-}
View
16 Nginx/etc/scgi_params
@@ -1,16 +0,0 @@
-
-scgi_param REQUEST_METHOD $request_method;
-scgi_param REQUEST_URI $request_uri;
-scgi_param QUERY_STRING $query_string;
-scgi_param CONTENT_TYPE $content_type;
-
-scgi_param DOCUMENT_URI $document_uri;
-scgi_param DOCUMENT_ROOT $document_root;
-scgi_param SCGI 1;
-scgi_param SERVER_PROTOCOL $server_protocol;
-scgi_param HTTPS $https if_not_empty;
-
-scgi_param REMOTE_ADDR $remote_addr;
-scgi_param REMOTE_PORT $remote_port;
-scgi_param SERVER_PORT $server_port;
-scgi_param SERVER_NAME $server_name;
View
36 Nginx/etc/sites-available/default
@@ -1,36 +0,0 @@
-server {
- listen 91.121.119.37:80 default;
- server_name _;
- server_name_in_redirect off;
-
- if ($http_user_agent ~* NaverBot) { return 403; }
-
- location / {
- set $no_cache "";
- if ($request_method !~ ^(GET|HEAD)$) {
- set $no_cache "1";
- }
- if ($no_cache = "1") {
- add_header Set-Cookie "_mcnc=1; Max-Age=2; Path=/";
- add_header X-Microcachable "0";
- }
- if ($http_cookie ~* "_mcnc") {
- set $no_cache "1";
- }
- proxy_no_cache $no_cache;
- proxy_cache_bypass $no_cache;
- proxy_pass http://127.0.0.1;
-
- proxy_cache microcache;
- proxy_cache_key $scheme$host$request_method$request_uri;
- proxy_cache_valid 200 1s;
- proxy_cache_use_stale updating;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_max_temp_file_size 1M;
- }
-
- access_log /var/log/nginx/default.access.log vhosts;
- error_log /var/log/nginx/default.error.log info;
-}
View
1  Nginx/etc/sites-enabled/default
View
16 Nginx/etc/uwsgi_params
@@ -1,16 +0,0 @@
-
-uwsgi_param QUERY_STRING $query_string;
-uwsgi_param REQUEST_METHOD $request_method;
-uwsgi_param CONTENT_TYPE $content_type;
-uwsgi_param CONTENT_LENGTH $content_length;
-
-uwsgi_param REQUEST_URI $request_uri;
-uwsgi_param PATH_INFO $document_uri;
-uwsgi_param DOCUMENT_ROOT $document_root;
-uwsgi_param SERVER_PROTOCOL $server_protocol;
-uwsgi_param HTTPS $https if_not_empty;
-
-uwsgi_param REMOTE_ADDR $remote_addr;
-uwsgi_param REMOTE_PORT $remote_port;
-uwsgi_param SERVER_PORT $server_port;
-uwsgi_param SERVER_NAME $server_name;
View
126 Nginx/etc/win-utf
@@ -1,126 +0,0 @@
-
-# This map is not a full windows-1251 <> utf8 map: it does not
-# contain Serbian and Macedonian letters. If you need a full map,
-# use contrib/unicode2nginx/win-utf map instead.
-
-charset_map windows-1251 utf-8 {
-
- 82 E2809A ; # single low-9 quotation mark
-
- 84 E2809E ; # double low-9 quotation mark
- 85 E280A6 ; # ellipsis
- 86 E280A0 ; # dagger
- 87 E280A1 ; # double dagger
- 88 E282AC ; # euro
- 89 E280B0 ; # per mille
-
- 91 E28098 ; # left single quotation mark
- 92 E28099 ; # right single quotation mark
- 93 E2809C ; # left double quotation mark
- 94 E2809D ; # right double quotation mark
- 95 E280A2 ; # bullet
- 96 E28093 ; # en dash
- 97 E28094 ; # em dash
-
- 99 E284A2 ; # trade mark sign
-
- A0 C2A0 ; # &nbsp;
- A1 D18E ; # capital Byelorussian short U
- A2 D19E ; # small Byelorussian short u
-
- A4 C2A4 ; # currency sign
- A5 D290 ; # capital Ukrainian soft G
- A6 C2A6 ; # borken bar
- A7 C2A7 ; # section sign
- A8 D081 ; # capital YO
- A9 C2A9 ; # (C)
- AA D084 ; # capital Ukrainian YE
- AB C2AB ; # left-pointing double angle quotation mark
- AC C2AC ; # not sign
- AD C2AD ; # soft hypen
- AE C2AE ; # (R)
- AF D087 ; # capital Ukrainian YI
-
- B0 C2B0 ; # &deg;
- B1 C2B1 ; # plus-minus sign
- B2 D086 ; # capital Ukrainian I
- B3 D196 ; # small Ukrainian i
- B4 D291 ; # small Ukrainian soft g
- B5 C2B5 ; # micro sign
- B6 C2B6 ; # pilcrow sign
- B7 C2B7 ; # &middot;
- B8 D191 ; # small yo
- B9 E28496 ; # numero sign
- BA D194 ; # small Ukrainian ye
- BB C2BB ; # right-pointing double angle quotation mark
-
- BF D197 ; # small Ukrainian yi
-
- C0 D090 ; # capital A
- C1 D091 ; # capital B
- C2 D092 ; # capital V
- C3 D093 ; # capital G
- C4 D094 ; # capital D
- C5 D095 ; # capital YE
- C6 D096 ; # capital ZH
- C7 D097 ; # capital Z
- C8 D098 ; # capital I
- C9 D099 ; # capital J
- CA D09A ; # capital K
- CB D09B ; # capital L
- CC D09C ; # capital M
- CD D09D ; # capital N
- CE D09E ; # capital O
- CF D09F ; # capital P
-
- D0 D0A0 ; # capital R
- D1 D0A1 ; # capital S
- D2 D0A2 ; # capital T
- D3 D0A3 ; # capital U
- D4 D0A4 ; # capital F
- D5 D0A5 ; # capital KH
- D6 D0A6 ; # capital TS
- D7 D0A7 ; # capital CH
- D8 D0A8 ; # capital SH
- D9 D0A9 ; # capital SHCH
- DA D0AA ; # capital hard sign
- DB D0AB ; # capital Y
- DC D0AC ; # capital soft sign
- DD D0AD ; # capital E
- DE D0AE ; # capital YU
- DF D0AF ; # capital YA
-
- E0 D0B0 ; # small a
- E1 D0B1 ; # small b
- E2 D0B2 ; # small v
- E3 D0B3 ; # small g
- E4 D0B4 ; # small d
- E5 D0B5 ; # small ye
- E6 D0B6 ; # small zh
- E7 D0B7 ; # small z
- E8 D0B8 ; # small i
- E9 D0B9 ; # small j
- EA D0BA ; # small k
- EB D0BB ; # small l
- EC D0BC ; # small m
- ED D0BD ; # small n
- EE D0BE ; # small o
- EF D0BF ; # small p
-
- F0 D180 ; # small r
- F1 D181 ; # small s
- F2 D182 ; # small t
- F3 D183 ; # small u
- F4 D184 ; # small f
- F5 D185 ; # small kh
- F6 D186 ; # small ts
- F7 D187 ; # small ch
- F8 D188 ; # small sh
- F9 D189 ; # small shch
- FA D18A ; # small hard sign
- FB D18B ; # small y
- FC D18C ; # small soft sign
- FD D18D ; # small e
- FE D18E ; # small yu
- FF D18F ; # small ya
-}
View
240 Varnish/etc/run.vcl
@@ -1,240 +0,0 @@
-backend default {
- .host = "127.0.0.1";
- .port = "80";
- .probe = {
- .url = "/ping";
- .timeout = 1s;
- .interval = 10s;
- .window = 5;
- .threshold = 2;
- }
-}
-
-acl purge {
- "127.0.0.1";
- "localhost";
-}
-
-sub hotlink_notes {
- if (
- req.http.host == "notes.depad.fr" &&
- req.url ~ "\.(js|css|jpg|jpeg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|swf)$" &&
- req.http.referer !~ "^http://notes.depad.fr/"
- )
- {
- set req.http.New-Location = regsub(req.url,"$","/");
- error 302 "No hot linking please";
- }
-}
-
-sub vcl_recv {
- if (req.restarts == 0) {
- if (req.http.x-forwarded-for) {
- set req.http.X-Forwarded-For = req.http.X-Forwarded-For + ", " + client.ip;
- } else {
- set req.http.X-Forwarded-For = client.ip;
- }
- }
- if (req.request == "PURGE") {
- if (!client.ip ~ purge) {
- error 405 "This IP is not allowed to send PURGE requests.";
- }
- return (lookup);
- }
- if (req.request == "POST") {
- return (pass);
- }
- set req.http.Cookie = regsuball(req.http.Cookie, "(^|;\s*)(__[a-z]+|has_js)=[^;]*", "");
- set req.http.Cookie = regsub(req.http.Cookie, "^;\s*", "");
- if (req.http.Cookie ~ "^\s*$") {
- unset req.http.Cookie;
- }
- if (req.http.host ~ "(?i)^notes.depad.fr$" ) {
- call hotlink_notes;
- set req.http.host = "notes.depad.fr";
- set req.backend = default;
- if (req.url ~ "/feed") {
- return (pass);
- }
- if ( req.url ~ "^/wp-(login|admin)" || req.http.Cookie ~ "wordpress_logged_in_" ) {
- return (pass);
- }
- set req.http.Cookie = regsuball(req.http.Cookie, "has_js=[^;]+(; )?", "");
- set req.http.Cookie = regsuball(req.http.Cookie, "__utm.=[^;]+(; )?", "");
- set req.http.Cookie = regsuball(req.http.Cookie, "__qc.=[^;]+(; )?", "");
- set req.http.Cookie = regsuball(req.http.Cookie, "wp-settings-1=[^;]+(; )?", "");
- set req.http.Cookie = regsuball(req.http.Cookie, "wp-settings-time-1=[^;]+(; )?", "");
- set req.http.Cookie = regsuball(req.http.Cookie, "wordpress_test_cookie=[^;]+(; )?", "");
- if (req.http.cookie ~ "^ *$") {
- unset req.http.cookie;
- }
- if (req.url ~ ".(jpeg|jpg|png|gif|ico|js|css|swf|txt|gz|zip|lzma|bz2|tgz|tbz|html|htm)$") {
- unset req.http.cookie;
- }
- if (req.http.Accept-Encoding) {
- if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") {
- remove req.http.Accept-Encoding;
- } elsif (req.http.Accept-Encoding ~ "gzip") {
- set req.http.Accept-Encoding = "gzip";
- } elsif (req.http.Accept-Encoding ~ "deflate") {
- set req.http.Accept-Encoding = "deflate";
- } else {
- remove req.http.Accept-Encoding;
- }
- }
- if (req.http.Cookie ~ "wordpress_" || req.http.Cookie ~ "comment_") {
- return (pass);
- }
- if (!req.http.cookie) {
- unset req.http.cookie;
- }
- } else {
- error 404 "Unknown virtual host";
- }
- if (req.request != "GET" &&
- req.request != "HEAD" &&
- req.request != "PUT" &&
- req.request != "POST" &&
- req.request != "TRACE" &&
- req.request != "OPTIONS" &&
- req.request != "DELETE") {
- return (pipe);
- }
- if (req.request != "GET" && req.request != "HEAD") {
- return (pass);
- }
- if (req.http.Accept-Encoding) {
- if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") {
- remove req.http.Accept-Encoding;
- } elsif (req.http.Accept-Encoding ~ "gzip") {
- set req.http.Accept-Encoding = "gzip";
- } elsif (req.http.Accept-Encoding ~ "deflate" && req.http.user-agent !~ "Internet Explorer") {
- set req.http.Accept-Encoding = "deflate";
- } else {
- remove req.http.Accept-Encoding;
- }
- }
- if (req.http.Authorization || req.http.Cookie) {
- return (pass);
- }
- return (lookup);
-}
-
-sub vcl_pass {
- return (pass);
-}
-
-sub vcl_hash {
- hash_data(req.url);
- if (req.http.host) {
- hash_data(req.http.host);
- } else {
- hash_data(server.ip);
- }
- return (hash);
-}
-
-sub vcl_hit {
- return (deliver);
-}
-
-sub vcl_miss {
- return (fetch);
-}
-
-sub vcl_fetch {
- if (req.url ~ "^/w00tw00t") {
- error 403 "Not permitted";
- }
- if ( req.url ~ ".(jpeg|jpg|png|gif|ico|js|css|txt|gz|zip|lzma|bz2|tgz|tbz|html|htm)$") {
- set beresp.ttl = 7200s;
- unset beresp.http.set-cookie;
- return (deliver);
- }
- if ( req.http.host == "notes.depad.fr" &&
- ( req.url ~ "^/tag" || req.url ~ "^/category")
- ) {
- set beresp.ttl = 7200s;
- unset beresp.http.set-cookie;
- return (deliver);
- }
- if (beresp.ttl <= 0s ||
- beresp.http.Set-Cookie ||
- beresp.http.Vary == "*") {
- /*
- * Mark as "Hit-For-Pass" for the next 2 minutes
- */
- set beresp.ttl = 120 s;
- return (hit_for_pass);
- }
-}
-
-sub vcl_deliver {
- remove resp.http.X-Varnish;
- remove resp.http.Via;
- remove resp.http.Server;
- remove resp.http.X-Powered-By;
- return (deliver);
-}
-
-sub vcl_error {
- if (obj.status == 302) {
- set obj.http.Location = "http://notes.depad.fr";
- } else {
- set obj.http.Content-Type = "text/html; charset=utf-8";
- set obj.http.Retry-After = "5";
- synthetic {"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta charset="utf-8">
- <meta autor="MonPoney">
- <meta http-equiv="Pragma" content="no-cache">
- <title>Error "} + obj.status + " " + obj.response + {"</title>
- <style>
- @charset "utf-8";
- body {
- font-family:Arial, Helvetica, sans-serif;
- font-size:16px;
- font-weight:100;
- background-color: #f9f8f8;
- }
- h4 {
- text-align:center;
- margin-top:50px;
- }
- #accueil {
- background-color:white;
- border:1px solid #ccc;
- width:980px;
- height:500px;
- margin-left:auto;
- margin-right:auto;
- margin-top:50px;
- }
- #accueil p {
- font-size:12px;
- }
- </style>
- </head>
- <body>
- <div id="accueil">
- <h4>Error "} + obj.status + {"<span frown>:(</span></h4>
- <p>We're very sorry, but the page could not be loaded properly.</p>
- <p>This should be fixed very soon, and we apologize for any inconvenience.</p>
- <h4>Erreur "} + obj.status + {" <span frown>:(</span></h4>
- <p>D&eacute;sol&eacute; mais la page ne peut etre charg&eacute; correctement.</p>
- <p>Toutes nos escuses, Cela va etre fix&eacute; rapidement.</p>
- </div>
- </body>
-</html>"};
- return (deliver);
- }
-}
-
-sub vcl_init {
- return (ok);
-}
-
-sub vcl_fini {
- return (ok);
-}
View
64 Varnish/multiple_purge.sh
@@ -1,64 +0,0 @@
-#!/usr/bin/env sh
-
-SRV_PROD='192.168.1.1:81
-192.168.1.2:81'
-SRV_PREPROD='10.0.0.1:81
-10.0.0.2:81'
-
-if [ "$#" -ne "2" ]; then
- echo "Usage : $0 [prod|preprod] [js|css]"
- exit 1
-fi
-
-SRV_ENV=$1
-EXTENS=$2
-
-case $SRV_ENV in
- prod)
- for SRV in $SRV_PROD; do
- if [[ "$EXTENS" == "js" || "$EXTENS" == "css" ]]; then
- echo "$SRV : "
- curl -s -I http://$SRV/RidfowHudNanlephOo_purge_$EXTENS | grep ^HTTP
- fi
- done
- ;;
- preprod)
- for SRV in $SRV_PREPROD; do
- if [[ "$EXTENS" == "js" || "$EXTENS" == "css" ]]; then
- echo "$SRV : "
- curl -s -I http://$SRV/RidfowHudNanlephOo_purge_$EXTENS | grep ^HTTP
- fi
- done
- ;;
- *)
- echo "unknow env"
- ;;
-esac
-
-
-## Varnish Configuration ##
-
-# # ADDING ACL ALLOWED
-# acl purge {
-# "192.168.1.1";
-# "192.168.1.2";
-# "10.0.0.1";
-# "10.0.0.2";
-# "127.0.0.1";
-# }
-#
-# # ADD IN VCL_RECV
-# if (req.url ~ "^/RidfowHudNanlephOo_purge_") {
-# if (!client.ip ~ purge) {
-# error 405 "Not allowed.";
-# }
-# if (req.url ~ "css$") {
-# ban("req.http.host ~ domaine.ltd$ && req.url ~ \.css");
-# error 200 "css purge";
-# } else if (req.url ~ "js$") {
-# ban("req.http.host ~ domaine.ltd$ && req.url ~ \.js");
-# error 200 "js purge";
-# } else {
-# error 200 "nothing to do";
-# }
-# }
Please sign in to comment.
Something went wrong with that request. Please try again.