l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
August 5: Social gathering
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2003 May 21 21:28

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Setting up VirtualHosts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Setting up VirtualHosts



--jL2BoiuKMElzg3CS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 14, 2003 at 03:52:38PM -0500, Jay Strauss wrote:
> > I'm googling all over, trying everything, and can't get this to work.  =
My
> > server works both ssl/clear text (from before I started messing with
> this).
> >
> > I want my server to respond to:
> >     testwww.heyjay.com
> >     www.heyjay.com
> >     testssl.heyjay.com
> >     ssl.heyjay.com
>
> what I'm trying to do is impossible,
>=20
> http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts

Jay,

- Why don't you use different ports on the same machine to run test
  instances on?


Something like this (I check syntax), should work fine.

NameVirtualHost *

<VirtualHost www.heyjay.com:80>
   ServerName  www.heyjay.com
   SSLEngine off
   DocumentRoot /var/www/heyjay/www
</VirtualHost>

<VirtualHost ssl.heyjay.com:1443>
   ServerName  ssl.heyjay.com
   DocumentRoot /var/www/heyjay/ssl
   SSLEngine on
   SSLCertificateFile server.crt
   SSLCertificateKeyFile server.key
   SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>

<VirtualHost testwww.heyjay.com:1080>
   ServerName  testwww.heyjay.com
   SSLEngine off
   DocumentRoot /var/www/heyjay/testwww
</VirtualHost>

<VirtualHost testssl:443>
   ServerName  testssl.heyjay.com
   DocumentRoot /var/www/heyjay/testssl
   SSLEngine on
   SSLCertificateFile server.crt
   SSLCertificateKeyFile server.key
   SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>

--=20
GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc
Fingerprint: 524D A726 77CB 62C9 4D56  8109 E10C 249F B7FA ACBE

--jL2BoiuKMElzg3CS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+zCF/4Qwkn7f6rL4RAusvAJ44Sd7QyS6TFft34w55za1j4yCC/QCgo1LX
v/dKjbHBDx5mmQHcejEVf2o=
=EX2l
-----END PGP SIGNATURE-----

--jL2BoiuKMElzg3CS--
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech








LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!