> -----Original Message-----
> From: Sam Carleton [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 21, 2007 3:45 AM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] setting up virtual hosting
> 
> I am pulling my hair out trying to get the virtual hosting working on
> my internal web server.  I need to get a test site online and I would
> like to have it setup as a name based virtual host.  I am running
> Apache v2.2.3 with default layout of SUSE, which consists of the main
> conf file including a bunch of other files.

Having read the rest of the thread, I'd offer a few comments:

- Norman has it exactly right; once you create one VH, the "main server"
isn't used anymore so every site has to go into a VH.
- If you want name-based VHs, you *must* use a NameVirtualHost
directive. So your statement "I do *NOT* have a NameVirtualHost
directive" makes no sense.
- In the NameVirtualHost directive and in VH containers, it is wisest to
use only IP addresses rather than domain names. Internally, apache needs
a TCP/IP address here and if you use a domain name you make apache
dependent on DNS and leave yourself open to misconfiguration if the IP
changes for a given domain.
- At the bottom of your post, you indicate you are trying NBVHing with
SSL. That can't work:
http://httpd.apache.org/docs/2.2/ssl/ssl_faq.html#vhosts2 (the reason is
inherent in HTTP, it's not an apache feature).

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.  

> 
> The virtual host is working just fine, it is the default that isn't
> work!  I have added ServerName which was not there originially to
> this:
> 
> ServerName internal.miltonstreet.com
> 
> And then I have this for the virtual host:
> 
> <VirtualHost _default_:80>
> 
>     ServerName      webdev.miltonstreet.com
>     DocumentRoot    "/http/www/webdev.miltonstreet.com"
> 
>     ErrorLog /var/log/apache2/webdev.miltonstreet.com-error_log
>     CustomLog 
> /var/log/apache2/webdev.miltonstreet.com-access_log combined
> 
>     <Directory "/http/www/webdev.miltonstreet.com">
>         Options Indexes FollowSymLinks
>         AllowOverride None
>         Order allow,deny
>         Allow from all
>     </Directory>
> 
> </VirtualHost>
> 
> I do *NOT* have a NameVirtualHost directive.
> 
> I do have this setup, where the default is *NOT* working either:
> 
> <VirtualHost *:443>
>     DocumentRoot "/srv/www/htdocs"
> </VirtualHost>
> 
> <VirtualHost secure.miltonstreet.com:443>
> 
>     ServerName secure.miltonstreet.com
> 
> <\VirtualHost>
> 
> What am I missing?
> 
> Sam
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to