US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > General technical discussion


Reply
 
Thread Tools
Old 07-27-2020, 07:01 PM   #1
Junior Member
 
Join Date: Mar 2020
Posts: 4
Topweb.wales is on a distinguished road
Default www-domains > Edit breaks Nginx config

My Nginx config is set to redirect non www and also non https to
https://www.topweb.wales

This means I have 3 server blocks:

server_name topweb.wales www.topweb.wales; for port 80 There is no https so
return 301 https://www.topweb.wales:443$request_uri; send to https://www

server_name topweb.wales; for port 443 ssl There is no www so
return 301 https://www.topweb.wales$request_uri; send to https://www

Now we are where we should be so:

server_name www.topweb.wales; This is correct.

If I make any change by editing the www-domain for instance enabling gzip or altering the cache then all 3 server blocks have their name changed like:

server_name www.topweb.wales topweb.wales;

This causes an infinite redirect loop.

Why are the server blocks re-written each time? just to add entries.
Topweb.wales is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:36 PM.