• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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