You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Steve Woolley <sw...@openaim.com> on 2001/02/05 22:46:43 UTC

cocoon and virtual hosts

I am planning to use cocoon in a virtual hosting scenario. I have installed
the binaries and run several successful tests of processing/viewing the
samples included with the distribution.
Now I want to move to a more real world situation whene users will
have access to their own subdirectories where they will keep their
own *.xml, servlets, jsp, and html. The problem is I can't get cocoon
to use a webapps sudirectory in each users home dir. It keeps trying
to use the webapps directory in the: /usr/local/tomcat/webapps/cocoon
directory. I want it to use each individuals own webapps/cocoon dir.

Any ideas? Do I have to make a change to the tomcat.policy file?

Steve Woolley
swoolley@openaim.com


My server.xml file
-------------------
.
.
.
       <!-- Apache AJP12 support. This is also used to shut down tomcat.
          -->
        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"

value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
            <Parameter name="port" value="8007"/>
        </Connector>

        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"

value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
            <Parameter name="port" value="8009"/>
        </Connector>

        <Host name="www.mydomain.com">
                <Context path="/cocoon"
                        docBase="webapps/cocoon"
                        debug="0"
                        reloadable="true" >
                </Context>
        </Host>
.
.
.



My mod_jk.conf-auto file (called by tail end of httpd.conf)
------------------------------------------------------------

.
.
.
NameVirtualHost X.X.X.X
<VirtualHost X.X.X.X>
        Servername www.mydomain.com
        ServerAdmin sfsdf@sdkjhsdf.com
        DocumentRoot /home/mydomain/html
        Alias /cocoon /home/mydomain/webapps/cocoon
        <Directory "/home/mydomain/webapps/cocoon">
                Options Indexes FollowSymLinks
        </Directory>
        JkMount /cocoon/*.xml ajp13
        AddType text/xml .xml
        ErrorLog logs/www.mydomain.com-error_log
        CustomLog logs/www.mydomain.com-access_log common
</VirtualHost>
.
.
.