Having an Issue w/ getting GuacamoleNginx/LetsEncrypt Setup working properly
VM Environment
OS:Linux 16.04.03 LTS
Nginx:1.10.3
Certbot: Not sure on version
Domain:addmoreroutes.com
Hosting Provider:dyndns.org / A Record exists and is fine
Ubuntu:IPv6 is disabled
Guacamole is fine and working as I can access server internally within my network and externally just using port 8080 but I am not able to access my site using port 443. DestinationNAT/Port Forwards are correct on my home firewall and traffic is flowing thru fine. Traffic makes it to my server and I get a Nginx 404 Error message when I go to "https://hostname/guacamole/#/ from the outside. I followed this site as a guide
Attached below is the nginx configuration file
guacadmin@Guac1:~$ sudo nginx -t
[sudo] password for guacadmin:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
guacadmin@Guac1:~$ sudo nano /etc/nginx/sites-available/defaultserver {
server_name addmoreroutes.com;listen 443 ssl; # managed by Certbot ssl on; ssl_certificate /etc/letsencrypt/live/addmoreroutes.com/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/addmoreroutes.com/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location /Guacamole/ {
proxy_pass http://127.0.0.1:8080/guacamole/;
proxy_set_header Host $host;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;access_log off;
}
}server {
if ($host = addmoreroutes.com) {
return 301 https://$host$request_uri;
} # managed by Certbotlisten 0.0.0.0:80;
return 404; # managed by Certbot}