How to Implement Password Protection for Static HTML Files in a Subdirectory with Nginx and PHP?
I have a Debian 12 server with Nginx and PHP8.2.
I have a Hugo Project in my folder. The Hugo project has an index.html. My goal is to create a password query via an index.php (which is loaded first). If I now call up a subfolder via a complete URL, the password query should also take place. All requests should therefore go to the index.php and only then be resolved.