cat /etc/apache2/sites-available/default
Mettre :
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory>
Controler la syntaxe:
- apache2ctl configtest
Syntax OK
# cat /etc/apache2/sites-available/zimbra
<VirtualHost *> ServerName mail.izen-services.com ServerAdmin admin@izen-services.com ProxyPass / http://localhost:81/ ProxyPassReverse / http://localhost:81/ ProxyPreserveHost on <Proxy *> Order allow,deny Allow from all </Proxy> LogLevel warn CustomLog /var/log/apache2/access.mail.log combined ErrorLog /var/log/apache2/error.mail.log </VirtualHost>
# cat /etc/apache2/sites-available/agenda
<VirtualHost *> ServerName agenda.izen-services.com ServerAdmin admin@izen-services.com DocumentRoot /var/www/phenix/ LogLevel warn CustomLog /var/log/apache2/access.phenix.log combined ErrorLog /var/log/apache2/error.phenix.log </VirtualHost>
# cat /etc/apache2/sites-available/web
<VirtualHost *> ServerName web.izen-services.com ServerAdmin admin@izen-services.com DocumentRoot /var/www/html/ LogLevel warn CustomLog /var/log/apache2/access.web.log combined ErrorLog /var/log/apache2/error.web.log </VirtualHost>
Il faut activer le module proxy_http :
- a2enmod proxy_http
Ensuite on active les sites virtuelles :
- a2ensite zimbra
- a2ensite agenda
- a2ensite web
Et on restart apache :
- /etc/init.d/apache2 force-reload