• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Block/Remove Web access (:80/443) of server IP

Ludo

New Pleskian
Server operating system version
CentOS 7.9
Plesk version and microupdate number
Version 18.0.71 #2
Hello,

If i type the IP of my plesk server in web browser, i got the default webpage (httsdoc) :
http(s)://51.x.x.102 > Show default webpage

I want to block / remove that, an idea?
Same for the server name, ex: http(s)://XXXXX733.ip-51-X-X.eu


Best regards
 
Hello, for instance, you can remove this file /var/www/vhosts/default/htdocs/index.html and you will have 403 (Forbidden)
 
Is it possible to block access to ports 80 & 443 for IP/SERVER NAME because this is not PCI COMPLIANT?
 
yes, for instance, you can use the firewall extension
Are you sure about that? If I am not mistaken the Plesk Firewall extension does not support the creation rules in which you can block traffic for a particular destination (i.e hostname) while allowing traffic for others. It's all of nothing.

An alternative might be to create your own custom web server configuration templates. This will allow you modify the Virtual Hosts configuration. I think the configuration for the IP and hostname are created with the template at /usr/local/psa/admin/conf/templates/default/server.php. You can copy this template to the /usr/local/psa/admin/conf/templates/custom directory and modify it for your own use. Make sure to carefully read the documentation first.
 
Back
Top