Forum Replies Created
-
AuthorPosts
-
JiggledadParticipant
I tried a few more things, and finally found a configuration that would disable the redirect successfully. That said, I am still having difficulty getting Caddy to serve the webplayer successfully through a reverse proxy to a subdomain. It will load the webplayer, and log into the remote computer successfully (PC shows popup notification that user has connected), but will not actually load the picture remotely (all is successful if logging in from LAN using direct IP in browser). I’m not yet sure if it’s a limitation of Caddy, or if I need some additional configuration on one side or the other. If anyone knows anything I can try, I would greatly appreciate it.
I’ve copied the relevant block from htd.cfg below, in case it can help anyone else out.
#commented out 4 lines below as somewhat indicated by previous article
#RewriteEngine On
#ReWriteCond %{SERVER_PORT} !^4443$
#RewriteCond %{REQUEST_URI} !^/?favicon.ico$
#RewriteRule ^/(.*) https://%{SERVER_ADDR}:4443/nxwebplayer [R,L]
#changed this port from 4443 to 4080, commented out SSL related stuff
<VirtualHost 0.0.0.0:4080>
ServerAdmin you@example.com
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/?nxwebplayer$ [NC]
RewriteCond %{REQUEST_URI} !^/?(event|eventinit)$
RewriteCond %{REQUEST_URI} !^/?nxplayer/(js|images|style|languages)/.*$
RewriteCond %{REQUEST_URI} !^/?nxinfo/[a-fA-F0-9]{32}\.info$
RewriteCond %{REQUEST_URI} !^/?favicon.ico$
RewriteCond %{REQUEST_URI} !^/?$
RewriteRule ^(.*)$ – [F,L]
# SSLEngine on
# SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
# #server certificate:
# SSLCertificateFile “C:/Program Files (x86)/NoMachine/etc/keys/host/ht_host_rsa_key.crt”
# #private server key:
# SSLCertificateKeyFile “C:/Program Files (x86)/NoMachine/etc/keys/host/ht_host_rsa_key”
# #server certificate chain:
# #SSLCertificateChainFile “C:/Program Files (x86)/NoMachine/etc/nomachine-CA.crt”
# #Certificate Authority (CA):
# #SSLCACertificateFile “C:/Program Files (x86)/NoMachine/etc/nomachine-CA.crt”
# SSLCipherSuite ALL:!ADH:!EXPORT56:!3DES:+HIGH:+MEDIUM:!RC4:!IDEA-CBC-SHA
PassEnv ALLUSERSPROFILE USERPROFILE
SetEnvIf User-Agent “.*MSIE.*” \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
-
AuthorPosts