upstream archiva.example.com {
server 127.0.0.1:8084;
}
# Serve Local Webserver Out of Proxy
server {
listen 80;
server_name archiva.example.com;
rewrite ^(.*) https://$server_name$1 permanent;
}
server {
listen 443;
ssl on;
ssl_certificate .....
server_name you.example.com;
location / {
proxy_pass http://127.0.0.1:8084;
proxy_set_header host archiva.example.com;
}
}