:80> DocumentRoot DocumentRoot ServerName ServerAlias ServerAdmin webmaster@ ErrorLog /log/error.log ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html Options None AllowOverride Indexes AuthConfig Limit FileInfo Order allow,deny Allow from all # cgi enabled ScriptAlias /cgi-bin/ /cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl # ssi enabled AddType text/html .shtml AddOutputFilter INCLUDES .shtml # suexec enabled SuexecUserGroup # mod_php enabled AddType application/x-httpd-php .php .php3 .php4 .php5 # suphp enabled suPHP_Engine on # suPHP_UserGroup AddHandler x-httpd-suphp .php .php3 .php4 .php5 suPHP_AddHandler x-httpd-suphp # php as cgi enabled AddType application/x-httpd-php .php .php3 .php4 .php5 # php as fast-cgi enabled AddHandler fcgid-script .php .php3 .php4 .php5 FCGIWrapper .php Options FollowSymLinks +ExecCGI Indexes AllowOverride None Order allow,deny Allow from all RewriteEngine on RewriteCond %{HTTP_HOST} ^ [NC] RewriteRule ^/(.*)$ $1 [] php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@" #php_admin_value open_basedir :/usr/share/php5 php_admin_value upload_tmp_dir /tmp php_admin_value session.save_path /tmp ########################################################### # SSL Vhost ########################################################### :443> DocumentRoot ServerName ServerAlias ServerAdmin webmaster@ ErrorLog /log/error.log ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html SSLEngine on SSLCertificateFile /ssl/.crt SSLCertificateKeyFile /ssl/.key SSLCACertificateFile /ssl/.bundle # cgi enabled ScriptAlias /cgi-bin/ /cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl # ssi enabled AddType text/html .shtml AddOutputFilter INCLUDES .shtml # suexec enabled SuexecUserGroup # mod_php enabled AddType application/x-httpd-php .php .php3 .php4 .php5 # suphp enabled suPHP_Engine on suPHP_UserGroup AddHandler x-httpd-php .php .php3 .php4 .php5 suPHP_AddHandler x-httpd-php # php as cgi enabled AddType application/x-httpd-php .php .php3 .php4 .php5 RewriteEngine on RewriteCond %{HTTP_HOST} ^ [NC] RewriteRule ^/(.*)$ $1 [] php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@" #php_admin_value open_basedir :/usr/share/php5 php_admin_value upload_tmp_dir /tmp php_admin_value session.save_path /tmp