简体   繁体   English

Apache Tomcat 8的内容处置设置

[英]Content-Disposition setting for Apache Tomcat 8

In web.xml file of apache tomcat located at "C:\\Program Files\\Apache Software Foundation\\Tomcat 8.0\\conf\\web.xml" , we can set the Content-Type of http header. 在位于"C:\\Program Files\\Apache Software Foundation\\Tomcat 8.0\\conf\\web.xml"的apache tomcat的web.xml文件中,我们可以设置http标头的Content-Type

I need to also set Content-Disposition , what and where the changes are required for the same? 我还需要设置Content-Disposition ,相同的地方需要进行哪些更改?

Write a Filter. 写一个过滤器。

An UrlRewriteFilter may help you. UrlRewriteFilter可能会帮助您。 https://wiki.apache.org/tomcat/AddOns https://wiki.apache.org/tomcat/AddOns

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在“Apache HTTP Server”中配置“Content-Disposition header” - Configuration "Content-Disposition header" in "Apache HTTP Server" 使用Apache mod_header的动态文件名和使用Content-Disposition的文件下载 - Dynamic file names with Apache mod_header and file downloads using Content-Disposition 在 Apache .htaccess 中,设置 Header set Content-disposition,如何从 QUERY_STRING 值传递文件名 - In Apache .htaccess, set Header set Content-disposition, how to pass the filename from QUERY_STRING value 如何使用Apache httpclient获得自定义的Content-Disposition行? - How can I get a custom Content-Disposition line using Apache httpclient? web.config设置等同于htaccess标头设置内容处置 - web.config setting equivalent to htaccess Header set Content-disposition 将Content-Disposition标头设置为仅在特定目录中的文件上附件? - Set Content-Disposition header to attachment only on files in a certain directory? mod_rewrite 帮助根据 URI 更改内容处置 - mod_rewrite help to change Content-disposition based on URI Header 添加 Content-Disposition“附件”导致内部服务器错误 - Header add Content-Disposition "attachment" causes Internal Server error 在Apache和Tomcat上压缩内容 - Compression of content on Apache and Tomcat 如何在apache TOMCAT中安装/设置php - How to install / setting php in apache TOMCAT
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM