Skip to content

Instantly share code, notes, and snippets.

@bytefade
Created September 16, 2015 13:50
Show Gist options
  • Save bytefade/0d07d087da24663d48f0 to your computer and use it in GitHub Desktop.
Save bytefade/0d07d087da24663d48f0 to your computer and use it in GitHub Desktop.
virtualhost, mod rewrite e wordpress
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName domain.dev
ServerAlias www.domain.dev
DocumentRoot /var/www/path/of/domain
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/path/of/domain>
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment