• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Domain with default page... And I cannot change

Antoine

New Pleskian
Hello,
Recently, I'm installed a new VPS and configure a .com domain. But, when I try to view the WP webpage, it shows the default Plesk page. I tried to delete the index.html fromt httpdocs, but the domain shows the same.

Aparently, the domain is correctly configured, even with the correct DNS and IP.

How can I solve this?

Thank you!
 
Hi Antoine,

in some cases the content from "/var/www/html/" is loaded ( which are the standard files, when no vhosts are configured on your server ). This depends on your very own ( standard ) configuration defined at "/etc/apache2/sites-enabled" ( OR "/etc/httpd/sites-enabled" on CentOS/RHEL - based systems ) ( existent files are symlinks to configuration files at "/etc/apache2/sites-available" OR "/etc/httpd/sites-available" on CentOS/RHEL - based systems ). Examples may be named as "default.conf", or "default-ssl.conf". Consider to REMOVE such symlinks at "/etc/apache2/sites-enabled" ( OR "/etc/httpd/sites-enabled" on CentOS/RHEL - based systems ) to deny displaying such default - sites, after you created your first domain over Plesk!

In addition, pls. be aware, that you might need "Additional NGINX directives", when you have existent ".htaccess" - files from your wordpress - installation ( or when additional wordpress - plugins are used ). It might be necessary, that you add at

"Home > Subscriptions > YOUR-DOMAIN.COM > Apache & nginx Settings > (textbox) Additional nginx directives" for example:

Code:
if (!-e $request_filename) {
  rewrite ^.*$ /index.php last;
}
 
Hi Antoine,

in some cases the content from "/var/www/html/" is loaded ( which are the standard files, when no vhosts are configured on your server ). This depends on your very own ( standard ) configuration defined at "/etc/apache2/sites-enabled" ( OR "/etc/httpd/sites-enabled" on CentOS/RHEL - based systems ) ( existent files are symlinks to configuration files at "/etc/apache2/sites-available" OR "/etc/httpd/sites-available" on CentOS/RHEL - based systems ). Examples may be named as "default.conf", or "default-ssl.conf". Consider to REMOVE such symlinks at "/etc/apache2/sites-enabled" ( OR "/etc/httpd/sites-enabled" on CentOS/RHEL - based systems ) to deny displaying such default - sites, after you created your first domain over Plesk!

In addition, pls. be aware, that you might need "Additional NGINX directives", when you have existent ".htaccess" - files from your wordpress - installation ( or when additional wordpress - plugins are used ). It might be necessary, that you add at

"Home > Subscriptions > YOUR-DOMAIN.COM > Apache & nginx Settings > (textbox) Additional nginx directives" for example:

Code:
if (!-e $request_filename) {
  rewrite ^.*$ /index.php last;
}

Hi,
I did some modifications in the IP configuration and a website is working now properly. However, y set up another web page, and the problems have appeared again.


In any case, I checked the configuration of the new domain and everything is right. I have two IP, and IPv4 and a IPv6. The DNS are correct and it seems redirecting properly. The website is that: hooray.es.

What can I do?

Thank you so much!
 
Hi Antoine,

what is the output of the SSH - command ( logged in as user "root" ):
Code:
ls -lah /var/www/vhosts/hooray.es/httpdocs | grep index
 
Hi Antoine,

what is the output of the SSH - command ( logged in as user "root" ):
Code:
ls -lah /var/www/vhosts/hooray.es/httpdocs | grep index

Hi,
The output is the following:
Code:
-rw-r--r--  1 hooray psacln   418 Dec 12 00:41 index.php

Thank you!
 
Hi Antoine,

could you pls. post the content of your ".htaccess" - file from the folder "/var/www/vhosts/hooray.es/httpdocs"?
And IF you use NGINX as well, pls. post the corresponding "Additional NGINX directives" from "Home > Subscriptions > YOUR-DOMAIN.COM > Apache & nginx Settings > (textbox) Additional nginx directives".
In addition, pls. make sure, that apache AND nginx are active services and ( depending to your used PHP - handler on your (sub)domain, pls. check as well, that the corresponding PHP-FPM - service is active ), pls. don't forget to check ( possible ) errors from your logs.
 
Hi Antoine,

could you pls. post the content of your ".htaccess" - file from the folder "/var/www/vhosts/hooray.es/httpdocs"?
And IF you use NGINX as well, pls. post the corresponding "Additional NGINX directives" from "Home > Subscriptions > YOUR-DOMAIN.COM > Apache & nginx Settings > (textbox) Additional nginx directives".
In addition, pls. make sure, that apache AND nginx are active services and ( depending to your used PHP - handler on your (sub)domain, pls. check as well, that the corresponding PHP-FPM - service is active ), pls. don't forget to check ( possible ) errors from your logs.

Hello,
There is no .htaccess, just a index.php file with a simple HTML structure.

In "Additional NGINX directives", all is by default. There is some screenshots:

Directives_1.jpg

Directives_2.jpg


Apache and Nginx area active with no errors. Everything seems fine.

Thank you!
 
Hi Antoine,

pls. consider to add additional informations from "Home > Tools & Settings > Apache Web Server" and you still miss the informations about your (sub)domain specific PHP - settings: => "Home > Subscriptions > (sub)YOUR-DOMAIN.COM > PHP Settings"
 
Hi Antoine,

I obtain the same
did you see my previous suggestions:
in some cases the content from "/var/www/html/" is loaded ( which are the standard files, when no vhosts are configured on your server ). This depends on your very own ( standard ) configuration defined at "/etc/apache2/sites-enabled" ( OR "/etc/httpd/sites-enabled" on CentOS/RHEL - based systems ) ( existent files are symlinks to configuration files at "/etc/apache2/sites-available" OR "/etc/httpd/sites-available" on CentOS/RHEL - based systems ). Examples may be named as "default.conf", or "default-ssl.conf". Consider to REMOVE such symlinks at "/etc/apache2/sites-enabled" ( OR "/etc/httpd/sites-enabled" on CentOS/RHEL - based systems ) to deny displaying such default - sites, after you created your first domain over Plesk!

Consider as well, to rebuild your webserver - configuration files with the command:

plesk repair web -y -v

OR/AND

plesk repair all -y -v
 
Hi Antoine,


did you see my previous suggestions:


Consider as well, to rebuild your webserver - configuration files with the command:

plesk repair web -y -v

OR/AND

plesk repair all -y -v

I did that, but the problem is still the same. Even I upgraded to Plesk Onyx, with same problem.

It's curiosly. I created a new VPS with same configuration, and install a first web. It is working but, when y configured a second one (hooray.es) the same problem apeared. The configuration is identical, even the IP.

I don¡t know what is happen, honestly.

Thank you!
 
Hi Antoine,

pls. post ALL webserver - configuration files ( you may compress them into a zip - file for example ) from apache AND from nginx as attachment, including the (sub.)domain - specific configuration files from "/var/www/vhosts/system/(sub.)domain.com/conf/" for further investigations.
 
Hi!
Finally, was a problem with the IP. Plesk was adquiring an internet IP. I changed that and, now, everything work.

Thank you!
 
Back
Top