owncloud - Apache rewriting multiple REQUEST_URI -
i trying both plex , owncloud working apache. have plex set correctly, requests coming http://server.com/
rewritten , proxied localhost:32400/web/
. achieve following configuration:
<virtualhost *:80> servername mattstv.xyz <proxy *> order deny,allow allow </proxy> rewriteengine on rewritecond %{request_uri} ^/owncloud$ rewritecond %{http:x-plex-device} ^$ rewriterule ^/$ /web/$1 [p,r] proxyrequests off proxypreservehost on proxypass / http://127.0.0.1:32400/ proxypassreverse / http://127.0.0.1:32400/ </virtualhost>
i wish keep setup keeps family getting confused when see 32400/web/index.html
in browser.
i have added owncloud server , trying http://server.com/owncloud
not proxied or rewritten. have rule check /owncloud
in request_uri
doesn't appear working.
i following response when going http://server.com/owncloud
<mediacontainer size="0" content="plugins"></mediacontainer>
it looks it's pulling main page none of scripts resolving based on debugger:
when disable virtual host owncloud url works correctly.
from reading apache documentation believe proxy not occur if rewrite conditions fail?
got working plex, owncloud, , syncthing. added multiple proxypass
commands each url wanted proxy.
owncloud listens on port 80, needs bypass proxy. syncthing requires trailing slash after url
<virtualhost *:80> servername server.com proxyrequests off proxypreservehost on #let owncloud pass straight through proxypass /owncloud ! #syncthing doesn't work without trailing slash in browser url rewriterule ^/syncthing$ /syncthing/ [r] proxypass /syncthing/ http://127.0.0.1:8384/ proxypassreverse /syncthing/ http://127.0.0.1:8384/ #default go plex proxypass / http://127.0.0.1:32400/ proxypassreverse / http://127.0.0.1:32400/ rewriteengine on rewritecond %{request_uri} !^/web rewritecond %{http:x-plex-device} ^$ rewriterule ^/$ /web/$1 [r,l] </virtualhost>
Comments
Post a Comment