domains point to the same site NEW ISSUE

10 posts / 0 new
Last post
#1 Sat, 10/20/2007 - 03:55
sgtg619

domains point to the same site NEW ISSUE

Hi,

I just bought and installed Virtualmin Pro on a fresh install of CentOS 5. Here is what has happened so far...

Initially I made my first virtual server - life is good.
I tried to make a second and I got the AWStat error and was unable to add another - I FIXED that.

I now have 2 virtual servers, but the first one points to the second one. I tired the fixes listed in the forums, but nothing works. I thought I might be over looking something, but I have checked and rechecked and changed settings... I haven't reinstalled because this was supposed to be a quick fix.

Any help would be great! I still have ~20 days for a refund so I am trying to get these issues worked out sooner than later.

Thanks.<br><br>Post edited by: sgtg619, at: 2007/10/20 10:44

Sat, 10/20/2007 - 04:20
sgtg619

More info...

I just deleted one of three v servers. If I use the www.deletedserver.com it still points to the first server. So this seems like a redirect problem? Please help.

Sun, 10/21/2007 - 08:48 (Reply to #2)
sgtg619

I just discovered that if I use the internet browser on the server and type in the sites just as I would normally - they all work. I am thoroughly confused now.

I thought this bit of info might help.

Pete

Sun, 10/21/2007 - 13:35 (Reply to #3)
Joe
Joe's picture

We've gotten this one figured out, and I'll summarize for posterity, in the event anyone else is seeing this.

The problem is DNS. The DNS servers configured at your registrar are still pointing at your old host. The redirect you've created is pointing to the server by IP, but the IP address (like http://192.168.1.1/) contains no hostname...so Apache only knows that you want something on the server--it has no clue what virtual host you want on the server. So it serves the first on the matches the data it has (IP and port), no matter where the request started out trying to go...the data is completely gone from the interaction by the time the browser gets around to asking your Virtualmin server for it.

The solution, of course, is to update the name server records at your registrar to point to the Virtualmin server. Or, if you don't want to let Virtualmin manage your DNS, update the current name servers to have accurate name data.

--

Check out the forum guidelines!

Sat, 10/20/2007 - 06:30
sgtg619

I just reinstalled CentOS and Virtualmin.. uninstall of Virtualmin didn't work. Same problem.

Sat, 10/20/2007 - 13:25 (Reply to #5)
Joe
Joe's picture

<div class='quote'>I just reinstalled CentOS and Virtualmin.. uninstall of Virtualmin didn't work. Same problem.</div>

Just for future reference: This is almost never a useful exercise. If it was broke the first time, there's no reason to think doing the same thing again will fix any problems.

--

Check out the forum guidelines!

Sat, 10/20/2007 - 08:21
sgtg619

When I add

Redirect / http://www.oneofourchurchsites.org/

as suggested in post 7123
and try to restart apache I get error

Redirect takes two or three arguments, an optional status, then document to be redirected and destination url. The entry is as follows:

&lt;VirtualHost 15.111.11.111:80&gt;
SuexecUserGroup &quot;#501&quot; &quot;#502&quot;
ServerName server.com
ServerAlias www.server.com
ServerAlias lists.server.com
redirect /http://www.server.com
DocumentRoot /home/server/public_html
ErrorLog /home/server/logs/error_log
CustomLog /home/server/logs/access_log combined
ScriptAlias /cgi-bin/ /home/server/cgi-bin/
ScriptAlias /awstats /home/server/cgi-bin
DirectoryIndex index.html index.htm index.php index.php4 index.php5
&lt;Directory /home/server/public_html&gt;
Options Indexes IncludesNOEXEC FollowSymLinks ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/server/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/qserver/fcgi-bin/php5.fcgi .php5
&lt;/Directory&gt;
&lt;Directory /home/server/cgi-bin&gt;
allow from all
&lt;/Directory&gt;
RemoveHandler .php
RemoveHandler .php5
Alias /dav /home/server/public_html
Alias /pipermail /var/lib/mailman/archives/public
&lt;Location /dav&gt;
DAV On
AuthType Basic
AuthName server.com
AuthUserFile /home/server/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
&lt;/Location&gt;
RedirectMatch /cgi-bin/mailman/([^/]*)(.*) https://server.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
RedirectMatch /mailman/([^/]*)(.*) https://server.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
&lt;/VirtualHost&gt;

Sat, 10/20/2007 - 13:33 (Reply to #7)
Joe
Joe's picture

<div class='quote'>Redirect / http://www.oneofourchurchsites.org/</div>

This would have nothing to do with your problem--and wouldn't do anything good. I'm not seeing where anyone suggested such a redirect in the three at 7123...if anyone did, it's definitely not good advice for this problem.

In other words: Don't do it. (It's actually kind of a nonsensical redirect.)

--

Check out the forum guidelines!

Sat, 10/20/2007 - 13:30
Joe
Joe's picture

<div class='quote'>Any help would be great! I still have ~20 days for a refund so I am trying to get these issues worked out sooner than later.</div>

You have as long as you need for a refund--if the software doesn't work for you, we would never refuse to issue a refund. Ever.

<div class='quote'>I tried to make a second and I got the AWStat error and was unable to add another - I FIXED that.</div>

What AWStats error?

<div class='quote'>I now have 2 virtual servers, but the first one points to the second one. I tired the fixes listed in the forums, but nothing works. I thought I might be over looking something, but I have checked and rechecked and changed settings... I haven't reinstalled because this was supposed to be a quick fix.</div>

This one is always easy to fix.

It's either:

1. IP mismatch--you've told Virtualmin to setup hosts on an IP address that Apache isn't configured to deal with for virtual hosting. Check the NameVirtualHost directives (&quot;NameVirtualHost *&quot; is pretty much always wrong on a virtual hosting system and if you have one for an IP that doesn't match the VirtualHost sections later, that would also be a danger sign). Virtualmin tries to guess these things during installation, but if you have multiple interfaces, it can guess the wrong one, and you'll need to correct it in the Virtualmin Module Configuration.

2. VirtualHost misconfiguration. Again, * is pretty much always the wrong choice in a virtual hosting system (but a very common mistake), and having any that don't match the NameVirtualHost directive(s) will also cause breakage.

3. DNS pointing to the wrong address. This one seems unlikely in your case.

--

Check out the forum guidelines!

Sat, 10/20/2007 - 13:35
sgtg619

Joe,

Thanks for the help. I just got your email. I will let you know whats going on in a few...

Pete

Topic locked