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