[FLOW3-general] Blog example and images.
mario chiari
m at mariochiari.net
Sat Aug 25 19:37:38 CEST 2012
Hi Christian, all,
an update.
I discovered the very basic fact that I need to set
AllowOverride All
within my server httpd.conf file, otherwise directives within
the .htaccess file shipped with flow3 are not even considered.
Still, to avoid to get just a 500 Internal Server Error, it seems I had
to comment out all the SetEnv lines:
SetEnv FLOW3_CONTEXT Production
SetEnv FLOW3_ROOTPATH /var/www/html/flow3/
SetEnv FLOW3_REWRITEURLS 1
SetEnvIfNoCase Authorization "Basic ([a-zA-Z0-9\+/=]+)"
REMOTE_AUTHORIZATION=$1
Blog seems to work fine and images are displayed.
Although the issue seems more Apache related than Flow3 related, any
hint you may offer is very welcome.
thanks, cheers
mario
On Fri, 2012-08-24 at 09:15 +0200, "Christian Müller (FLOW3 Team)"
wrote:
> Hi Mario,
>
> those two Rules from the .htaccess are responsible for rewriting
> resource URLs:
>
> # Perform rewriting of persistent private resources
> RewriteRule
> ^(_Resources/Persistent/[a-z0-9]+/(.+/)?[a-f0-9]{40})/.+(\..+) $1$3
[L]
>
> # Perform rewriting of persitent resource files
> RewriteRule ^(_Resources/Persistent/.{40})/.+(\..+) $1$2 [L]
>
> What they do is basically take the beginning of the URI up to the
hash
> and the file extension and strip out everything in between. So with
this
> rules if you request:
>
>
http://localhost/flow3/Web/_Resources/Persistent/1f7cbb751abf9b54fc31ffc176e7da8ae666e8f7/myFile.jpeg
>
> It would end up at
>
>
http://localhost/flow3/Web/_Resources/Persistent/1f7cbb751abf9b54fc31ffc176e7da8ae666e8f7.jpeg
>
> Which in turn should be the correct path for your resource. How do
your
> "normal" action URLs look like? do they contain index.php? That is a
> clear sign that rewriting isn't turned on. But if in such a case the
> resource URIs still point to the "nice" rewritten URI this would be a
bug.
>
> Cheers,
> Christian
>
....
_______________________________________________
FLOW3-general mailing list
FLOW3-general at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list