Last active
February 17, 2016 07:40
-
-
Save syammohanmp/89e2ba8e6e45b0df2009 to your computer and use it in GitHub Desktop.
Virtual host Setup with External Folder ( Apache )
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
#Windows | |
#<Directory "D:/vhosts"> | |
# Options Indexes FollowSymLinks Includes ExecCGI | |
# AllowOverride All | |
# Order allow,deny | |
# Allow from all | |
#</Directory> | |
#linux | |
<Directory "/var/vhosts"> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> |
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
#Virtual host setup Windows | |
#<VirtualHost *:80> | |
# ServerAdmin postmaster@virtualdomain1.com | |
# DocumentRoot "D:/vhosts/virtualdomain1" | |
# ServerName virtualdomain1.com | |
# ServerAlias www.virtualdomain1.com | |
# ErrorLog "logs/virtualdomain1.com-error.log" | |
# CustomLog "logs/virtualdomain1.com-access.log" combined | |
#</VirtualHost> | |
#Virtual host setup Linux | |
<VirtualHost *:80> | |
ServerAdmin postmaster@virtualdomain1.com | |
DocumentRoot "/var/vhosts/virtualdomain1" | |
ServerName virtualdomain1.com | |
ServerAlias www.virtualdomain1.com | |
ErrorLog "logs/virtualdomain1.com-error.log" | |
CustomLog "logs/virtualdomain1.com-access.log" combined | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment