自定义Apache和IIS Web服务器响应

问题描述 投票:0回答:0

有没有办法在Apache Web服务器(httpd)和/或IIS上设置自定义响应? 要求是在不终止CRLF的HTTP响应上测试我们服务的行为,即:

我想要

HTTP/1.1 301 Moved Permanently\r\n
Location: https://abc.com/\r\n

并不是

HTTP/1.1 301 Moved Permanently\r\n
Location: https://abc.com/\r\n
\r\n

现在,我正在使用一种以python编写自定义Web服务器的解决方法。

谢谢。

apache http iis httpd.conf
© www.soinside.com 2019 - 2024. All rights reserved.