Questions tagged «apache-1.3»

5
如何解决.htaccess文件中的“此处未允许ExpiresActive”错误消息?
我正在尝试将Expires标头添加到我正在工作的网站的HTTP响应中。我控制Apache 1.3服务器的唯一方法是编辑.htaccess文件。我尝试添加如下代码来启用Expires标头: <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 1 hour" </IfModule> 但是,这会导致内部服务器错误,并在日志中显示以下错误消息: ExpiresActive在这里不允许 由于未启用mod_headers,因此我可能无法使用其他缓存控制方法。我仍然可以通过.htaccess文件中的某些命令使用mod_expires启用Expires标头吗? 更新 我记得在某个地方读到,httpd.conf中的Override设置可能与此有关。有什么方法可以验证这确实是问题所在吗?如果是,是否有一些解决方法可以控制我的网站的缓存标题?

2
作为代理服务器运行时的Apache服务器状态
我们正在将apache作为代理服务器运行,并且在apache之后有tomcat。我们正在使用server_status模块,但是当我们尝试访问server_status时,https://host.com/server-status它重定向到tomcat并显示404错误。我对此很陌生,尝试过apache文档,但无法找出解决方案。Fyi。我们启用了ssl 当前的ssl.conf设置: ProxyRequests Off ProxyPreserveHost On <Proxy http://localhost:8081/*> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8081/ ProxyPassReverse / http://localhost:8081/ ProxyPassReverse / http://myhost:8081/ <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 10.90 </Location> 建议更改后 ProxyRequests Off ProxyPreserveHost On <Proxy http://localhost:8081/*> Order deny,allow Allow from all </Proxy> ProxyPass …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.