This file contains hidden or 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
require 'webrick' | |
PORT = 7999 | |
server = WEBrick::HTTPServer.new( | |
Port: PORT, | |
BindAddress: '0.0.0.0', | |
Logger: WEBrick::Log.new('/dev/null') | |
) |
This file contains hidden or 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: Forwarded Host Support | |
Description: Allows the blog to be accessed with via X-Forwarded-Host servername. | |
Author: blahed | |
Version: 0.0.1 | |
Author URI: http://forwardhq.com/ | |
*/ |
This file contains hidden or 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
#!/bin/bash | |
SITES_AVAILABLE_DIR=/etc/nginx/sites-available | |
SITES_ENABLED_DIR=/etc/nginx/sites-enabled | |
function print_usage() { | |
echo "nginx-site -e <site name> to enable" | |
echo "nginx-site -d <site name> to disable" | |
} |