I want to set a specific upload_max_filesize setting for a specific URL on my webserver. The URL path is not a real path since it is a apache rewritten seo friendly path.

This does seems not to work:

<Directory /var/www/test_upload>
   php_value upload_max_filesize 750M
</Directory>

The rewrite Rule in the .htacces file in the document root (/var/www/) looks like:

RewriteRule .* index.php [L]
link|improve this question

38% accept rate
Unless you are offering the upload option multiple times for multiple locations you can set globally in php.ini and not worry about setting it for a directory. – Sameer Mar 3 '11 at 16:54
feedback

1 Answer

Use a <Location> rule instead of <Directory>. You could set the ini param in your PHP file as well, though.

link|improve this answer
Sounds good, I will try it! – powtac Mar 10 '11 at 9:29
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.