Discussion:
htdocs
Richard Dunne
2007-12-17 10:26:59 UTC
Permalink
Regarding the various releases of tomcat, in order to dislpay files on localhost, it was my understanding that all files needed to be hosted in the htdocs directory. Seemingly, not all releases of Tomcat have this directory. Can someone point out the best or a common location suitable for hosting files? Purely to avoid the LOCALHOST is not properly defined error!

Thanks,

Richard.


____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Len Popp
2007-12-17 15:25:04 UTC
Permalink
No, htdocs is not used by Tomcat. It's for the Apache web server
(a.k.a. httpd or apache.exe). For Tomcat, put files in one of the
directories under webapps (webapps/ROOT is the catch-all for files
that aren't part of a specific web application).

But this has nothing to do with whether or not localhost is defined -
that sounds like a client-side problem (i.e. it's the web browser, not
the server, that can't resolve localhost). Try accessing
http://127.0.0.1/ and also check that localhost is defined in your
hosts file.
--
Len
Post by Richard Dunne
Regarding the various releases of tomcat, in order to dislpay files on localhost, it was my understanding that all files needed to be hosted in the htdocs directory. Seemingly, not all releases of Tomcat have this directory. Can someone point out the best or a common location suitable for hosting files? Purely to avoid the LOCALHOST is not properly defined error!
Thanks,
Richard.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Loading...