Hi,
I have reached some improvements. This is not (as I hope) the final
solution, but it works. I have changed Apache conf and rewrite rules
like this:
<VirtualHost 192.168.120.209:80>
...
RewriteEngine on
RewriteCond %{REQUEST_URI} !/*(.png)|(.jpg)|(.jpeg)|(.gif)
RewriteCond %{REQUEST_URI} !/api.php*
RewriteCond %{QUERY_STRING} !writer=rl
RewriteRule ^/ https://%{HTTP_HOST}%{REQUEST_URI} [redirect]
<Directory>
Allow from all
</Directory>
...
</VirtualHost>
<VirtualHost 192.168.120.209:443>
...
<Directory>
RewriteCond %{QUERY_STRING} writer=rl
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
AuthType Basic
...
</Directory>
...
</VirtualHost>
This configuration generates PDF, images within. One bad thing on this
approach is that user needs to push F5 and reload page twice or ones -
depends if it was already generated or not. Little bit strange
behaviour - but the basis works.
--
You received this message because you are subscribed to the Google Groups
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mwlib?hl=en.