<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>浮山狼de博客 &#187; fastcgi</title>
	<atom:link href="https://www.fushanlang.com/tag/fastcgi/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fushanlang.com</link>
	<description>next station - 下一站，活在当下，且行且思</description>
	<lastBuildDate>Sat, 29 Nov 2014 15:14:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.5</generator>
	<item>
		<title>fastcgi mod_fcgid: HTTP request length</title>
		<link>https://www.fushanlang.com/fastcgi-mod_fcgid-http-request-length-1895/</link>
		<comments>https://www.fushanlang.com/fastcgi-mod_fcgid-http-request-length-1895/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 07:39:50 +0000</pubDate>
		<dc:creator><![CDATA[fushanlang]]></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[webserver]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fastcgi]]></category>

		<guid isPermaLink="false">http://www.fushanlang.com/blog/?p=1895</guid>
		<description><![CDATA[<p>最近在win2003 apache+php+fastcgi+mysql  开发环境下，使用wordpress上传图片时，遇到稍大的图片总是会遇到“HTTP error”，但是检查过php.ini发现文件大小限制post_max_size设置的没有问题，查看apache的logs 日志记录才显示了问题所在：</p> <p>“mod_fcgid: HTTP request length 135567 (so far) exceeds MaxRequestLen (131072)”</p> <p>原来是fastcgi模式下的设置问题，需要在配置文件.htaccess或者直接在apache的配置文件http.conf 中指明，如下：</p> <p>&#60;IfModule mod_fcgid.c&#62;   AddHandler    fcgid-script .fcgi   FcgidConnectTimeout  20   # to get around upload errors when uploading images increase the MaxRequestLen size to 15MB   MaxRequestLen  15728640 &#60;/IfModule&#62;</p> <p>里面的“MaxRequestLen”就是fastcgi模式下上传文件也就是http接受的最大文件长度。</p> ]]></description>
				<content:encoded><![CDATA[<p>最近在win2003 apache+php+fastcgi+mysql  开发环境下，使用wordpress上传图片时，遇到稍大的图片总是会遇到“<strong>HTTP error”，</strong>但是检查过php.ini发现文件大小限制post_max_size设置的没有问题，查看apache的logs 日志记录才显示了问题所在：</p>
<p>“<strong>mod_fcgid: HTTP request length 135567 (so far) exceeds MaxRequestLen (131072)”</strong></p>
<p>原来是fastcgi模式下的设置问题，需要在配置文件.htaccess或者直接在apache的配置文件http.conf 中指明，如下：</p>
<p>&lt;IfModule mod_fcgid.c&gt;<br />
  AddHandler    fcgid-script .fcgi<br />
  FcgidConnectTimeout  20<br />
  # to get around upload errors when uploading images increase the MaxRequestLen size to 15MB<br />
  MaxRequestLen  15728640<br />
&lt;/IfModule&gt;</p>
<p>里面的“<strong>MaxRequestLen”</strong>就是fastcgi模式下上传文件也就是http接受的最大文件长度。</p>
]]></content:encoded>
			<wfw:commentRss>https://www.fushanlang.com/fastcgi-mod_fcgid-http-request-length-1895/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.404 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2026-03-12 18:38:39 -->
