Skip to content

Instantly share code, notes, and snippets.

@anehkumar
Created December 9, 2015 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anehkumar/ff6b0f9f034971e1bc77 to your computer and use it in GitHub Desktop.
Save anehkumar/ff6b0f9f034971e1bc77 to your computer and use it in GitHub Desktop.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName trinitytuts.com
ServerAdmin youremail@trinitytuts.com
#SetEnv VAR_IF_YOU_NEED_ONE VALUE
RewriteEngine on
DocumentRoot "/var/www/trinitytuts/"
LogLevel warn
ServerSignature Off
#And whatever you need take a look to apache documentation
</VirtualHost>
<VirtualHost *:80>
ServerName api.trinitytuts.com
ServerAdmin webmaster@trinitytuts.com
DocumentRoot "/var/www/api"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment