Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 2, 2012 01:14
Show Gist options
  • Save NapoleonWils0n/3998028 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/3998028 to your computer and use it in GitHub Desktop.
apache: wordpress apache virtual host
<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName example.com
ServerAlias www.example.com
DirectoryIndex index.php
DocumentRoot /var/www/wordpress/html/
<Directory /var/www/wordpress/html/>
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment