I have a simple script that works and launches a CGI simple web server: It works perfectly but I need to have authentication on all files and folders.
#!/usr/