• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Resolved Migrator tool imports domain and now domain requires httpAuth to access

MHC_1

Regular Pleskian
Server operating system version
alma linux 9.7
Plesk version and microupdate number
18.0.76#2
Migrator Tool Version 2.62.0

Our first use of this version of this tool.
Previous migrations have worked ok.

But this migration moves the account across but then any public access to the account after DNS updates presents an HTTPAuth box for all public access despite no directory control being set up.

There is a help note here from Plesk -- https://support.plesk.com/hc/en-us/...-is-not-accessible-401-Authorization-Required -- But this doesn't apply as NO HTTP AUth has been set up on either the old server or the Plesk.

Plesk Repair command line utility finds no problems and no issues.

What details do you need for finding out why this has happened?!
 
Hi, @MHC_1 . The migrator is supposed to transfer the subscriptions as they are - the password-protection configuration (and the lack of such) should be preserved. Could you please check the following file and let us know what it contains:

Code:
/var/www/vhosts/system/example.com/conf/httpd.conf
 
Hi, @MHC_1 . The migrator is supposed to transfer the subscriptions as they are - the password-protection configuration (and the lack of such) should be preserved. Could you please check the following file and let us know what it contains:

Code:
/var/www/vhosts/system/example.com/conf/httpd.conf
Hello

Here is that file, it is 9Kb . There is 1 HttpAuth that was brought across from the original server host. This is for the /control subfolder. I have tried to disable this but this doesn't remove the request on the domain root.

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/website.co.uk/conf/vhost.conf
#/var/www/vhosts/system/website.co.uk/conf/vhost_ssl.conf
<IfModule mod_ssl.c>

<VirtualHost 123.123.123.123:443 >
ServerName "website.co.uk"
ServerAlias "www.website.co.uk"
ServerAlias "ipv4.website.co.uk"
UseCanonicalName Off

CustomLog "/var/www/vhosts/system/website.co.uk/logs/access_ssl_log" plesklog

ErrorLog "/var/www/vhosts/system/website.co.uk/logs/error_log"

DocumentRoot "/var/www/vhosts/website.co.uk/public_html"
<IfModule mod_suexec.c>
SuexecUserGroup "websiteco" "psacln"
</IfModule>

<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/website.co.uk/web_users/*"
</IfModule>

<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "62848328-16ad-439e-90ca-248aa9fa8c57"
</IfModule>

Alias "/plesk-stat" "/var/www/vhosts/system/website.co.uk/statistics"
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias "/webstat" "/var/www/vhosts/system/website.co.uk/statistics/webstat"
Alias "/webstat-ssl" "/var/www/vhosts/system/website.co.uk/statistics/webstat-ssl"
Alias "/ftpstat" "/var/www/vhosts/system/website.co.uk/statistics/ftpstat"
Alias "/anon_ftpstat" "/var/www/vhosts/system/website.co.uk/statistics/anon_ftpstat"
Alias "/awstats-icon" "/usr/share/awstats/wwwroot/icon"

SSLEngine on
SSLVerifyClient none
SSLCertificateFile "/usr/local/psa/var/certificates/scfha9ksumaerd34mxY34D"
SSLCACertificateFile "/usr/local/psa/var/certificates/scf13nq68h5atk72Clkgpw"

<Directory "/var/www/vhosts/website.co.uk/public_html">

<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler "proxy:unix:/var/www/vhosts/system/website.co.uk/php-fpm.sock|fcgi://127.0.0.1:9000"
</Files>
</IfModule>

SSLRequireSSL

Options -Includes -ExecCGI

</Directory>

<Directory "/var/www/vhosts/website.co.uk/public_html/control">
AuthType Basic
AuthName "BWL Access"
AuthUserFile "/var/www/vhosts/system/website.co.uk/pd/d..httpdocs@control"
require valid-user
</Directory>

DirectoryIndex "index.html" "index.cgi" "index.pl" "index.php" "index.xhtml" "index.htm" "index.shtml"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} "^website\.co\.uk$" [NC]
RewriteRule ^(.*)$ "https://www.website.co.uk$1" [L,R=301]
</IfModule>

<Directory "/var/www/vhosts/website.co.uk">
Options -FollowSymLinks
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,SymLinksIfOwnerMatch,MultiViews,ExecCGI,Includes,IncludesNOEXEC
</Directory>

<IfModule mod_headers.c>
</IfModule>

#extension sslit begin

Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"

#extension sslit end

#extension letsencrypt begin
Alias /.well-known/acme-challenge "/var/www/vhosts/default/htdocs/.well-known/acme-challenge"

<Location /.well-known/acme-challenge/>
# Require all granted
Order Deny,Allow
Allow from all
Satisfy any
</Location>

<LocationMatch "^/.well-known/acme-challenge/(.*/|)\.">
# Require all denied
Order Allow,Deny
Deny from all
</LocationMatch>
#extension letsencrypt end

#extension sectigo begin
AliasMatch "^/\.well-known/pki-validation/(?!fileauth\.txt$)(.*)$" "/var/www/vhosts/default/htdocs/.well-known/pki-validation/$1"

<Location /.well-known/pki-validation/>
# Require all granted
Order Deny,Allow
Allow from all
Satisfy any
</Location>

<LocationMatch "^/.well-known/pki-validation/(.*/|)\.">
# Require all denied
Order Allow,Deny
Deny from all
</LocationMatch>
#extension sectigo end
</VirtualHost>

</IfModule>



<VirtualHost 123.123.123.123:80 >
ServerName "website.co.uk"
ServerAlias "www.website.co.uk"
ServerAlias "ipv4.website.co.uk"
UseCanonicalName Off

CustomLog "/var/www/vhosts/system/website.co.uk/logs/access_log" plesklog

ErrorLog "/var/www/vhosts/system/website.co.uk/logs/error_log"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} "^website\.co\.uk$" [NC]
RewriteRule ^(.*)$ "https://www.website.co.uk$1" [L,R=301]
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,QSA]
</IfModule>
</VirtualHost>

<VirtualHost [2a00:da00:f43d:a300::1]:80 >
ServerName "website.co.uk"
ServerAlias "www.website.co.uk"
ServerAlias "ipv6.website.co.uk"
UseCanonicalName Off

CustomLog "/var/www/vhosts/system/website.co.uk/logs/access_log" plesklog

ErrorLog "/var/www/vhosts/system/website.co.uk/logs/error_log"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} "^website\.co\.uk$" [NC]
RewriteRule ^(.*)$ "https://www.website.co.uk$1" [L,R=301]
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,QSA]
</IfModule>
</VirtualHost>
 
@Sebahat.hadzhi The issue has self resolved, it was something to do with the SSL certificate. Reissuing the SSL Certificate for another issue cleared up the HTTPAuth on the public HTML part of the site.

Although it would be good to know why this occurred. It is now not a current issue.
 
Thank you for the update and confirmation. My guess is that something went wrong with the configuration file after the migration and the same was regenerated when you issued the SSL certificate. However, to point out what exactly happened I would suggest opening a ticket so server access could be granted. However, please note that even in this scenario there is no 100% guarantee our techs will be able to find the exact root cause.
 
Back
Top