Skip to content

Instantly share code, notes, and snippets.

@mindbat
Created January 29, 2013 23:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mindbat/4668885 to your computer and use it in GitHub Desktop.
sample virtual host entry for drupal on apache
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName drupal
DocumentRoot /var/www/drupal
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/drupal>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
AllowOverride All
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment