skip to Main Content

I have a static website generated by Hugo and a web server with Plesk installed.

What is the minimal server configuration for a static website?

For example: Is it possible to deactivate the PHP support? What else can I deactivate?

My goal is to improve security and performance. Why not deactivate functions which are not necessary?

2

Answers


  1. I think you need to focus on the minimum hardware requirements for Plesk – https://docs.plesk.com/release-notes/obsidian/hardware-requirements/

    Login or Signup to reply.
  2. With nginx if you don’t specify to send requests to PHP then it won’t use them, so it should not have any impact on security or performance.

    server {
        server_name  example.org
        root /www/data;
    
        location / {
        }
    
        location /images/ {
        }
    
        location ~ .(mp3|mp4) {
            root /www/media;
        }
    }
    

    Source

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search