RE: [users@httpd] multiple vhosts on port 80 and port 443

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: joe pond [mailto:digger920@xxxxxxxxxxx] 
> Sent: Thursday, October 19, 2006 4:31 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE: [users@httpd] multiple vhosts on port 80 and port 443
> 
> You'r right Boyle, it doesn't work.  Looks like the best you 
> can do is to 
> import the 1st certificate and trust that on the second host. 
>  Channel does 
> come up locked but as has been asked by others "how secure is 
> the channel 
> without a fully valid crt."

I'd say "not in the slightest". Or even, "worse than if it were in plain
HTTP" (because of the false sense of security).

The question is usually asked by people who haven't thought long enough
about why they want to use SSL. They think because it's encrypted on the
wire, that's already pretty good and having a valid cert is just a
bureaucratic bonus.

But it's the authentication of the certificate that guarantees that a
client is talking to the correct server. Without that, you could be
exchanging information with anyone so it doesn't matter if the channel
is secure, the data is coming out the other end into
you-don't-know-where. 

Put it another way; You might be sitting in a nice private confessional,
but is it really a priest on the other side of the curtain?

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


> 
> 
> >From: "Boyle Owen" <Owen.Boyle@xxxxxxx>
> >Reply-To: users@xxxxxxxxxxxxxxxx
> >To: <users@xxxxxxxxxxxxxxxx>
> >Subject: RE: [users@httpd] multiple vhosts on port 80 and port 443
> >Date: Thu, 19 Oct 2006 15:16:34 +0200
> >
> > > -----Original Message-----
> > > From: joe pond [mailto:digger920@xxxxxxxxxxx]
> > > Sent: Thursday, October 19, 2006 2:59 PM
> > > To: users@xxxxxxxxxxxxxxxx
> > > Subject: [users@httpd] multiple vhosts on port 80 and port 443
> > >
> > > I noticed on 10/19/2006 several postings about this. I may
> > > have included too
> > > much stuff but some folks may need the info.
> > >
> > > The following configuration setup enables me to have multiple
> > > vhost on port
> > > 80 and multiple vhosts on port 443 and I can require
> > > login/password or not
> > > for eithe port 80 or port 443.
> > >
> > > The non-matching server name on the 2nd 443 host would seem to be
> > > resolveable by creating another certificate with that servers
> > > name in it but
> > > I have not tried that yet.
> >
> >Don't bother - it won't work. As masro says, the SSL channel is
> >established first - before the server gets the Host header 
> that it needs
> >for NameVirtualHost resolution. So the server will always 
> use the certs
> >from the first SSL VH to set up the connection.
> >
> >Check the archive for SSL NBVH - it's been gone over a million times
> >already...
> >
> >Rgds,
> >Owen Boyle
> >Disclaimer: Any disclaimer attached to this message may be ignored.
> >
> > >
> > > HTH
> > >
> > > digger920
> > >
> > >
> > > Apache2.2.X, SSL, Vhosts
> > >
> > > I use include files to make troubleshooting a bit easier.
> > > This is a WAMP server BTW.
> > >
> > > In httpd.conf
> > >
> > > Listen 192.168.10.4:80
> > > Listen 192.168.10.4:443
> > >
> > > LoadModule ssl_module modules/mod_ssl.so
> > >
> > >
> > >
> > > # Virtual hosts
> > > Include conf/extra/httpd-vhosts.conf
> > >
> > > # Secure (SSL/TLS) connections
> > > Include conf/extra/httpd-ssl.conf
> > >
> > > <IfModule ssl_module>
> > > SSLMutex default
> > > SSLSessionCache none
> > > SSLRandomSeed startup builtin
> > > SSLRandomSeed connect builtin
> > > </IfModule>
> > >
> > > ========================
> > >
> > > In httpd-vhosts.conf
> > >
> > > NameVirtualHost *:80
> > >
> > > <VirtualHost *:80>
> > >     ServerAdmin whoever@where-ever
> > >     ServerName juneau
> > >     DocumentRoot "C:/Server/Apache2.2/htdocs"
> > >
> > >     #ErrorLog logs/dummy-host.example.com-error_log
> > >     #CustomLog logs/dummy-host.example.com-access_log common
> > > </VirtualHost>
> > >
> > > <VirtualHost *:80>
> > >     ServerAdmin whoever@where-ever
> > >     ServerName ASite
> > >     #ServerAlias Test1
> > >     DocumentRoot "C:/Server/Apache2.2/htdocs/www/A-Site"
> > >
> > >     #ErrorLog logs/dummy-host2.example.com-error_log
> > >     #CustomLog logs/dummy-host2.example.com-access_log common
> > > </VirtualHost>
> > >
> > > <VirtualHost *:80>
> > >     ServerAdmin whoever@where-ever
> > >     ServerName secure
> > >     DocumentRoot "C:/Locked"
> > >     <Directory /Locked>
> > >     AuthType Basic
> > >     AuthName "Locked Test"
> > >     AuthUserFile C:/Server/Apache2.2/htdocs/passwords/pwrd
> > >     Require user testuser
> > >     Order allow,deny
> > > 			Allow from all
> > >     </Directory>
> > >     #ErrorLog logs/dummy-host2.example.com-error_log
> > >     #CustomLog logs/dummy-host2.example.com-access_log common
> > > </VirtualHost>
> > >
> > > ==================================
> > >
> > > In httpd-ssl.conf
> > >
> > > NameVirtualHost *:443
> > >
> > > ##  SSL Global Context
> > >
> > > AddType application/x-x509-ca-cert .crt
> > > AddType application/x-pkcs7-crl    .crl
> > >
> > > SSLSessionCache
> > > shmcb:c:/server/apache2.2/logs/ssl_scache(512000)
> > > SSLSessionCacheTimeout  300
> > >
> > > ## SSL Virtual Host Context
> > >
> > > <VirtualHost *:443>
> > >
> > > #   General setup for the virtual host
> > > 		ServerName juneau
> > > 		ServerAdmin whoever@where-ever
> > > 		DocumentRoot "c:/SecureToo/"
> > >
> > > 		<Directory /SecureToo>
> > > 			Order allow,deny
> > > 			Allow from all
> > > 		</Directory>
> > >
> > >
> > > 		ErrorLog
> > > c:/server/apache2.2/logs/vhost_SSL_error_log.log
> > > 		TransferLog
> > > c:/server/apache2.2/logs/vhost_SSL_access_log.log
> > >
> > >
> > > #   SSL Engine Switch:
> > > #   Enable/Disable SSL for this virtual host.
> > > SSLEngine on
> > >
> > > SSLCipherSuite
> > > ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
> > >
> > > SSLCertificateFile c:/server/apache2.2/conf/ssl/juneau.crt
> > >
> > > SSLCertificateKeyFile c:/server/apache2.2/conf/ssl/juneau.key
> > >
> > > SSLCertificateChainFile c:/server/apache2.2/conf/ssl/juneau.crt
> > >
> > > <FilesMatch "\.(cgi|shtml|phtml|php)$">
> > >     SSLOptions +StdEnvVars
> > > </FilesMatch>
> > > <Directory "c:/server/apache2.2/cgi-bin">
> > >     SSLOptions +StdEnvVars
> > > </Directory>
> > >
> > > BrowserMatch ".*MSIE.*" \
> > >          nokeepalive ssl-unclean-shutdown \
> > >          downgrade-1.0 force-response-1.0
> > >
> > > CustomLog c:/server/apache2.2/logs/ssl_request_log \
> > >           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> > >
> > > </VirtualHost>
> > >
> > > <VirtualHost *:443>
> > >     ServerAdmin whoever@when-ever
> > >     ServerName secure
> > >     DocumentRoot "C:/Locked/"
> > >     <Directory /Locked>
> > >     AuthType Basic
> > >     AuthName "Locked Test"
> > >     AuthUserFile C:/Server/Apache2.2/htdocs/passwords/pwrd
> > >     Require user jpond
> > >     Order allow,deny
> > > 			Allow from all
> > >     </Directory>
> > >     #ErrorLog logs/dummy-host2.example.com-error_log
> > >     #CustomLog logs/dummy-host2.example.com-access_log common
> > > </VirtualHost>
> > >
> > > _________________________________________________________________
> > > Add a Yahoo! contact to Windows Live Messenger for a chance
> > > to win a free
> > > trip!
> > > http://www.imagine-windowslive.com/minisites/yahoo/default.asp
> >x?locale=en-us&hmtagline
> > >
> > >
> > > 
> ---------------------------------------------------------------------
> > > 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: users-unsubscribe@xxxxxxxxxxxxxxxx
> > >    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> > >
> >
> >
> >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: users-unsubscribe@xxxxxxxxxxxxxxxx
> >    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> >For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> >
> 
> _________________________________________________________________
> Stay in touch with old friends and meet new ones with Windows 
> Live Spaces 
> http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?h
ref=http://spaces.live.com/spacesapi.aspx?>
wx_action=create&wx_url=/friends.aspx&mkt=en-us
> 
> 
> ---------------------------------------------------------------------
> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
 
 
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux