Vhost.conf
1 |
%if %%activer_apache == 'oui' |
---|---|
2 |
%if %%container_ip_web != '127.0.0.1' |
3 |
<VirtualHost %%container_ip_web:80> |
4 |
%else |
5 |
<VirtualHost %%adresse_ip_eth0:80> |
6 |
%end if |
7 |
TransferLog /var/log/apache2/access.log |
8 |
ErrorLog /var/log/apache2/error.log |
9 |
RewriteEngine On |
10 |
%if %%web_redirection != '/' |
11 |
RewriteRule ^/$ %%web_redirection [R=permanent] |
12 |
%end if |
13 |
|
14 |
</VirtualHost> |
15 |
%end if |