0

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]
1
  • 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, 2011 at 16:54

1 Answer 1

1

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

1
  • Sounds good, I will try it!
    – powtac
    Mar 10, 2011 at 9:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .