* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [1151 01:51]:
> I'm using ajp13 with apache1.3 and tc4.0.x.
> Im using virtual hosts, and the config I use for this one looks like this:
> <VirtualHost 130.236.228.174:80>
> DocumentRoot /home/httpd/html/blaskan
> ServerName blaskan.studorg.liu.se
> ServerAlias www.blaskan.studorg.liu.se
> ErrorLog "/var/log/apache/blaskan-error.log"
> CustomLog "/var/log/apache/blaskan.log" common_with_mod_gzip_info2
>
> <Directory "/home/httpd/html/blaskan">
> DirectoryIndex index.cgi
> I have a servlet mapped to index.cgi (don't ask me why .cgi, its mostly a pun).
> The problem is that I can not get apache to serve tomcat the request for
> www.blaskan.studorg.liu.se. It just gives me a listing of the contents in the
> folder. Right now I'm using a index.html that redirects (after adding
> index.html in the DirectoryIndex tag), but its not really how I want it to be.
Get the webapp to understand that index.cgi is a valid 'welcome file' -
like DirectoryIndex on Apache, but you need to do this on the tomcat side.
Add
<welcome-file-list>
<welcome-file>index.cgi</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
to the bottom on your web.xml
--
Rasputin :: Jack of All Trades - Master of Nuns
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>