Something Odd... Roundcube going to WebsiteB on System
I have PcComputerGuy.com and InthePublicSquare.com on my linode running LAMP.
I have added RoundCube for mail. I want anyone that goes to
OK: IF I go to
PROBLEM: If I go to
DESIRED: Instead of redirection to
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
Here are the VH Files.
# 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="">Include /etc/apache2/conf/DrupalDirectory.conf</directory>
#Podcast Subsite
<directory home="" njellis="" public="" pccomputerguy.com="" 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="">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
# 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:
# 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!
4 Replies
- this is because InthePublicSquare.com is the default domain on your IP address so they probably don't know where to point and end up showing the contents of the default domain.
Using httpS points both to the RoundCube install, which is what you want.
You can fix this easy enough using redirects in htaccess - even if it's just for now (until you fine tune your config).
So
I want
I also want
Something, somewhere is wrong and is sending
I think I understand what you mean about it just serving the default page. However, pccomputerguy.com was the first domain, inthepublicsquare was just added a couple days ago. Also if you go to something else that would "confuse" the server, such as joe.pccomputerguy.com or joe.inthepublicsquare.com, you get nothing; so for those "unknown" things it bombs. So that would suggest that it isn't that my config is just sending "unknwon" stuff to inthepublicsquare, but rather it does know somewhere, it just knows wrong! Haha.
Thanks for your suggestion. I'd really like to know what's wrong and fix that, rather than band-aid with a redirect.
if you go to
Clearly your VPS has a touch of Multiple Domain Disorder
However the same problem still persists. I've attempted to move roundcube config as the very first file (before pccomputerguy) and that didn't work. It didnt work at the end either. I still have the same issue.