Sample Apache virtual host configuration (CGI & SSL)

From Metro Studios Knowledgebase

Jump to: navigation, search
# Notes : Secure St Luke's sub-domain informations. CGI and SSL are enabled.
#
# domain: secure.stlukescr.org
# public: /var/www/vhosts/secure.stlukescr.org/httpdocs
# - NameVirtualHost secure.stlukescr.org
 
<VirtualHost 173.203.241.221:443>
 
        ServerAdmin     [email protected]
        ServerName      secure.stlukescr.org
        ServerAlias     secure.stlukescr.org *.secure.stlukescr.org
 
        DocumentRoot    /var/www/vhosts/secure.stlukescr.org/httpdocs
 
        <Directory />
                Options None
                AllowOverride None
        </Directory>
 
        <Directory /var/www/vhosts/secure.stlukescr.org/>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
 
        <Directory /var/www/vhosts/secure.stlukescr.org/httpdocs/cgi-bin>
                Options +ExecCGI
                AddHandler cgi-script .cgi .pl
        </Directory>
 
        <Directory /var/www/vhosts/secure.stlukescr.org/httpdocs/giftshop/cgi-bin>
                Options +ExecCGI
                AddHandler cgi-script .cgi .pl
        </Directory>
 
	<Directory /var/www/vhosts/secure.stlukescr.org/httpdocs/homemedical/cgi-bin>
                Options +ExecCGI
                AddHandler cgi-script .cgi .pl
        </Directory>
 
        LogLevel        warn
        ErrorLog        /var/www/vhosts/secure.stlukescr.org/logs/error.log
        CustomLog       /var/www/vhosts/secure.stlukescr.org/logs/access.log combined
 
        SSLEngine               On
        SSLCertificateFile      /etc/apache2/ssl/secure.stlukescr.org.crt
        SSLCertificateKeyFile   /etc/apache2/ssl/crstlukes.key
 
</VirtualHost>
Personal tools
Namespaces
Variants
Actions
Wiki Navigation
Knowledgebase
Toolbox