Created
November 2, 2012 01:14
-
-
Save NapoleonWils0n/3998028 to your computer and use it in GitHub Desktop.
apache: wordpress apache virtual host
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
<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