I have a problem: I configured some services on my server, as resiliosync, transmission, owncloud, plex media server and php virtualbox. I created different VirtualHosts for owncloud, plex and php virtualbox. Then I configured ddns port redirect for each one (on dynu.com) with auto IP update configured on my OpenWrt router. On the router, I configured port forwarding too. port Everything works perfectly, but if I try to activate the option for masking/cloaking url the services don't load (i get an instant load white page without error messages). So the ddns works only in no masking/cloaking mode ( in the address bar I write "mydomain.dynu.net" and then the address become "myip:portassignedtoservice/virtualhost"). The only service that works with cloaking is PlexMedia server. I configured its VirtualHost to auto redirect to its "/web" directory (i found the instructions for configure Proxy and httpd mod rewite on a forum) and this is the configuration:
Code: Select all
<VirtualHost *:32400>
ServerName mydomain.dynu.net
<Location />
AuthType Basic
AuthName "Restricted area"
AuthUserFile /private/etc/apache2/htpasswd
Require valid-user
</Location>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
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>
But if I reply these settings in other VirtualHosts .conf files they don't work. And how can I solve the problem on those services that are not configured using VirtualHost (for example Transmission that uses port 9091 or resiliosync that uses port 8888)? Is there a way to change the general settings of httpd to make cloaking work ?
Thank you in advance for support!