Hi I created a new domain.com, and I set: Auto-Subdomain: none redirect: none when I test https://domain.com it always redirect to https://www.domain.com in the domain vhost file, I see this. seems something wrong. # nginx did not start after modifying this vhost file. # Please check file /etc/nginx/sites-available/domain.com.vhost.err for syntax errors. the vhost file is generated by ISPconfig domain.com.vhost.err server { listen *:80; listen [::]:80; server_name domain.com ; root /var/www/domain.com/web/; disable_symlinks if_not_owner from=$document_root; index index.html index.htm index.php index.cgi index.pl index.xhtml; error_log /var/log/ispconfig/httpd/domain.com/error.log; access_log /var/log/ispconfig/httpd/domain.com/access.log combined; location ~ /\. { deny all; } location ^~ /.well-known/acme-challenge/ { access_log off; log_not_found off; auth_basic off; root /usr/local/ispconfig/interface/acme/; autoindex off; index index.html; try_files $uri $uri/ =404; } location = /favicon.ico { log_not_found off; access_log off; expires max; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } location = /robots.txt { allow all; log_not_found off; access_log off; } location /stats/ { index index.html index.php; auth_basic "Members Only"; auth_basic_user_file /var/www/clients/client0/web124/web//stats/.htpasswd_stats; add_header Content-Security-Policy "default-src * 'self' 'unsafe-inline' 'unsafe-eval' data:;"; } location ^~ /awstats-icon { alias /usr/share/awstats/icon; } location ~ \.php$ { try_files /4232ce5522d56b091027807a9fdc3781.htm @php; } location @php { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/lib/php7.2-fpm/web124.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; } }
This is not done by ISPConfig. ISPConfig is not doing any redirects unless you configure them. Such redirects can be done by the CMS or website you install into the site, e.g., WordPress is doing that. Another possibility is that you added a .htaccess file, if this is an Apache server, which contains a redirect.
thanks for reply. I did not have any thing installed yet. it might be related to I rename domain.com to domain2.com, then create domain.com again in ISPconfig. seems something conflicted. I fixed the issue by del the 2 related domains, and recreate it again. then it works now. seems rename a domain in ISPconfig is not as easy as I thought.
I rename domains regularly in ISPConfig, no issues at all. Just alter domain name in the domain field and press save. Might be that your browser had cached a redirect or something like that.