Alternc  latest
Alternc logiel libre pour l'hébergement
vhost.conf
Go to the documentation of this file.
1 <VirtualHost *:80>
2  ServerName %%fqdn%%
3  DocumentRoot "%%document_root%%"
4  AssignUserId #%%UID%% #%%GID%%
5  SetEnv LOGIN "%%UID%%-%%LOGIN%%"
6 
7  <Directory "%%document_root%%">
8  php_admin_value open_basedir "%%account_root%%:/usr/share/php/"
9  php_admin_value upload_tmp_dir %%account_root%%/tmp
10  php_admin_value sendmail_path '/usr/lib/alternc/sendmail "%%mail_account%%" '
11  php_admin_flag mail.add_x_header on
12  Options -MultiViews -FollowSymLinks +SymLinksIfOwnerMatch
13  AllowOverride AuthConfig FileInfo Limit Options Indexes
14  Order allow,deny
15  Allow from all
16  Require all granted
17  </Directory>
18 
19 # If you want to log the errors also in /var/log/alternc/sites/
20 # WARNING: this WILL FORK a vlogger for EACH VHOST havingg this !!! the load on the machine may be high
21 # on hosting with many vhosts. as a consequence, this is disabled by default
22 # ErrorLog "|| /usr/sbin/vlogger -e -u alterncpanel -g alterncpanel -s error.log -t \"error-%Y%m%d.log\" /var/log/alternc/sites/%%UID%%-%%LOGIN%%/"
23 
24 </VirtualHost>
25