Loading...
 

TLS httpd.conf

VirtualDocumentRoot “/data/www/secure/%0”

Listen 80
Listen 443
ServerAdmin hostmaster at website.com
VirtualScriptAlias /data/www/%0/cgi-bin
ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.

LogLevel debug
CustomLog /var/log/apache2/access.log combined

<Directory “/data/www/data/secure/%0”>
Options -Indexes +FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
SSLRequireSSL
SSLOptions +StrictRequire
AuthType Basic
RLimitCPU 1 2
RLimitMEM 8000000 8000000
RLimitNPROC 40 40
</Directory>

<Directory /data/www/secure/%0/cgi-bin/>
Options ExecCGI -Indexes
SetHandler cgi-script
AddHandler cgi-script .cgi
SSLRequireSSL
SSLOptions +StrictRequire
AllowOverride None
Order allow,deny
Allow from all
RLimitCPU 1 2
RLimitMEM 8000000 8000000
RLimitNPROC 40 40
</Directory>


<Directory “/usr/share/doc/”>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>


# To turn off SSL and enable non-HTTPS sites on the same server

NameVirtualHost *:80
<VirtualHost *:80>
SSLEngine Off
ServerAdmin hostmaster at website.com
VirtualDocumentRoot /data/www/unsecure/%0
<Directory />
Options FollowSymLinks -Indexes
AllowOverride all
DirectoryIndex index.html index.php
Order Allow,Deny
Allow From All
RLimitCPU 1 2
RLimitMEM 8000000 8000000
RLimitNPROC 40 40
</Directory>

<Directory /data/www/unsecure/%0/cgi-bin/>
Options ExecCGI -Indexes
SetHandler cgi-script
AddHandler cgi-script .cgi
AllowOverride None
Order allow,deny
Allow from all
RLimitCPU 1 2
RLimitMEM 8000000 8000000
RLimitNPROC 40 40
</Directory>

</VirtualHost>