我有一个服务的子域,我要杀了。
我想用410来标记它。
有没有办法做到这一点与lighttpd没有解决mod_magnet和lua脚本?
将文档根设置为空的目录,并使用dynamicerror handling程序发送410响应。
例:
$HTTP["host"] == "gone.example.com" { server.document-root = "/var/www/gone" server.error-handler-404 = "/gone.php" }
/var/www/gone/gone.php
包含如下内容:
<?php header("HTTP/1.1 410 Gone"); header("Status: 410 Gone");