This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastcgi_cache_path /dev/shm/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m inactive=60m; | |
fastcgi_cache_path /dev/shm/life-cache levels=1:2 keys_zone=life.1798.in:100m inactive=60m; | |
fastcgi_cache_key "$scheme$request_method$host$request_uri"; | |
fastcgi_cache_use_stale error timeout invalid_header http_500; | |
fastcgi_ignore_headers Cache-Control Expires Set-Cookie; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (function_exists('iconv') && PHP_VERSION_ID < 50600) | |
{ | |
// These are settings that can be set inside code | |
iconv_set_encoding("internal_encoding", "UTF-8"); | |
iconv_set_encoding("input_encoding", "UTF-8"); | |
iconv_set_encoding("output_encoding", "UTF-8"); | |
} | |
elseif (PHP_VERSION_ID >= 50600) | |
{ | |
ini_set("default_charset", "UTF-8"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www www; | |
worker_processes auto; | |
error_log /data/wwwlogs/error_nginx.log crit; | |
pid /var/run/nginx.pid; | |
worker_rlimit_nofile 51200; | |
events { | |
use epoll; | |
worker_connections 51200; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server | |
{ | |
listen 80; | |
server_name gtour.info www.gtour.info; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name gtour.info www.gtour.info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/nginx/sbin/nginx -V | |
nginx version: nginx/1.9.9 | |
built by gcc 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC) | |
built with OpenSSL 1.0.1e-fips 11 Feb 2013 | |
TLS SNI support enabled | |
configure arguments: --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-ipv6 --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModPagespeed On | |
ModPagespeedInheritVHostConfig on | |
ModPagespeedFileCachePath "/var/cache/mod_pagespeed/" | |
ModPagespeedEnableFilters combine_css,combine_javascript | |
# Direct Apache to send all HTML output to the mod_pagespeed | |
# output handler. | |
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html | |
NameVirtualHost *:80 | |
<VirtualHost *:80> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@vps ~]# curl -I http://yourDomain.com/ | |
HTTP/1.1 200 OK | |
Server: nginx | |
Date: Mon, 27 Apr 2015 02:51:40 GMT | |
Content-Type: text/html;charset=utf-8 | |
Connection: keep-alive | |
Vary: Accept-Encoding | |
Cache-Control: no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0 | |
Pragma: no-cache | |
Expires: Mon, 27 Apr 2015 02:51:40 GMT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function _xss_check() { | |
$_SERVER['REQUEST_URI'] = preg_replace("/(&|\?)fb_action(.*?)$/i", "", $_SERVER['REQUEST_URI']); | |
$temp = strtoupper(urldecode(urldecode($_SERVER['REQUEST_URI']))); | |
if(strpos($temp, '<') !== false || strpos($temp, '"') !== false || strpos($temp, 'CONTENT-TRANSFER-ENCODING') !== false) { | |
system_error('request_tainting'); | |
} | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN W3TC Browser Cache | |
<IfModule mod_mime.c> | |
AddType text/css .css | |
AddType text/x-component .htc | |
AddType application/x-javascript .js | |
AddType application/javascript .js2 | |
AddType text/javascript .js3 | |
AddType text/x-js .js4 | |
AddType text/html .html .htm | |
AddType text/richtext .rtf .rtx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.avt img{-moz-border-radius: 50%; | |
-webkit-border-radius: 50%; | |
border-radius: 50%; | |
} | |
.bui .m img { | |
-moz-border-radius: 50%; | |
-webkit-border-radius: 50%; | |
border-radius: 50%; | |
height: 110px; |
NewerOlder