• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Question After renaming a domain

Tor Jörgensborg

New Pleskian
Hello,

I am not a developer nor an linux expert so I hope my question in not silly or been asked before. I have tried to use the search but did not find an answer.

I have created a domain called develop4.se where I have a magento site. As the name suggest its a site we have been working on. Now we are finished and my idea was to rename the site to myworkingsite.com and change my dns pointer to ip adress for myworkingsite.com and I was back in action again. I tried this with another test site called testsite1.se.

I tested to rename my domain from develop4.se to testsite1.se and its working and I can see that directory name has change from develop4.se to testsite1.se. I also restarted me apache server.

When I try to access testsite1.se I got the default plesk page and it change name in the browser field from testsite1.se to develop4.se.

My question is ? What are I am missing and how can I get it to work so I can access my magento site from testsite1.se and its says testsite1.se in the browser field.

Best,

Tor
 
Hi Tor Jörgensborg,

before you reconfigure your configuration files, pls. check, that "/var/www/vhosts/develop4.se" was renamed to "/var/www/vhosts/testsite1.de" and consider to delete ( or rename ) the default "index.html", because the standard for serving files is defined as "index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml" => "index.html" is served BEFORE "index.php", when both files are existent in the document root.

To rebuild the configuration files, you can always use the command:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
Back
Top