[fix] allow 50MB upload in the panel (file manager, mostly)
This commit is contained in:
parent
e2237a2ed9
commit
3137bc5aa0
|
@ -13,8 +13,7 @@ AssignUserId www-data www-data
|
||||||
<Directory />
|
<Directory />
|
||||||
Options +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
Order allow,deny
|
Require all granted
|
||||||
Deny from all
|
|
||||||
</Directory>
|
</Directory>
|
||||||
#### End security parameters
|
#### End security parameters
|
||||||
|
|
||||||
|
@ -25,12 +24,13 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
<Directory /usr/share/alternc/panel/admin/>
|
<Directory /usr/share/alternc/panel/admin/>
|
||||||
Require all granted
|
Require all granted
|
||||||
|
|
||||||
php_admin_flag safe_mode_gid off
|
php_admin_flag safe_mode_gid off
|
||||||
php_admin_flag safe_mode off
|
php_admin_flag safe_mode off
|
||||||
|
php_value upload_max_filesize 50M
|
||||||
|
php_value post_max_size 50M
|
||||||
AddDefaultCharset UTF-8
|
AddDefaultCharset UTF-8
|
||||||
# open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman...
|
# open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman...
|
||||||
php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/run/alternc:/var/run/alternc/:/usr/share/alternc/panel/:%%ALTERNC_HTML%%/:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen:%%ALTERNC_LOGS%%:/etc/awstats/:/var/log/alternc/:/var/lib/alternc/panel/
|
php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/run/alternc:/var/run/alternc/:/usr/share/alternc/panel/:%%ALTERNC_HTML%%/:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen:%%ALTERNC_LOGS%%:/etc/awstats/:/var/log/alternc/:/var/lib/alternc/panel/
|
||||||
|
@ -48,7 +48,6 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
||||||
php_admin_flag enable_dl off
|
php_admin_flag enable_dl off
|
||||||
|
|
||||||
php_admin_value disable_functions chmod,chown,chgrp,link,symlink
|
php_admin_value disable_functions chmod,chown,chgrp,link,symlink
|
||||||
php_admin_value safe_mode_exec_dir /usr/lib/alternc/safe_mode_exec_dir
|
|
||||||
php_admin_value disable_functions chgrp,link,symlink
|
php_admin_value disable_functions chgrp,link,symlink
|
||||||
php_admin_value sendmail_path /usr/lib/alternc/sendmail
|
php_admin_value sendmail_path /usr/lib/alternc/sendmail
|
||||||
|
|
||||||
|
@ -68,9 +67,6 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
||||||
Options +Indexes +Includes +FollowSymLinks +MultiViews
|
Options +Indexes +Includes +FollowSymLinks +MultiViews
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
<Directory /var/lib/alternc/ssl-cert-alias/>
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
Include /etc/alternc/bureau.conf
|
Include /etc/alternc/bureau.conf
|
||||||
|
@ -78,3 +74,11 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
||||||
|
|
||||||
# Now we include all the generated configuration
|
# Now we include all the generated configuration
|
||||||
Include /var/lib/alternc/apache-vhost/vhosts_all.conf
|
Include /var/lib/alternc/apache-vhost/vhosts_all.conf
|
||||||
|
|
||||||
|
# Logs:
|
||||||
|
|
||||||
|
LogFormat "%{LOGIN}e %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc
|
||||||
|
CustomLog "|| /usr/sbin/vlogger -u alterncpanel -g alterncpanel -s access.log -t \"access-%Y%m%d.log\" %%ALTERNC_LOGS%%" alternc
|
||||||
|
|
||||||
|
#Uncomment the following line to active Buffered Logs (Default: Off)
|
||||||
|
#BufferedLogs On
|
||||||
|
|
Loading…
Reference in New Issue