How to change options per-directory in Apache?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Coppit

    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_file size 8M
    php_value post_max_size 8M
    php_value max_input_time 1000
    LimitRequestBod y 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.or g
    The College of William and Mary http://coppit.org/

    "Use 'logout' to leave this shell" -- You know what I want. Just do it!
Working...