Quote:
Originally Posted by dzed Everything is working
Thanks a lot Phoenix, to point me in the right/easyest direction.
Thanks also goes to Amitbapat.
If anyone need it, I past the way to do what i have done here : I am using a Debian Sarge.
First of all, change zimbraMailPort and restart zimbra so our apache can listen on 80, do it like this : zmprov ms zimbra.mydom.com zimbraMailPort 81
/etc/init.d/zimbra restart
Then, install your prefered apache version (1.3 / 2) and add the proxy module :
for apache 1.3 : echo "LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so" >> /etc/apache/modules.conf
apachectl restart
for apache 2 : ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/proxy.load
ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/proxy.conf
/etc/init.d/apache2 restart
Now we can add our virtualhosts.
for apache 1.3, go into /etc/apache/conf.d/ and create/edit vhosts.conf :
[for apache 2 go into /etc/apache2/conf.d/] NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin dz@mydom.com
DocumentRoot /var/www/myweb
ServerName myweb.mydom.com
ErrorLog /var/log/apache/myweb-error.log
CustomLog /var/log/apache/myweb-access.log common
</VirtualHost>
<VirtualHost *:80>
ServerName zimbra.mydom.com
ServerAdmin dz@mydom.com
ProxyPass / http://zimbra.mydom.com:81/
ProxyPassReverse / http://zimbra.mydom.com:81/
ErrorLog /var/log/apache/zimbra-error.log
CustomLog /var/log/apache/zimbra-access.log common
</VirtualHost>
Almost done.
Restart everythings.
Test your new hosts.
Enjoy ZIMBRA  |
Hello,
When I try to restart Apache (/etc/init.d/apache2 restart) I get the following error message:
Forcing reload of web server (apache2)...httpd (pid 26315) not running
(98) Address already in use: make_sock: could not bind to address [::]:81
(98) Address already in use: make_sock: could not bind to address 0.0.0.0:81
no listening sockets available, shuting down
Unable to open logs
failed!
Anyone knows what is missing?
Thanks