- 162
- 45
- NAS
- DS918+ (8GB RAM, 4x WD RED 4TB SHR) ; EATON Ellipse PRO 1200FR
- Operating system
- Windows
- Mobile operating system
- Android
My example is for one specific app but to redirect every thing coming on port 80 no matter what fqdn was targeted, the configuration below should be ok as it would redirect all HTTP traffic to HTTPS (haven't tried though)Will try it, just one question: is it just one file for all the apps?
Code:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}