TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] static File Cache / redirect into cache directoy

This is a discussion on [TYPO3] static File Cache / redirect into cache directoy within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi guys, I'm using the extension "static File Cache" and it works fine for me on several ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 24.06.2008, 10:43
FORMER 03 | Florian Schupp
Gast
 
Beiträge: n/a
Standard [TYPO3] static File Cache / redirect into cache directoy

Hi guys,
I'm using the extension "static File Cache" and it works fine for me on
several installations, but one server keeps redirecting users into the
cache dirctory!

http://typo3.org/extensions/reposito...lecache/2.3.1/

If you go to http://www.pinsker.de

You will be redirected to (not right now!)
http://www.pinsker.de/typo3temp/tx_n....de/index.php/

At least it's what happens to me. In my .htaccess file I use:

RewriteCond
%{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}index.html
-f
RewriteRule .*
typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI} [L]


Anyone seen this before? Is it a server Issue?

Thanks Florian



--
Florian Schupp
http://www.former03.de/

#######################################
### Current Typo3 Projects

http://www.pinsker.de
http://www.enocean-alliance.com
http://www.curameda.de
http://www.music-company.de/
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 27.06.2008, 10:51
Michiel Roos
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] static File Cache / redirect into cache directoy

FORMER 03 | Florian Schupp schreef:
> Hi guys,
> I'm using the extension "static File Cache" and it works fine for me on
> several installations, but one server keeps redirecting users into the
> cache dirctory!
>
> http://typo3.org/extensions/reposito...lecache/2.3.1/
>
> If you go to http://www.pinsker.de
>
> You will be redirected to (not right now!)
> http://www.pinsker.de/typo3temp/tx_n....de/index.php/
>
>
> At least it's what happens to me. In my .htaccess file I use:
>
> RewriteCond
> %{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}index.html
> -f
> RewriteRule .*
> typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI} [L]


Hello again,



You can switch on mod_rewrite debugging for a start. To do this you need
access to your apache config. You add these two lines somewhere:

RewriteLog "/var/www/apache/mod_rewrite.log"
RewriteLogLevel 4

Then you can restart apache, open a terminal and tail the log using:

tail -f /var/www/apache/mod_rewrite.log

You should see log messages scrolling by explaining what mod rewrite is
actually rewriting and to where. This may help debugging.

I don't know what kind of setup you have for your rewriting rules. I
changed my rewriting rules a couple of days ago to live in my vhost.
This showed me (by looking at the rewrite logs) that the rewriting
sometimes fails in that case because of a double slash. I changed these
lines:

RewriteCond
%{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}index.html
-f
RewriteRule .*
/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI} [PT]

Into these:

RewriteCond
%{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}%{REQUEST_URI}index.html
-f
RewriteRule .*
/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}%{REQUEST_URI} [PT]

(remove the slash beteween HTTP_HOST and REQUEST_URI)

Also I notices that mod rewrite rewrote my path requests to the default
index file. In my case this was set to index.htm. In some other cases it
is set to index.php. But the index files written by staticfilecache end
in html.

So I had to adjust:

DirectoryIndex index.htm index.html index.php

to read:

DirectoryIndex index.html index.php index.htm

I put index.htm in the back since it is the one that is used least often.

Also I notices a difference in using the [L] with mod_rewrite as opposed
to the [PT]. They mean 'last' and 'passthrough' respectively. Experiment
with that.

I hope this helps. If not, give me som more info.

Good luck!



Kind regards,


Michiel Roos

--
Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-german] Cache Michel Koller typo3-german@lists.netfielders.de 2 29.05.2008 06:17
[TYPO3] set no cache in TS Miguel Angel Calleja Lázaro typo3-english@lists.netfielders.de 3 21.02.2008 12:15
[TYPO3] Cache Management Sylvain Gourvil typo3-english@lists.netfielders.de 3 08.06.2007 14:05
[TYPO3-dev] Setting a extension 'view' to not-cache without piVars,cHash but with addPItoST43 cache=1 Jonas Dübi typo3-dev@lists.netfielders.de 6 20.04.2007 10:24
[TYPO3-german] cache all... Carsten Dütschke | ULTIMO Verlag GmbH typo3-german@lists.netfielders.de 0 05.04.2007 12:25


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:32 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39