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-data; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; |
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
Before: | |
Transactions: 675 hits | |
Availability: 100.00 % | |
Elapsed time: 119.88 secs | |
Data transferred: 9.48 MB | |
Response time: 15.89 secs | |
Transaction rate: 5.63 trans/sec | |
Throughput: 0.08 MB/sec | |
Concurrency: 89.46 |
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
<?php | |
/** | |
* Plugin Name: Block Brute Plugins | |
* Description: Custom magic | |
* Version: 1.0 | |
* Author: Eric Mann | |
* Author URI: http://10up.com | |
* License: MIT | |
*/ | |
function block_brute_address( $ip_address ) { |
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 default; | |
server_name search.yourdomain.com; | |
# Elasticsearch private endpoint | |
location /private { | |
# IP of the webserver you want to be able to do everything | |
allow 24.84.205.111; | |
deny all; | |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDtI/I2t8HlkgAxynv0AzRnFu2/jjIKsV15F8KpNOp9YGwszqARYZVz0cetcMhV9m9uR5iCAX3NDDp3shE8bMGLmVs7Slka6RieVknUvJXwcsQ7nVbsyU/UrePfsgMfPyJo7exGFqENsvT0sricQEqSXL9OIJ4fkkCpor4lJr4cNEm18H5SGOvlaQflB0+/tZTDDmB0Q4pIFNjOyWBW0lwmErDfrB8Mg3ykvEVQB5eRpO0D2DysqUEk6ENcPnXr9JLYLUfjRxa4NqG0kjQtmTopwhU9uhgXBdnSRPsKoUdxry46+3IIt6wwmt18yAqqqX049FdNY3pJsi/pK4vWbA7r root@Fileserver | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTke3Au0dR/gnl+QEBhhWQ6SMgHaPJ3a3Q0FcRw3qIHuF8BH6auUCSv9FU0D77kiGkjThmWAHDMVuVjX9AhbS8Sq8wfk2oqQYhiDggvMAQkKkGblixbmIzYgrwdetuGThnHVA/pUNGeWaCK1V2/FHLVdrp5lUd0f1FzYank/6GGYuGJCa0K59aYdhcZCyvKLOREFF3fokLZLwXBLNkhkZZ/FPNLORBe1Xg5bv3FVKwUtH3dZ2jio+PmsdNENTN+QbCyifHPMrTYt6I4zUOG7mk5hEr091uTguWpLB4BPvNQ/KsTtOwl2HlfUnXyp2xI7fQiANTUKNal2ATL7A90gEf zacharybrown@zacharys-air |
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
// Add some debug info just before </head> | |
if ( $this->debug ) { | |
$tag = "<!--\n\tgenerated in " . $cache['timer'] . " seconds\n\t" . strlen(serialize($cache)) . " bytes batcached for " . $this->max_age . " seconds\n-->\n"; | |
if ( false !== $tag_position = strpos($output, '</head>') ) { | |
$tag = "<!--\n\tgenerated in " . $cache['timer'] . " seconds\n\t" . strlen(serialize($cache)) . " bytes batcached for " . $this->max_age . " seconds\n-->\n"; | |
$output = substr($output, 0, $tag_position) . $tag . substr($output, $tag_position); | |
} | |
} |
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
// Add some debug info just before </head> | |
if ( $batcache->debug ) { | |
if ( false !== $tag_position = strpos($batcache->cache['output'], '</head>') ) { | |
$tag = "<!--\n\tgenerated " . (time() - $batcache->cache['time']) . " seconds ago\n\tgenerated in " . $batcache->cache['timer'] . " seconds\n\tserved from batcache in " . $batcache->timer_stop(false, 3) . " seconds\n\texpires in " . ($batcache->max_age - time() + $batcache->cache['time']) . " seconds\n-->\n"; | |
$batcache->cache['output'] = substr($batcache->cache['output'], 0, $tag_position) . $tag . substr($batcache->cache['output'], $tag_position); | |
} | |
} |
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
# 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; | |
index index.html index.htm index.php; | |
# WordPress multisite files rule | |
rewrite .*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last; | |
if (!-e $request_filename) { | |
rewrite ^.+/?(/wp-.*) $1 last; | |
rewrite ^.+/?(/.*\.php)$ $1 last; |
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 { | |
##DM - uncomment following line for domain mapping | |
#listen 80 default_server; | |
server_name example.com *.example.com ; | |
##DM - uncomment following line for domain mapping | |
#server_name_in_redirect off; | |
access_log /var/log/nginx/example.com.access.log; | |
error_log /var/log/nginx/example.com.error.log; |
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 { | |
##DM - uncomment following line for domain mapping | |
#listen 80 default_server; | |
server_name example.com *.example.com ; | |
##DM - uncomment following line for domain mapping | |
#server_name_in_redirect off; | |
access_log /var/log/nginx/example.com.access.log; | |
error_log /var/log/nginx/example.com.error.log; |
OlderNewer