It turns out that I had it configured correctly in the
first place. It was a firewall issue. I just hadn't
thought about it because I'm not the admin on the box.
Since nobody else want's to post an httpd.conf file,
here's my working virtualhost section. Hopefully it'l
be helpful for someone.
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
serveradmin [EMAIL PROTECTED]
documentroot /home/vhosts/mydomain.com
servername www.mydomain.com
errorlog logs/mydomain.error-log
customlog logs/mydomain.com.access-log combined
</VirtualHost>
<VirtualHost *:80>
serveradmin [EMAIL PROTECTED]
documentroot /home/vhosts/anotherdomain.net
servername www.anotherdomain.net
serveralias anotherdomain.net
errorlog logs/anotherdomain.net.error-log
customlog logs/anotherdomain.net.access-log common
</VirtualHost>
<VirtualHost *:80>
serveradmin [EMAIL PROTECTED]
documentroot /home/vhosts/ssldomain.com
servername www.ssldomain.com
serveralias www.ssldomain.net
errorlog logs/ssldomain.com.error-log
customlog logs/ssldomain.com.access-log combined
</VirtualHost>
<VirtualHost *:443>
serveradmin [EMAIL PROTECTED]
documentroot /home/vhosts/ssldomain.com/catalog
servername www.ssldomain.com
serveralias www.ssldomain.net
errorlog logs/https-ssldomain.com.error-log
customlog logs/https-ssldomain.com.access-log
combined
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile
/etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile
/etc/httpd/conf/ssl.key/server.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
# Work-around for IE clients
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
<VirtualHost *:80>
serveradmin [EMAIL PROTECTED]
documentroot /home/vhosts/lastdomain.com
servername www.lastdomain.com
serveralias lastdomain.com
errorlog logs/lastdomain.com.error-log
customlog logs/lastdomain.com.access-log common
</VirtualHost>
John
--- Richard Miller <[EMAIL PROTECTED]> wrote:
> Mac,
>
> I am interested in learning about your 1-IP-address
> box that hosts
> multiple sites and still has an SSL cert on one of
> them. How did you
> do that?
>
> Richard
>
>
> On May 10, 2004, at 7:20 PM, Mac Newbold wrote:
>
> > Today at 8:50am, john jonas said:
> >
> >> Does someone have a working httpd.conf file which
> has multiple
> >> virtualhost directives one of which is using ssl?
> >>
> >> I have 4 different domains on the server and one
> of them now needs
> >> ssl.
> >>
> >> I've tried all kinds of combinations of stuff and
> can't seem to get
> >> it to
> >> work.
> >
> > As others have pointed out, you'll need one IP
> address per SSL
> > certificate. This is because the SSL connection is
> established before
> > the
> > HTTP request is sent, so there's no way to know
> the name of the host
> > the
> > request is for.
> >
> > But to answer your question, I have a machine that
> hosts several sites
> > using name virutal hosting, and one of them has an
> SSL cert. The box
> > only
> > has one IP address.
> >
> > If you have a config you can post somewhere or to
> the list, or send to
> > me
> > privately, I'd be happy to compare it to mine to
> see if we can't get
> > yours
> > working for you.
> >
> > Mac
> >
> > --
> > Mac Newbold MNE - Mac Newbold Enterprises, LLC
> > [EMAIL PROTECTED] http://www.macnewbold.com/
> >
> > ____________________
> > BYU Unix Users Group
> > http://uug.byu.edu/
> >
>
___________________________________________________________________
> > List Info:
> http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
> >
> >
>
> ATTACHMENT part 1.2 application/pkcs7-signature
name=smime.p7s
> ____________________
> BYU Unix Users Group
> http://uug.byu.edu/
>
___________________________________________________________________
> List Info:
http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list