How to change options per-directory in Apache?

This is a discussion on How to change options per-directory in Apache? within the PHP Language forums, part of the PHP Programming Forums category; Sorry if this is a common question. I've searched quite a bit for an answer, and the obvious solution ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-09-2004
David Coppit
 
Posts: n/a
Default How to change options per-directory in Apache?

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 david@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!
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0