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
    </Directory>

    JkMount /blaskan/*  ajp13
    JkMount /*.cgi      ajp13
</VirtualHost>  

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. 
Is there a way to map this? It seems like its possible to do with .jsp-files, 
but I do not use any, and my index.cgi does most of the logic, so it would not 
make sense to change that into a .jsp-file. Any sugestions?

Another question, is there something in server.xml for <host> that enables 
funktionality equal to ServerAlias in apaches <VirtualHost>? It seems odd that 
I have to define two hosts, one with www. and one without.

Last thing, I can not get my server.xml to build my mod_jk.conf properly, it 
just does the Hosts, but never specify where to find the logs, the workerfiles 
and such. I have it specified like this in server.xml (but do not use that 
config-file it produces).
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
        modJk="/usr/lib/apache/1.3/mod_jk.so"
        jkDebug="info"
        workersConfig="/usr/local/jakarta-tomcat-4.0.4/conf/workers.properties"
        jkLog="/usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log"
        noRoot="true"
        forwardAll="true"/>

/Best regards Bj�rn Bergenheim

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to