In short everything is working -- but one minor detail.
I have PcComputerGuy.com and InthePublicSquare.com on my linode running LAMP.
I have added RoundCube for mail. I want anyone that goes to
http://webmail.MyDomains.com to go to
httpS://webmail.mydomains.com.
OK: IF I go to
httpS://webmail.mydomains.com all is perfect. both end up at roundcube w/ SSL.
PROBLEM: If I go to
http://webmail.mydomains.com for some unknown reason to me, I get the homepage
http://www.InthePublicsquare.com.
DESIRED: Instead of redirection to
http://www.InThePublicSquare.com - I'd like to find out what, where is telling it to do that, and instead have it go to
httpS://webmail.mydomains.com.
I'm sure I can accomplish this via some rewrite rules and such, but there is something wrong somewhere. I cant figure out why it's ending up at
http://www.inthepublicsquare.com.
Here are the VH Files.
Code:
# domain: PcComputerGuy.com
# public: /home/njellis/public/PcComputerGuy.com/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin ****@PcComputerGuy.com
ServerName PcComputerGuy.com
ServerAlias www.PcComputerGuy.com
DocumentRoot /home/njellis/public/PcComputerGuy.com/public
<Directory /home/njellis/public/PcComputerGuy/public>
Include /etc/apache2/conf/DrupalDirectory.conf
</Directory>
#Podcast Subsite
<Directory /home/njellis/public/PcComputerGuy.com/public/podcast>
DirectoryIndex index.php
# Options Indexes FollowSymLinks MultiViews
# AllowOverride All
# Order allow,deny
# Allow from all
</Directory>
# Log file locations
LogLevel warn
ErrorLog /home/njellis/public/log/PCCG/error.log
CustomLog /home/njellis/public/log/PCCG/access.log combined
Include /etc/apache2/conf/DrupalRewrite.conf
</VirtualHost>
############ SSL VirtualHost ###################
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
# Admin email, Server Name (domain name), and any aliases
ServerAdmin ****@PcComputerGuy.com
ServerName PcComputerGuy.com
ServerAlias www.PcComputerGuy.com
DocumentRoot /home/njellis/public/PcComputerGuy.com/public
<Directory /home/njellis/public/PcComputerGuy/public>
Include /etc/apache2/conf/DrupalDirectory.conf
</Directory>
# Log file locations
LogLevel warn
ErrorLog /home/njellis/public/PcComputerGuy.com/log/error.log
CustomLog /home/njellis/public/PcComputerGuy.com/log/access.log combined
Include /etc/apache2/conf/DrupalRewrite.conf
</VirtualHost>
Website ITPS
Code:
# domain: InThePublicSquare.com
# public: /home/njellis/public/InThePublicSquare.com/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin ****@inthepublicsquare.com
ServerName InThePublicSquare.com
ServerAlias www.InThePublicSquare.com
DocumentRoot /home/njellis/public/InThePublicSquare.com
<Directory /home/njellis/public/InThePublicSquare.com>
Include /etc/apache2/conf/DrupalDirectory.conf
</Directory>
# Log file locations
LogLevel warn
ErrorLog /home/njellis/public/log/ITPS/error.log
CustomLog /home/njellis/public/log/ITPS/access.log combined
Include /etc/apache2/conf/DrupalRewrite.conf
</VirtualHost>
RoundCube:
Code:
# Those aliases do not work properly with several hosts on your apache server
# Uncomment them to use it or adapt them to your configuration
# Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
# Alias /roundcube /var/lib/roundcube
# Access to tinymce files
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
ServerAdmin ****@pccomputerguy.com
ServerName webmail.pccomputerguy.com
ServerAlias mail.* webmail.*
DocumentRoot /var/lib/roundcube
Alias /program/js/tiny_mce/ /usr/share/tinymce/www/
<Directory "/usr/share/tinymce/www/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory /var/lib/roundcube/>
Options +FollowSymLinks
# This is needed to parse /var/lib/roundcube/.htaccess. See its
# content before setting AllowOverride to None.
AllowOverride All
order allow,deny
allow from all
</Directory>
# Protecting basic directories:
<Directory /var/lib/roundcube/config>
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/lib/roundcube/temp>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>
<Directory /var/lib/roundcube/logs>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>
</VirtualHost>
Thanks ahead for reading and your suggestions!