By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,447 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

How to change options per-directory in Apache?

P: n/a
Sorry if this is a common question. I've searched quite a bit for an answer,
and the obvious solution doesn't work.

I need increase the upload size limit for a PHP script running in a particular
directory, while leaving the global limit the same for everything else.
However, my sysadmin will not set AllowOverride to let me set these values in
..htaccess. They will, however, set it for me for just my directory in Apache's
configuration:

<Directory "/home/f85/coppit/public_html/wiki">
php_value upload_max_filesize 8M
php_value post_max_size 8M
php_value max_input_time 1000
LimitRequestBody 8388608
</Directory>

However, Apache still complains when I try to upload larger files:

... Requested content-length of 2312087 is larger than the configured limit of 2097152, referer: ...

Can you not set these values in a <Directory> block? Or is there some other
option I need to set? Also, is there any other option I should set, like
memory_limit?

Thanks,
David

__________________________________________________ ___________________
David Coppit da***@coppit.org
The College of William and Mary http://coppit.org/

"Use 'logout' to leave this shell" -- You know what I want. Just do it!
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.