Skip to content

Instantly share code, notes, and snippets.

@chrisjhoughton
chrisjhoughton / proxy.apache.conf
Last active Apr 27, 2022
Sample Nginx reverse proxy to Apache set up for Wordpress.
View proxy.apache.conf
<VirtualHost *:{PORT}>
ServerName www.yourdomain.com
ServerAdmin mail@domain.com
DocumentRoot /var/www/yourdir/
<Directory /var/www/yourdir>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
@Robbert
Robbert / message-id.php
Created Feb 16, 2013
Message-ID generator in PHP for mail headers.
View message-id.php
<?php
/**
* @see http://www.jwz.org/doc/mid.html
*/
function generateMessageID()
{
return sprintf(
"<%s.%s@%s>",
base_convert(microtime(), 10, 36),