• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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