Alternc  latest
Alternc logiel libre pour l'hébergement
vhost-both.conf
Go to the documentation of this file.
1 # %%fqdn%%
2 <VirtualHost *:80>
3  ServerName %%fqdn%%
4  DocumentRoot "%%document_root%%"
5  AssignUserId #%%UID%% #%%GID%%
6  SetEnv LOGIN "%%UID%%-%%LOGIN%%"
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 sys_temp_dir %%account_root%%/tmp
11  php_admin_value sendmail_path '/usr/lib/alternc/sendmail "%%mail_account%%" '
12  php_admin_flag mail.add_x_header on
13  Options +MultiViews -FollowSymLinks +SymLinksIfOwnerMatch
14  AllowOverride AuthConfig FileInfo Limit Options Indexes Options=All,MultiViews
15  </Directory>
16 </VirtualHost>
17 <VirtualHost *:443>
18  ServerName %%fqdn%%
19  DocumentRoot "%%document_root%%"
20  AssignUserId #%%UID%% #%%GID%%
21  SetEnv LOGIN "%%UID%%-%%LOGIN%%"
22  <Directory "%%document_root%%">
23  php_admin_value open_basedir "%%account_root%%:/usr/share/php/"
24  php_admin_value upload_tmp_dir %%account_root%%/tmp
25  php_admin_value sys_temp_dir %%account_root%%/tmp
26  php_admin_value sendmail_path '/usr/lib/alternc/sendmail "%%mail_account%%" '
27  php_admin_flag mail.add_x_header on
28  Options +MultiViews -FollowSymLinks +SymLinksIfOwnerMatch
29  AllowOverride AuthConfig FileInfo Limit Options Indexes Options=All,MultiViews
30  </Directory>
31  SSLEngine On
32  SSLCertificateFile %%CRT%%
33  SSLCertificateKeyFile %%KEY%%
34  %%CHAINLINE%%
35 </VirtualHost>