Matthew,

Thanks so much for your input.  I think you've sold me on the Apache/Tomcat
solution.  Although I like the appeal of Jetty, it seems to make a lot more
sense in my situation to stick with Apache and proxy out to Tomcat, which is
what I think I'm doing right now with my current Apache/Coldfusion setup.

I'm trying to do this all by using the Amazon EC2 service as well - I've
looked at a number of images out there using OpenBD but none seemed to have
the setup I am looking for.

-Bien


On Wed, Mar 18, 2009 at 2:06 PM, Matthew Woodward <[email protected]>wrote:

> Bien wrote:
>
>> But how do I get it to handle my .htaccess files,
>> which I use religiously for search-engine-friendly rewriting, and
>> across multiple hosts?
>>
>>
>
> If you want to use your .htaccess files as you currently do with Apache
> (I'm assuming you're using Apache at any rate), then you'll need to keep
> using Apache. Tomcat has the concept of Realms which provide .htaccess-type
> functionality, and I'm sure Jetty has an equivalent.
>
> Tomcat and Jetty both have excellent web servers bundled with them, but the
> functionality is not identical to Apache. You can certainly accomplish what
> you're currently doing with .htaccess but specifically how you do it will be
> different.
>
> And even if you do use Apache with your .htaccess files, I'm not sure that
> they are automatically respected by your servlet container. Remember that at
> some point your web server is handing off work to your servlet container, so
> I would think if you're using mod_jk then your .htaccess files wouldn't get
> hit before things got handed off to the servlet container.
>
> I have a *feeling* that on the Tomcat/Jetty side an .htaccess file is just
> another file and wouldn't "mean" anything to them. So depending on your
> needs you can either use what's native in the servlet container to provide
> this functionality, or if you use Apache and proxy out to Tomcat or Jetty as
> opposed to using something like mod_jk, then you'd have more control over
> things on the Apache side.
>
> All rambling aside ;-), there's a way to accomplish anything you need to do
> one way or another, but you probably can't continue to do things exactly the
> way you are now. If I'm totally off-base I'm sure someone will jump in and
> set things straight.
>
>  And can I easily use phpMyAdmin without having to install apache, and
>> if not, am I really better off using Tomcat?
>>
>>
>
> You can use Jetty or Tomcat as a general web server, but to get it set up
> with PHP it would take a bit of configuration.
>
> Here's information about PHP on Jetty 5 (I didn't see an update in these
> instructinos for Jetty 6):
> http://docs.codehaus.org/display/JETTY/Jetty+and+PHP
>
> The stuff I did find on using PHP with Tomcat was much nastier than doing
> so with Jetty.
>
> Not to state the obvious, but of course since Tomcat and Jetty are
> primarily Java servlet containers, it's not surprising that rolling in PHP
> takes a bit of work.
>
> Ultimately if you do need PHP, want to keep using .htaccess files, etc.
> then your best bet is probably to keep using Apache since that will give you
> more flexibility when working with non-Java stuff. Or if all you need PHP
> for is phpMyAdmin, there are plenty of other MySQL tools available.
>
> Hope that helped more than it added to the confusion. ;-)
>
> --
> Matt Woodward
> [email protected]
>
> http://www.mattwoodward.com/blog
>
> Please do not send me proprietary file formats such as Word, PowerPoint,
> etc. as attachments.
> http://www.gnu.org/philosophy/no-word-attachments.html
>
>

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to