Created
March 7, 2011 16:18
-
-
Save terrafied/858702 to your computer and use it in GitHub Desktop.
production-ssl
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
<VirtualHost *:80> | |
RedirectMatch /sti_offset_air(.*)$ https://64.79.208.238/sti_offset_air$1 | |
ServerAdmin info@sustainabletravel.com | |
DocumentRoot /var/www/production | |
ServerName sustainabletravelinternational.org | |
ServerAlias chinook.sustainabletravelinternational.org www.sustainabletravelinternational.org sustainabletravel.com chinook.sustainabletravel.com | |
<Directory /var/www/production> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride None | |
Order allow,deny | |
allow from all | |
</Directory> | |
ErrorLog /var/log/apache2/error.log | |
# Possible values include: debug, info, notice, warn, error, crit, | |
# alert, emerg. | |
LogLevel warn | |
CustomLog /var/log/apache2/access.log combined | |
ServerSignature On | |
RewriteEngine on | |
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) | |
RewriteRule .* - [F] | |
RewriteLog /var/log/httpd/httpd_rewrite_log | |
RewriteLogLevel 1 | |
RewriteCond %{REQUEST_URI} !^(/foo|/img|/js|/css|/robots\.txt|/favicon\.ico) | |
RewriteRule ^\/green\/(.*)$ /index_green.php/$1 [L] | |
RewriteRule ^\/scripts/membership(.*)$ /scripts/sti_redirect.php [L] | |
RewriteRule ^\/documents/op_carbonoffsets.html$ /documents/carbonoffsets.html [L] | |
RewriteRule ^\/documents/au_contactus.html$ /index_green.php/contact/contact [L] | |
RewriteRule ^\/documents/op_ecocertification.html$ /scripts/op_ecocertification.php/ [L] | |
RewriteRule ^\/documents/op_tp.html$ /documents/travelersphilanthropy.html [L] | |
</VirtualHost> |
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
<VirtualHost _default_:443> | |
ServerAdmin webmaster@localhost | |
RedirectMatch /sti_offset_air(.*)$ https://64.79.208.238/sti_offset_air$1 | |
<Directory /var/www/production> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride None | |
Order allow,deny | |
allow from all | |
</Directory> | |
DocumentRoot /var/www/production | |
ServerName sustainabletravelinternational.org | |
ServerAlias chinook.sustainabletravelinternational.org www.sustainabletravelinternational.or | |
g | |
ErrorLog /var/log/apache2/production-ssl_error.log | |
# Possible values include: debug, info, notice, warn, error, crit, | |
# alert, emerg. | |
LogLevel warn | |
CustomLog /var/log/apache2/production-ssl_access.log combined | |
# SSL Engine Switch: | |
# Enable/Disable SSL for this virtual host. | |
SSLEngine on | |
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL | |
SSLCertificateKeyFile /etc/apache2/ssl/main.key | |
# SSLCertificateFile /etc/apache2/ssl/dev.crt | |
SSLCertificateFile /etc/apache2/ssl/geotrust.crt | |
SSLCACertificateFile /etc/apache2/ssl/intermediate.crt | |
<FilesMatch "\.(cgi|shtml|phtml|php)$"> | |
SSLOptions +StdEnvVars | |
</FilesMatch> | |
<Directory /usr/lib/cgi-bin> | |
SSLOptions +StdEnvVars | |
</Directory> | |
BrowserMatch "MSIE [2-6]" \ | |
nokeepalive ssl-unclean-shutdown \ | |
downgrade-1.0 force-response-1.0 | |
# MSIE 7 and newer should be able to use keepalive | |
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown | |
RewriteEngine On | |
RewriteLog /var/log/apache2/httpd_rewrite_log | |
RewriteLogLevel 1 | |
RewriteCond %{REQUEST_URI} !^(/img|/js|/css|/robots\.txt|/favicon\.ico) | |
# RewriteRule ^\/green\/(.*)$ /index_green.php/$1 [L] | |
RewriteRule ^\/sti_offset(.*)$ /index_cal.php/sti_offset$1 [L] | |
RewriteRule ^\/offsets(.*)$ /index_sti.php/offsets$1 [L] | |
RewriteRule ^\/payment(.*)$ /index_cal.php/payment$1 [L] | |
RewriteRule ^\/its_admin\/(.*)$ /index_its_admin.php/$1 [L] | |
RewriteRule ^\/membership(.*)$ /index.php/membership$1 [L] | |
RewriteRule ^\/green\/(.*)$ /index_green.php/$1 [L] | |
RewriteRule ^\/scripts/membership(.*)$ /scripts/sti_redirect.php [L] | |
RewriteRule ^\/step(.*)$ /index_stiweb.php$1 [L] | |
RewriteRule ^\/sti/membership(.*)$ /sti/membership.php$1 [L] | |
RewriteRule ^\/documents/op_carbonoffsets.html$ /documents/carbonoffsets.html [L] | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment