Alternc  latest
Alternc logiel libre pour l'hébergement
vhost-https.conf
Go to the documentation of this file.
1 # %%fqdn%%
2 <Virtualhost *:80>
3  ServerName %%fqdn%%
4  AssignUserId #%%UID%% #%%GID%%
5  SetEnv LOGIN "%%UID%%-%%LOGIN%%"
6  KeepAlive Off
7  RewriteEngine On
8  RewriteCond %{REQUEST_FILENAME} !/cgi-bin/
9  RewriteCond %{REQUEST_FILENAME} !/.well-known/acme-challenge/
10  RewriteRule ^/(.*)$ https://%%fqdn%%/$1 [R=301,L]
11 </Virtualhost>
12 <VirtualHost *:443>
13  ServerName %%fqdn%%
14  DocumentRoot "%%document_root%%"
15  AssignUserId #%%UID%% #%%GID%%
16  SetEnv LOGIN "%%UID%%-%%LOGIN%%"
17  <Directory "%%document_root%%">
18  php_admin_value open_basedir "%%account_root%%:/usr/share/php/"
19  php_admin_value upload_tmp_dir %%account_root%%/tmp
20  php_admin_value sys_temp_dir %%account_root%%/tmp
21  php_admin_value sendmail_path '/usr/lib/alternc/sendmail "%%mail_account%%" '
22  php_admin_flag mail.add_x_header on
23  Options +MultiViews -FollowSymLinks +SymLinksIfOwnerMatch
24  AllowOverride AuthConfig FileInfo Limit Options Indexes Options=All,MultiViews
25  </Directory>
26  SSLEngine On
27  SSLCertificateFile %%CRT%%
28  SSLCertificateKeyFile %%KEY%%
29  %%CHAINLINE%%
30 </VirtualHost>