I have a nginx web server set up to host on port 80 and 443, which means I can’t access the axigen web portal. Is there a way I can tell nginx to simply go to where it needs to when on the mail.X subdomain? Here is my nginx config right now:
#End Active Sync
############################ #Root Webhost - WebMail Access Portal
location / {
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #Added for viewing client IP and SSL protocol in security.log of Axigen.
proxy_set_header User-Agent “${remote_addr}///${ssl_protocol}__${ssl_cipher}///${http_user_agent}”;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http:/ / 127.0.0.1:8080;
proxy_read_timeout 90s;
} #Root Webhost - End WebMail Portal
#######################################
}
server {
listen 80; #We don’t want any non ssl traffic so redirect them all…
server_name mail(dot)domain(dot)net www(dot)mail(dot)domain(dot)net;
return 301 https:/ /$server_name$request_uri;
}