diff --git a/etc/alternc/templates/alternc/apache2.conf b/etc/alternc/templates/alternc/apache2.conf
index 86c351d6..20731ee1 100644
--- a/etc/alternc/templates/alternc/apache2.conf
+++ b/etc/alternc/templates/alternc/apache2.conf
@@ -13,8 +13,7 @@ AssignUserId www-data www-data
Options +FollowSymLinks
AllowOverride None
- Order allow,deny
- Deny from all
+ Require all granted
#### End security parameters
@@ -25,12 +24,13 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Require all granted
-
Require all granted
php_admin_flag safe_mode_gid off
php_admin_flag safe_mode off
+ php_value upload_max_filesize 50M
+ php_value post_max_size 50M
AddDefaultCharset UTF-8
# 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/
@@ -48,7 +48,6 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
php_admin_flag enable_dl off
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 sendmail_path /usr/lib/alternc/sendmail
@@ -68,9 +67,6 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Options +Indexes +Includes +FollowSymLinks +MultiViews
Require all granted
-
- Require all granted
-
Include /etc/alternc/bureau.conf
@@ -78,3 +74,11 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
# Now we include all the generated configuration
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