Mailing List Archive

some rewrite rules only possible with mod_rewrite? (typo3)
Hi,

im trying to convert the apache rewrite rules for typo3 to cherokee.
But there are some conditions that i dont know how to convert:

#=== begin first block ===
RewriteCond %{HTTP:Pragma} !no-cache
RewriteCond %{HTTP:Cache-Control} !no-cache
RewriteCond %{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html -f
RewriteRule .* typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html [L]
#=== end first block
I simply have no graps on how to match the no-cache Pragma/Cache-Control.
Is it at all possible to do stuff like the last two lines with cherokee?


#=== begin second block ===
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
#=== end sencond block
How do i match this?



regards


--
Andreas Olsowski <andreas.olsowski@uni.leuphana.de>
Leuphana Universität Lüneburg
System- und Netzwerktechnik
Rechenzentrum, Geb 7, Raum 15
Scharnhorststr. 1
21335 Lüneburg

Tel: ++49 4131 / 6771309
Re: some rewrite rules only possible with mod_rewrite? (typo3) [ In reply to ]
On Wed, 21 Apr 2010 22:28:49 +0200
Andreas Olsowski <andreas.olsowski@uni.leuphana.de> wrote:

> im trying to convert the apache rewrite rules for typo3 to cherokee.
> But there are some conditions that i dont know how to convert:

I'm playing with TYPO3 (4.6.7) and would like to check if Cherokee can
improve performance, so wonder whether you managed to get pretty URLs
for it?


Sincerely,
Gour

--
Bewildered by the modes of material nature, the ignorant fully
engage themselves in material activities and become attached. But
the wise should not unsettle them, although these duties are inferior
due to the performers' lack of knowledge.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Re: some rewrite rules only possible with mod_rewrite? (typo3) [ In reply to ]
On 11/10/12 21:20, Gour wrote:
> I'm playing with TYPO3 (4.6.7) and would like to check if Cherokee can
> improve performance, so wonder whether you managed to get pretty URLs
> for it?

The main problem with mod_rewrite / .htaccess is that virtually no user
has any clue what has been written there. If you do understand step by
step what the .htaccess tries to achieve generating a few matches in
Cherokee is trivial.

Some performance might be gathered from directly serving static content
and caching of replies, but typically getting faster PHP is dependant on
PHP not the webserver.


Stefan

_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee
Re: some rewrite rules only possible with mod_rewrite? (typo3) [ In reply to ]
On Sat, 10 Nov 2012 21:23:36 +0100
Stefan de Konink <stefan@konink.de> wrote:

> The main problem with mod_rewrite / .htaccess is that virtually no
> user has any clue what has been written there. If you do understand
> step by step what the .htaccess tries to achieve generating a few
> matches in Cherokee is trivial.

Yeah, deciphering .htaccess rules is not the most intuitive thing in
the world. :-)

> Some performance might be gathered from directly serving static
> content and caching of replies, but typically getting faster PHP is
> dependant on PHP not the webserver.

Well, until I manage to rewrite those rules, tried with lighty for
which I did find recipe and TYPO3 performs much better by using much
less memory.


Sincerely,
Gour


--
He is a perfect yogī who, by comparison to his own self,
sees the true equality of all beings, in both their
happiness and their distress, O Arjuna!

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee