Created
September 23, 2010 02:08
-
-
Save anonymous/592948 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 127.0.0.1:443> | |
DocumentRoot /Users/adrian/Projects/hosting/platforms/DRUPAL-6 | |
ServerName redir.dev | |
SetEnv db_type mysql | |
SetEnv db_name redirdev | |
SetEnv db_user redirdev | |
SetEnv db_passwd aptrJFKSBq | |
SetEnv db_host Moya.local | |
SetEnv db_port 3306 | |
# Enable SSL handling. | |
SSLEngine on | |
SSLCertificateFile /Users/adrian/Projects/hosting/config/server_master/ssl.d/redir.dev/openssl.crt | |
SSLCertificateKeyFile /Users/adrian/Projects/hosting/config/server_master/ssl.d/redir.dev/openssl.key | |
ServerAlias alias1.redir.dev | |
ServerAlias alias2.redir.dev | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} alias1.redir.dev [OR] | |
RewriteCond %{HTTP_HOST} alias2.redir.dev [NC] | |
RewriteRule ^/*(.*)$ https://redir.dev/$1 [L,R=301] | |
# Extra configuration from modules: | |
# Error handler for Drupal > 4.6.7 | |
<Directory "/Users/adrian/Projects/hosting/platforms/DRUPAL-6/sites/redir.dev/files"> | |
SetHandler This_is_a_Drupal_security_line_do_not_remove | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:80> | |
DocumentRoot /Users/adrian/Projects/hosting/platforms/DRUPAL-6 | |
ServerName redir.dev | |
SetEnv db_type mysql | |
SetEnv db_name redirdev | |
SetEnv db_user redirdev | |
SetEnv db_passwd aptrJFKSBq | |
SetEnv db_host Moya.local | |
SetEnv db_port 3306 | |
ServerAlias alias1.redir.dev | |
ServerAlias alias2.redir.dev | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} redir.dev [OR] | |
RewriteCond %{HTTP_HOST} alias1.redir.dev [OR] | |
RewriteCond %{HTTP_HOST} alias2.redir.dev [NC] | |
RewriteRule ^/*(.*)$ https://redir.dev/$1 [L,R=301] | |
# Extra configuration from modules: | |
# Error handler for Drupal > 4.6.7 | |
<Directory "/Users/adrian/Projects/hosting/platforms/DRUPAL-6/sites/redir.dev/files"> | |
SetHandler This_is_a_Drupal_security_line_do_not_remove | |
</Directory> | |
</VirtualHost> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment