Oh, I see. I run two deamons when a site has secure and non-secure pages on a single
server. The first is /usr/contrib/bin/apachectl, which uses the
/var/www/conf/httpd.conf. For virtual sites that have non-ssl pages, I have to place
the
same virtual host information (without ssl options) in that httpd.conf as well.
Otherwise, any calls will resolve to the first of default area.
I find maintaining two config files easier than putting VH for port 80 and VH for port
443 in one. Besides, my VH's are quite numerous. And in some cases, they are on
different physical servers anyway. Hope this helps.
Timothy Willard wrote:
> That seems to work fine for 443 only. When I attempt to go to port 80 it shows the
> main server (displays the default DocumentRoot) . When you say resolve do you mean in
> apache or on the client. The client is using a hosts file for name resolution.
>
> Thanks for the assistance.
> Tim
>
> Tom Nichols wrote:
>
> > I can be more specific:
> >
> > Here's how I have it set for several virtual hosts:
> >
> > <VirtualHost 10.10.10.10:443>
> > SSLEnable
> > SSLCertificateFile /usr/local/apache/certificate_location server1.pem
> > ServerAdmin (email address)
> > DocumentRoot /var/www/virtualssl/server1.com
> > ServerName server1.com
> > (error logs and aliases)
> > </VirtualHost>
> >
> > <VirtualHost 10.10.10.10:443>
> > SSLEnable
> > SSLCertificateFile /usr/local/apache/certificate_location server2.pem
> > ServerAdmin (email address)
> > DocumentRoot /var/www/virtualssl/server2.com
> > ServerName server2.com
> > (error logs and aliases)
> > </VirtualHost>
> >
> > And so on...
> >
> > It's also absolutely important that the server name resolves. Otherwise, the ip
> > address will display the first virtual host in the httpsd.conf file.
> >
> > Timothy Willard wrote:
> >
> > > Each VirtualHost has it's own DocumentRoot. But when trying SSL it goes to the
> > > main servers document root. Take a look at these directives in my conf file
> > >
> > > <VirtualHost X.X.X.X>
> > > DocumentRoot c:\orahome1\apache\apache\vhost1
> > > ServerName www.vhost3.com
> > > ErrorLog c:\x\x\x\x-error_log
> > > </VirtualHost>
> > >
> > > Then down further I have a section:
> > > ##
> > > ## SSL VIRTUAL HOST CONTEXT
> > > ##
> > > <VirtualHost_default_:443>
> > > DocumentRoot "c:\OraHome1\Apache\Apache\htdocs"
> > >
> > > When using a ssl port it will always default to this directory. I was wondering
> > > if there are any directives that will override this
> > >
> > > Tom Nichols wrote:
> > >
> > > > Tim Willard wrote:
> > > >
> > > > > Hi,
> > > > > I am using name based VirtualHosts. Is it possible to specify a separate
> > > > > SSL document root for each virtual host. I understand that name based must
> > > > > all use the same certificate etc. But must they use the same document root.
> > > > >
> > > > > Thanks
> > > > > Tim
> > > > >
> > > > > ______________________________________________________________________
> > > > > OpenSSL Project http://www.openssl.org
> > > > > User Support Mailing List [EMAIL PROTECTED]
> > > > > Automated List Manager [EMAIL PROTECTED]
> > > >
> > > > Yes, you can providing you add the line "DocumentRoot wherever" in the
> > > > section of the VH
> > > >
> > > > <VirtualHost 1.1.1.1:443>
> > > > DocumentRoot /var/myserver.com
> > > > ServerName myserver.com
> > > > ErrorLog, etc...
> > > > SSL....etc
> > > > </VirtualHost>
> > > >
> > > > ______________________________________________________________________
> > > > OpenSSL Project http://www.openssl.org
> > > > User Support Mailing List [EMAIL PROTECTED]
> > > > Automated List Manager [EMAIL PROTECTED]
> >
> > ______________________________________________________________________
> > OpenSSL Project http://www.openssl.org
> > User Support Mailing List [EMAIL PROTECTED]
> > Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]