Sample Apache virtual host configuration (sub-domain)

From Metro Studios Knowledgebase

Jump to: navigation, search
# Notes : Sandbox development area for sites in development.
#
# domain: sandbox1.metro-studios.com
# public: /var/www/vhosts/sandbox1.metro-studios.com/httpdocs
# - NameVirtualHost sandbox1.metro-studios.com
<VirtualHost 173.203.210.153:80>
 
        ServerAdmin     [email protected]
        ServerName      sandbox1.metro-studios.com
        ServerAlias     sandbox1.metro-studios.com *.sandbox1.metro-studios.com
 
        DocumentRoot    /var/www/vhosts/sandbox1.metro-studios.com/httpdocs
 
        <Directory />
                Options None
                AllowOverride None
        </Directory>
 
        <Directory /var/www/vhosts/sandbox1.metro-studios.com/>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
 
        LogLevel        warn
        ErrorLog        /var/www/vhosts/sandbox1.metro-studios.com/logs/error.log
        CustomLog       /var/www/vhosts/sandbox1.metro-studios.com/logs/access.log combined
 
</VirtualHost>
Personal tools
Namespaces
Variants
Actions
Wiki Navigation
Knowledgebase
Toolbox