>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Subject: Getting OpenBlueDragon and Tomcat to traverse directories
>
> Please post in plain text and leave in the < and > symbols. Lack of them
> makes it much harder to examine your XML for correctness.
Thanks for the tip Chuck. Here's all of my server.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.jk.config.ApacheConfig"
modJk="/usr/lib64/httpd/modules/mod_jk.so"
workersConfig="/etc/httpd/conf/workers.properties"
jkLog="/opt/tomcat/logs/mod_jk.log" jkDebug="info" />
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8009"
enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="mysite.com">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="mysite.com" appBase="/var/www/html/mysite"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>www.mysite.com</Alias>
<Context path="" docBase="." debug="0" reloadable="true" />
<Listener className="org.apache.jk.config.ApacheConfig"
append="true" jkWorker="worker1" />
</Host>
</Engine>
</Service>
</Server>
And the relevent section of httpd.conf:
<VirtualHost xx.xx.xx.xx:80>
DocumentRoot /var/www/html/mysite
DirectoryIndex index.htm index.cfm index.html.var
ServerName mysite.com
ServerAlias *.mysite.com
ErrorLog /var/log/httpd/mysite/error_log
CustomLog /var/log/httpd/mysite/access_log combined
JKAutoAlias /var/www/html/mysite
JKMount /* worker1
JKUnMount /*.htm worker1
<Location /WEB-INF/ >
AllowOverride None
deny from all
</Location>
</VirtualHost>
>
>> Host name="mysite.com" appBase="/var/www/html/mysite"
>
> It's a really bad idea to use the same directory for both Tomcat and
> httpd; at a bare minimum, it allows divulging of webapp code.
I thought the use of handlers (JKMount and JKUnMount) would direct the
requests properly. The reason why I'm mixing these is because I've been
used to doing it that way with Coldfusion for ever, but if that's the
proper practice with Tomcat, maybe I'll have to change my habits.
>
>> Context path="" docBase="." debug="0" reloadable="true" /
>
> You must never, never have a docBase of "."; each webapp should be
> deployed *under*, not in, the appBase directory. Also, putting <Context>
> elements in server.xml is strongly discouraged these days. Your default
> webapp should be named ROOT (case sensitive); if you do that, you don't
> need a <Context> element at all for this situation.
>
What if I plan on having only one webapp, OpenBlueDragon? And what would
I name ROOT? The name of the <host>?
Thanks,
Ross.
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [email protected]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]