• # Apache ?

    Posté par . En réponse au journal Mon serveur Web. Évalué à 4.

    Je ne comprends pas pourquoi tu ne fais pas traiter ces requêtes par Apache ?

    Tu fais écouter Apache sur le port 1090, port sur lequel tu déclares un VirtualHost qui ne contient qu'un document: ta page d'erreur. Non testé:

    Listen 1090
    <VirtualHost *:1090>
     DocumentRoot /var/www/blacklisted/
     ServerName host.foo.com
     ErrorLog /dev/null
     CustomLog /dev/null NullFormat
     ErrorDocument 403 /index.html
     <Directory "/var/www/blacklisted/">
     Options None
     DirectoryIndex index.html
     AllowOverride None
     Order Deny,Allow
     Deny from All
     </Directory>
    </VirtualHost>