Thanks but this fails. Here's what I changed the appBase dir to
<Host name="localhost" appBase="/usr/local/apache2/htdocs"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
and here is what happened when I restarted and tried to request a page
that I just created (with 775 perms)
[EMAIL PROTECTED] bin]# wget http://localhost:8080/test.jsp
--10:49:24-- http://localhost:8080/test.jsp
=> `test.jsp'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 400 No Host matches server
name localhost
10:49:24 ERROR 400: No Host matches server name localhost.
Do I have to create a "ROOT" directory within "/usr/local/apache2/htdocs"?
- Dave
On 11/13/06, Edoardo Panfili <[EMAIL PROTECTED]> wrote:
D. Alvarado ha scritto:
> Ok, let me ask another question. If I want to change the directory to
> where I put JSP files that I don't want to package into a WAR, to say,
> "/usr/local/apache2/htdocs", how do I do that?
take a look at
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html
you can use the "appBase" attribute
Edoardo
>
> - Dave
>
> On 11/13/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>> > From: D. Alvarado [mailto:[EMAIL PROTECTED]
>> > Subject: Why is "ROOT" appended?
>> >
>> > <Host name="localhost" appBase="webapps"
>> > unpackWARs="true" autoDeploy="true"
>> > xmlValidation="false" xmlNamespaceAware="false">
>> >
>> > but when i request a loose page, it gets the file from "webapps/ROOT".
>> > How do I change the configuration such that it gets the page from
>> > "webapps"?
>>
>> You can't, and you should not be putting random files under webapps.
>> All pages must belong to some webapp or another (there's no such thing
>> as a "loose page"), and those apps are by default under webapps.
--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]