I just read that. It seems that it mainly is about dns. Currently I am doing this all internal network for testing purposes. I on all my sites I have bind set to the proper dns address of 192.168.0.7.

I just removed apache2 and reinstalled it completely and I'm still having the same basic difficulties when setting up multiple sites with webmin.

I first remove the blank virtual server and then add three test virtual servers:

dom1.com on address 192.168.0.7
port 80
dom2.net on address 192.168.0.7
port 80
mail.dom3.org on address 192.168.0.7
port 443

I get these errors:
Sun Apr 27 15:27:43 2008] [warn] VirtualHost 192.168.0.7:80 overlaps with VirtualHost 192.168.0.7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sun Apr 27 15:27:43 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
[Sun Apr 27 15:27:43 2008] [notice] Apache/2.2.4 (Ubuntu) mod_ssl/2.2.4 OpenSSL/0.9.8e configured -- resuming normal operations


----- Original Message -----
From: "Joe Cooper" <joe@virtualmin.com>
To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
Sent: Sunday, April 27, 2008 2:59:19 PM GMT -08:00 US/Canada Pacific
Subject: Re: [webmin-l] website ssl issue

See this section of the Virtualmin troubleshooting guide (I know you
aren't using Virtualmin--though it would probably save you a lot of time
for what you're doing):

http://www.virtualmin.com/documentation/id,troubleshooting_common_problems/#the_wrong_site_shows_up

Richard wrote:
> ok looks like I did the fixed dance a little too early... :( Now all http sites go to the first domain's document root. And i'm back to square one with https not working...
>
> ----- Original Message -----
> From: "Richard" <richard@cornbread.cc>
> To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
> Sent: Sunday, April 27, 2008 1:06:48 PM GMT -08:00 US/Canada Pacific
> Subject: Re: [webmin-l] website ssl issue
>
> HOLY CRAP@! that worked! I restarted apache remotely and no errors! but I'll have to go check it out to see the full effect!
>
> THANKS JAMIE!
>
> ----- Original Message -----
> From: "Jamie Cameron" <jcameron@webmin.com>
> To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
> Sent: Sunday, April 27, 2008 12:51:51 PM GMT -08:00 US/Canada Pacific
> Subject: Re: [webmin-l] website ssl issue
>
>
>
> Try changing the line :
>
> NameVirtualHost 192.168.0.7
>
> to :
>
> NameVirtualHost 192.168.0.7:80
>
> and restarting Apache. Without the port number, Apache may be incorrectly using the SSL virtual host even for non-SSL requests ..
>
> - Jamie
>
>
> On 26/Apr/2008 23:16 Richard wrote ..
>
> I do want to clarify that I do love what cameron has created. I also want to clarify that I was pulling my hair out over looking through guides and having people in the apache channel only telling me "read the manual". And my statement was that it sucked when it came to apache. Now that I've cooled down a bit I'm ready to give it another go.
>
> That being said on to the issue:
>
> I don't know why it this info is not in my httpd.conf file because when I set the virtual domains up I told it to put them in httpd.conf.
>
> This was on the bottom of my apache2.conf
>
> # Include the virtual host configurations:
> Include /etc/apache2/sites-enabled/
> NameVirtualHost 192.168.0.7
> <VirtualHost 192.168.0.7:80>
> DocumentRoot "/var/www/apache2-default"
> ServerName test.com
> <Directory "/var/www/apache2-default">
> allow from all
> Options +Indexes
> </Directory>
> </Virtu alHost>
> <VirtualHost 192.168.0.7:80>
> DocumentRoot "/var/www/webalizer"
> ServerName stats.com.
> <Directory "/var/www/webalizer">
> allow from all
> Options +Indexes
> </Directory>
> </VirtualHost>
> <VirtualHost 192.168.0.7:443>
> DocumentRoot "/var/www/roundcubemail"
> ServerName mail.roundcube.com
> <Directory "/var/www/roundcubemail">
> allow from all
> Options +Indexes
> </Directory>
> </VirtualHost>
>
> These are test domains so that I can eventually set up my real domains.
>
> Again thank you for the help and the great product! It works great for my bind server.
>
> I do appreciate any help that can be given to me. One suggestion is that by default have an option to autopopulate 3 example domains or something.
>
> Richard
>
> ----- Original Message -----
> From: "Jamie Cameron" <jcameron@webmin.com>
> To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
> Sent: Saturday, April 26, 2008 3:26:43 PM GMT -08:00 US/Canada Pacific
> Subject: Re: [webmin-l] website ssl issue
>
>
>
> Hi Richard,
>
> Could you post all the NameVirtualHost and <virtualhost> lines from your Apache config to the list? Apache has some rather complex rules about which virtual host responds for a given request, and it looks like there is some subtle mis-configuration that is causing the SSL virtual host to get the non-SSL requests.
>
> If I could see the actual httpd.conf directives, it would be easier to debug..
>
> - Jamie
>
>
> On 26/Apr/2008 14:14 Richard wrote ..
>
> I'm beginning to think that webmin just sucks when it comes to apache. I deleted all of my virtual hosts and added them again and no matter how closely I follow the guide I keep getting this in my apache log:
>
> [error] VirtualHost 192.168.0.7:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
> [Sat Apr 26 14:14:43 2008] [error] VirtualHost 192.168.0.7:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
>
> and when I try to go to my ssl site now I get: dom1.com has sent an incorrect or unexpected message. Error Code: -12263.
>
> At this point I'm pulling my hair out.
>
> ----- Original Message -----
> From: "Andrew Doades" <andrew.doades@weplan.co.uk>
> To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
> Sent: Saturday, April 26, 2008 8:14:44 AM GMT -08:0 0 US/Canada Pacific
> Subject: Re: [webmin-l] website ssl issue
>
> Well some people are unfortunatly like that I suppose?
>
> Andrew.
>
>> Sure I'll give it a shot. Usually when I approach the apache guys they
>> expect me to know apache in and out and when i tell them i'm using webmin
>> that's the end of the conversation. Well they yell at me and make me feel
>> like an idiot too... ;)
>>
>> ----- Original Message -----
>> From: "Andrew Doades" <andrew.doades@weplan.co.uk>
>> To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
>> Sent: Saturday, April 26, 2008 2:59:29 AM GMT -08:00 US/Canada Pacific
>> Subject: Re: [webmin-l] website ssl issue
>>
>> I am glad to :)
>>
>> Well as far as my knowledge goes back, with my age not far! but that
>> should work!
>>
>> I think this question perhaps bel ongs to an apache list, I really can't
>> see why it would not work.
>> http://httpd.apache.org/lists.html#http-users
>>
>> P.S. If you do find out, would you come back and tell?
>>
>> Andrew
>>
>>> yes much better. But that's what i'm saying in webmin I have it that way
>>> now.
>>>
>>> Under apache webserver section I have mail.dom1.com on address *
>>> port is 443
>>> and dom1.com on address * port is on 80.
>>>
>>> glad we're on the same page now ;)
>>>
>>>
>>> ----- Original Message -----
>>> From: "Andrew Doades" <andrew.doades@weplan.co.uk>
>>> To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
>>> Sent: Friday, April 25, 2008 3:46:36 PM GMT -08:00 US/Canada Pacific
>>> Subject: Re: [webmin-l] website ssl issue
>>>
>>> OK,
>>>
>>> I think I see the picture, your problem is that you seem to be requested
>>> that users access via port 443, which is by default, SSL.
>>>
>>> I would recommend that you setup separate virtual-servers for each of
>>> the sites, and assign port 443 to the ones need for SSL, like
>>> mail.tail.com and have the other on port 80?
>>>
>>> Any better advice ;)
>>>
>>> Andrew
>>>
>>> Richard wrote:
>>>> I really don't care about the error. but thanks.
>>>>
>>>> Let me give you an example of what happens. Let's say my domain name
>>>> is tail.com and my mail server is mail.tail.com.
>>>>
>>>> Right now if someone goes to http://tail.com they get this error:
>>>>
>>>> 400 Bad Request
>>>> Your browser sent a request that this server could not understand.
>>>> Reason: You're speaking plain HTTP to an SSL-enabled server port.
>>>> Instead use the HTTPS scheme to access this URL, please.
>>>>
>>>> if someone visists https://mail.tail.com
>>>> it takes them to my encrypted mail login.
>>>>
>>>> and if they go to https://tail.com it shows my main website.
>>>>
>>>> I want users to be able to go to both http://tail.com (without getting
>>>> the above ssl error) and https://mail.tail.com
>>>>
>>>> Does that make sense?
>>>>
>>>> TIA
>>>>
>>>>
>>>> ----- Original Message -----
>>>> From: "Andrew Doades" <andrew.doades@weplan.co.uk>
>>>> To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
>>>> Sent: Fri day, April 25, 2008 2:55:56 PM GMT -08:00 US/Canada Pacific
>>>> Subject: Re: [webmin-l] website ssl issue
>>>>
>>>> Ah, so you want people to be using SSL, but you don't want users to
>>>> have
>>>> to access https with an error?
>>>>
>>>> If this is the case, the best I can offer are the links for apache's
>>>> ability to create "SSL certificates"
>>>>
>>>> http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html
>>>> http://httpd.apache.org/docs/2.0/ssl/ssl_howto.html
>>>>
>>>> Hope these help.
>>>> Andrew
>>>>
>>>>> I don't want to have mail for https://dom1.com I want to be able to
>>>> browse
>>>>> to it in a web browser. I want the https://mail.dom1.com to be mail
>>>> which
>>>>> is how I have it now. But I am unable to browse a page without going
>>>> to it
>>>>> using https. I don't want users to get an ssl error when they try to
>>>> go to
>>>>> dom1.com
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Andrew Doades" <andrew.doades@weplan.co.uk>
>>>>> To: "Webmin users list" <webadmin-list@lists.sourceforge.net>
>>>>> Sent: Friday, April 25, 2008 1:21:19 PM GMT -08:00 US/Canada Pacific
>>>>> Subject: Re: [webmin-l] website ssl issue
>>>>>
>>>>> I am guessing from that message you need to be accessing it with:
>>>>>
>>>>> https://dom1.com
>>>>>
>>>>> If you need mail for this aswell, make sure you have set for your
>>>> mail
>>>>> client to use SSL, or TLS.
>>>>>
>>>>> Andrew
>>>>>
>>>>>> Webmin 1.4 on ubuntu server.
>>>>>>
>>>>>> I installed ssl support for websites. I basically want to use ssl
>>>> for my
>>>>>> mail domain. mail.dom1.com
>>>>>>
>>>>>> Under apache webserver section I have mail.dom1.com on address *
>>>> port is
>>>>>> 443
>>>>>> and dom1.com on address * port is on 80.
>>>>>>
>>>>>> When i go to dom1.com I get :
>>>>>>
>>>>>> 400 Bad Request
>>>>>> Your browser sent a request that this server could not understand.
>>>>>> Reason: You're speaking plain HTTP to an SSL-enabled server port.
>>>>>> Instead use the HTTPS scheme to access this URL, please.
>>>>>>
>>>>>> Thanks for the help,
>>>>>>
>>>>>> Richard
>>>>>>
>>>> -------------------------------------------------------------------------
>>>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>>>>> Don't miss this year's exciting event. There's still time to save
>>>> $100.
>>>>>> Use priority code J8TL2D2.
>>>>>>
>>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone-
>>>>>> Forwarded by the Webmin mailing list at
>>>>>> webadmin-list@lists.sourceforge.net
>>>>>> To remove yourself from this list, go to
>>>>>> http://lists.sourceforge.net/lists/listinfo/webadmin-list
>>>>>>
>>>>>
>>>>> --
>>>>> Andrew Doades
>>>>> WePlan.co.uk
>>>>>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin mailing list at webadmin-list@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list