server { listen 80; listen [::]:80; server_name go.mozzam.co.za; return 301 https://$host$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name go.mozzam.co.za; ssl_certificate /etc/letsencrypt/live/go.mozzam.co.za/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/go.mozzam.co.za/privkey.pem; root /var/www/mozzam-go/current/runtime/www/landing; index index.html; location / { try_files $uri $uri/ /index.html; } location /api/ { proxy_pass http://127.0.0.1:3100/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } } # ========================= # 🌐 NEW DOMAIN: MOZZAM.CO.ZA # ========================= server { listen 80; listen [::]:80; server_name mozzam.co.za; return 301 https://$host$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name mozzam.co.za; ssl_certificate /etc/letsencrypt/live/mozzam.co.za/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/mozzam.co.za/privkey.pem; # NEW CORPORATE LANDING PAGE root /var/www/mozzam-corporate/landing; index index.php index.html; location / { try_files $uri $uri/ /index.html; } }