Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-12-16 14:43:15

newnoise
Member
Registered: 2011-02-24
Posts: 35

Clean URLs with Tomcat

Hi,

as my client wishes we run a server with tomcat6 and Textpattern via Java-PHP-Bridge.
Is there a way to use clean-urls with Tomcat6? I tried to with urlrewritefilter but could not get it working.

Anyone tried this yet?

Thanks
noise

Offline

#2 2011-12-17 12:28:33

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: Clean URLs with Tomcat

Out of curiosity, what is the advantage they hope for with such a scenario? They introduce more complexity than necessary and make maintenance harder even if they are very familiar with Tomcat and wish to leverage that knowledge.

The standard way would be to introduce Apache in front of Tomcat and then you could use mod_rewrite again (see also stackoverflow).

For the record, I haven’t tried it yet and have only use native Java webapps inside a Tomcat.


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#3 2011-12-20 11:23:21

newnoise
Member
Registered: 2011-02-24
Posts: 35

Re: Clean URLs with Tomcat

Hi,

well it is basically a Java-Web-App. And they dont want the Apache. They say its a performace-thing. Anyway.
I still didn’t get it work, I’ll keep trying and keep you guys updatet.

If anyone has an idea anyway, let me know!

Thanks.

Offline

#4 2011-12-25 18:16:53

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: Clean URLs with Tomcat

Hm, I doubt that Tomcat outperforms nginx with php-fpm or even Apache when it comes to simply serving PHP pages. The issue is that you need the Tomcat container plus the PHP-connector so you keep any performance penalties from the PHP interpreter but replace only the browser-interacting part. From my experience with Tomcat it is always useful to have Apache HTTPD in front anyways (using mod_jk) and then you have very little performance gain for an app like Textpattern.

But, afterall they are a customer and they get what they want ;-) I just wouldn’t want to be the person having to maintain such a setup as it is far more complex than usually required.
Good luck with the re-writing (I would think a Java snippet should be the best solution for re-writing as you probably won’t find any out-ofthe-box-solutions) :-)


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#5 2011-12-26 00:53:09

newnoise
Member
Registered: 2011-02-24
Posts: 35

Re: Clean URLs with Tomcat

Okay, thanks a lot!
I will look into it after the holidays.

Merry Christmas!

Offline

Board footer

Powered by FluxBB