Konfigurasi Vhost Nginx Proxy
server {
server_name **Url Website**;
location / {
proxy*pass* **htpp://IP_Container:80**;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
}
Konfigurasi Vhost Apache2
<VirtualHost *:80>
ServerName **URL_Website**
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/
<Directory /var/www/html>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>