Connecting Tech Pros Worldwide Help | Site Map

How to change options per-directory in Apache?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 05:43 AM
David Coppit
Guest
 
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!

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.