Apache ?
Evan Martin
martine at cs.washington.edu
Tue Jan 28 15:45:53 PST 2003
On Tue, Jan 28, 2003 at 01:01:53PM -0800, Jeremy Claeson wrote:
> I've tried adding index.cgi to the list of default docs (under
> mod_dir.c) but I still get a page not found error for that virtual
> server. Not a 404 error, but a cannot find server error.
Hm. What sort of error is that, exactly? Is it not resolving? Not
connecting?
> Here's how I've tried to configure the virtual host: <VirtualHost *>
> ServerName sqwebmail.somedomainthatwillremainanonymous.com
> DocumentRoot /usr/local/www/sqwebmail
>
> ScriptAlias / "/usr/local/www/sqwebmail/"
>
> <Directory "/usr/local/www/sqwebmail">
> AllowOverride None
> Options ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
> </VirtualHost>
>
> All of the other virtual hosts resolve without problems, just this one
> isn't working.
I remember having a lot of trouble trying to get that same sort of thing
to work with ViewCVS's CGI running as the root of a virtual host, and I
can't remember if I gave up on it or if I got it to work and then
eventually switched it to the subdirectory I have now..
I use this for http://bunny.darktech.org/cvs:
Alias /viewcvs/ /usr/share/viewcvs/
ScriptAlias /cvs /usr/lib/cgi-bin/viewcvs.cgi
I think aliasing the directory directly to the script is important. If
you have directory indexing off, then / aliases to a directory that may
not be loading the index file (for some other reason) and may be
confusing you more. (If you can get a directory listing up, then you
know it's at least looking in the right place and then you can try
diagnosing why it's not loading your index...)
I seem to recall the presence/absence of the slashes were relevant, but
it's been a while.
--
Evan Martin
martine at cs.washington.edu
http://neugierig.org
More information about the Linux
mailing list