Nginx
sudo apt install -y nginx
Reverse Proxy Nginx ;
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:8080;
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 $scheme;
}
}
sudo ln -s /etc/nginx/sites-available/reverse_proxy /etc/nginx/sites-enabled/
sudo unlink /etc/nginx/sites-enabled/reverse_proxy
Certbot
apt install python3-certbot-apache
certbot --apache -d sameddemet-server.eddi.cloud