continue for https://teguhth.blogspot.com/2026/08/install-apache-guacamole-in-almalinux.html
1. install nginx & Buat sertifikat SSL
dnf install nginx openssl -y
mkdir -p /etc/nginx/ssl
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
-keyout /etc/nginx/ssl/guacamole.key \
-out /etc/nginx/ssl/guacamole.crt \
-subj "/C=ID/ST=Jawa Barat/L=Bogor/O=IT/OU=IT/CN=10.10.10.22"
ls -l /etc/nginx/ssl/
2. Buat konfigurasi Nginx
[root@teguhth tomcat]# cat /etc/nginx/conf.d/guacamole.conf
server {
listen 443 ssl;
server_name 10.10.10.22;
ssl_certificate /etc/nginx/ssl/guacamole.crt;
ssl_certificate_key /etc/nginx/ssl/guacamole.key;
location /guacamole/ {
proxy_pass http://127.0.0.1:8080/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
server {
listen 80;
server_name 10.10.10.22;
return 301 https://$host$request_uri;
}
[root@teguhth tomcat]#
3. Test konfigurasi
nginx -t
4. Aktifkan Nginx
systemctl enable --now nginx
systemctl start nginx
systemctl status nginx
5. Test
https://10.10.10.22/guacamole/

.jpeg)


No comments:
Post a Comment