Skip to content

Instantly share code, notes, and snippets.

@rkjha
Created April 11, 2013 15:31
Show Gist options
  • Save rkjha/5364366 to your computer and use it in GitHub Desktop.
Save rkjha/5364366 to your computer and use it in GitHub Desktop.
Apache VirtualHost Configuration
<VirtualHost *:80>
ServerAdmin name@example.com
ServerName example.com
DocumentRoot /home/user_name/example.com/
</VirtualHost>
<VirtualHost *:80>
ServerName www.example.com
Redirect permanent / http://example.com/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment