Changes

Jump to navigation Jump to search
Line 86: Line 86:     
Testing this now, of course it would be better to limit these values only for ocs!
 
Testing this now, of course it would be better to limit these values only for ocs!
 +
 +
=> Still doesn't work... Values are expanded but can't upload file >10M... Looks like this value must be global.
 +
 +
Here's the non working template:
 +
#--------------------------------------------------------------
 +
# OCS Inventory Next Generation
 +
#--------------------------------------------------------------
 +
Alias /download /opt/inventory/ocs/download
 +
Alias /ocs      /opt/inventory/ocs/ocsreports
 +
+{
 +
+    if (exists $ocs{'URL'})
 +
+      { $OUT .= "Alias  /$ocs{'URL'} /opt/inventory/ocs/ocsreports"; }
 +
+}
 +
 +
<Directory /opt/inventory/ocs/download>
 +
  Options None
 +
  Options +Indexes
 +
  Options +Includes
 +
  AllowOverride None
 +
  order deny,allow
 +
  deny from all
 +
  allow from { $localAccess }
 +
  php_admin_value open_basedir /opt/inventory/ocs/download:/tmp
 +
+  php_admin_value post_max_size $ocs{'MaxUpload'}
 +
+  php_admin_value upload_max_filesize $ocs{'MaxUpload'}
 +
</Directory>
 +
 +
config setprop ocs MaxUpload 50M
 +
signal-event ocsglpi-update
 +
/etc/init.d/httpd-e-smith condrestart
    
Cool34000
 
Cool34000
498

edits

Navigation menu