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

Re: Apache named virtual hosts



On Tue, 26 Oct 1999, Michael Viron wrote:

> I just tried that, and it comes back "syntax OK"
> 
> (it's actually apachectl configtest)
> 
> Mike

'apachectl configtest' executes 'httpd -t' :-)

My next question is "what do you mean it doesn't work?"  Error messages?
Web server not doing what you think it should?  What?  Knowing what you're
trying to do would be helpful too (looks like you're trying to run a SSL
server, so did you create the SSL server certificate and install the cert
files in the correct place?)  If httpd is segfaulting at startup, the last
50 lines or so from an strace would be helpful too.

Also, I don't have any experiance with the _default_ flag for
VirtualHosts.  I recommend you name each virtual host explicitly.  And,
you can't run the same SSL server for two different VirtualHosts.  It does
not work.  It will never work.  It can't work.  Basically, you can have
only one SSL certificate per httpd, and SSL certs are specific to a
specific host.  This gets asked all the time on the mod_ssl list, so check
the archives for details if your curious.  (Search on VirtualHosts)

If you want two SSL servers, you'll need to do what I do with Vodka and
dev, tst, and devel- create totally different install trees for each
Apache instance.  See:

http://devel.linuxkb.org/sysdoc/apachecompile.html

to see how I'm doing it- Vodka runs 4 different copies of Apache at the
same time: dev:81, tst:81, devel/vodka:80, and admin:443.  It works, but
isn't very memory efficent.

Have fun.

--
Aaron Turner, Core Developer       http://vodka.linuxkb.org/~aturner/
Linux Knowledge Base Organization  http://linuxkb.org/
Because world domination requires quality open documentation.