Hi Maria Jesus,
Maria Jesus Turiel schrieb:
Hi again :)
I need that some url on my Portal get files on file system but no
through lenya.
I have read documents in
http://lenya.apache.org/docu20/tutorials/proxy/proxying.html but I've
not found about it
I've tried adding the next rule in mi apache httpd config:
RewriteRule ^/MyVideos/.*$ /usr/local/lenya/MyVideos/$1
So, My file (more o less) is some like this:
<VirtualHost *:80>
ServerName www.myexample.com
CacheRoot /var/cache/apache2/mod_disk_cache
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
ProxyRequests Off
RewriteEngine On
RewriteLog "/var/cache/apache2/rewrite.log"
RewriteLogLevel 3
# my own files
RewriteRule ^/MyVideos/.*$ /usr/local/lenya/MyVideos/$1
I guess you should add the [L] to this rule too to avoid further rewriting.
# live
RewriteRule ^/([^/\.]+)$ $1/ [R]
RewriteRule ^/(.*) http://www.myexample.com:8888/default/live/$1
[P,L]
ProxyPass / http://www.myexample.com:8888/default/live/
ProxyPassReverse / http://www.myexample.com:8888/default/live/
I think you have to disable proxying for the videos URI:
ProxyPass /MyVideos/ !
Maybe this helps.
-- Andreas
</VirtualHost>
But When I get the URL http://www.myexample.com/MyVideos/ It makes
tranformation but after pass this to lenya and no search it in
filesystem. And then get the lenya not found document message:
"El documento solicitado '/usr/local/lenya/MyVideos/test.flv' con
documento-id no existe."
Do you know how can I get this behaviour in my portal over a unique
domain, using apache httpd?
Many thanks in advance
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]