• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

hostname changed, but plesk keep redirecting me

EvolutionCrazy

Basic Pleskian
i've changed the hostname of my server through the plesk admin interface...

restart the server...

everything now around the server is setted with the new hostname... except when i access to the plesk interface without specifing https.... (i just tipe http://sub.domain.tld)

it redirect me to https://oldsub.domain.tld

what i've to change to be able to access to the interface from the new hostname?
 
Sometimes changing the hostname in Plesk is not quite enough. What OS are you using? Log in via SSH and run the command

#hostname

See if the new hostname is presented. You may have to make some changes to the OS.
 
Originally posted by phoenixisp
Sometimes changing the hostname in Plesk is not quite enough. What OS are you using? Log in via SSH and run the command

#hostname

See if the new hostname is presented. You may have to make some changes to the OS.

plesk takes care of

#hostname

the only thing i've noticed it hasn't changed is the /etc/hosts... that i've modified manually...

however i do not understard why it redirect me to the old hostname if i access to plesk without specifing the secure protocol...

http instead of https...
 
Check your /path_to_psa/psa/admin/conf/httpsd.conf file for the following:

Code:
#ServerAdmin @adminemail@
ServerName <server_name>
DocumentRoot "/usr/local/psa/admin/htdocs"
<Directory />
#    SSLRequireSSL ## disabled for allowing http redirect to https by 400 Error (Bad Request see bug #25466)
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory "/usr/local/psa/admin/htdocs">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

## http redirect to https (Bad Request see bug #25466)
## it requires that SSLRequireSSL is turned off in other case 403 error is generated
[b]ErrorDocument 400 [url]https://<your_old_server_name_here>:8443[/url][/b]

If the line in bold refers your old servername thats why it's redirecting wrong - correct this :)
 
Wanted to say thank you!

I have been asking my server provider for answer and no luck, been several days ;)
 
Back
Top