Skip to content

Instantly share code, notes, and snippets.

@kastner
Created November 27, 2011 23:57
Show Gist options
  • Save kastner/1398498 to your computer and use it in GitHub Desktop.
Save kastner/1398498 to your computer and use it in GitHub Desktop.
LIBEXECDIR=/usr/libexec/apache2
*.lock.*
*.pid
RewriteEngine On
RewriteRule foo index.php [L]
PidFile httpd.pid
LockFile httpd.lock
LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog "| cat >&2"
CustomLog "| cat" common
<FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
# PHPIniDir /Volumes/EtsyDotCom/conf/
DirectoryIndex index.html index.php
<?php
echo "Hi";
web: httpd -X -f app.conf -d `pwd` -C "LoadModule authz_host_module $LIBEXECDIR/mod_authz_host.so" -C "LoadModule php5_module $LIBEXECDIR/libphp5.so" -C "LoadModule dir_module $LIBEXECDIR/mod_dir.so" -C "LoadModule mime_module $LIBEXECDIR/mod_mime.so" -C "LoadModule rewrite_module $LIBEXECDIR/mod_rewrite.so" -C "LoadModule log_config_module $LIBEXECDIR/mod_log_config.so" -C "Listen $PORT" -C "AddType application/x-httpd-php .php" -C "DocumentRoot `pwd`" -DFOREGROUND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment