So, guac is configured to use Lets Encrypt for a SSL cert and it works great. 
But, my unsecured version is still open. My Apache configuration is set to 
redirect to HTTPs, but guac doesn't seem to be listening, or my apache rules 
are incorrect.

My current apache config is listed below.

<VirtualHost *:80>
      # redirect to https
      Redirect permanent / https://myURL
</VirtualHost>

<VirtualHost *:443
      # LogLevel info ssl:warn
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined

      # Enable SSL for this virtual host.
      SSLEngine on
      SSLCertificateKeyFile /etc/letsencrypt/live/myurl.org/privkey.pem
      SSLCertificateFile /etc/letsencrypt/live/myurl.org/cert.pem
      SSLCertificateChainFile /etc/letsencrypt/live/myurl.org/chain.pem

      # Configure proxy with tomcat
      ProxyPreserveHost On
      ProxyRequests Off
      ProxyPass / http://localhost:8080/
      ProxyPassReverse / http://localhost:8080/
</VirtualHost>

After doing some searching I found that I needed to add this, to my 
configuration. But it didn't seem to work and my rewrite module has been enable.
      RewriteEngine On
      RewriteCond %{HTTPS} On
      RewriteRule (.*) 
https://%{HTTP_HOST}%{REQUEST_URI}<https://%25%7bHTTP_HOST%7d%25%7bREQUEST_URI%7d>

I know this is a simple question, but would anyone have advice or a suggestion?

Thanks!

Carter Sema
Network Support Specialist
[email protected]<mailto:[email protected]>
[CertBadge_Administrator_web]

Reply via email to