Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st January 2013, 01:05
ispcomm ispcomm is offline
Senior Member
 
Join Date: Aug 2010
Posts: 166
Thanks: 19
Thanked 11 Times in 11 Posts
Default Multi web-server and multi mailserver setup

Hello,

I have a question I wonder about ispconfig: Is it possible to install a cluster of two or more webservers and two or more mailservers ?

I want to be able to have an nginx and apache servers running on different physical servers and direct certain sites to the nginx web server while others to the apache webserver.

For similar reasons I'd like to be able to host mailboxes on two or more servers for space and load balancing purposes.

I cannot see similar setups in the ispconfig "perfect setups".

Thank you
ispcomm
Reply With Quote
Sponsored Links
  #2  
Old 21st January 2013, 02:14
kendel kendel is offline
HowtoForge Supporter
 
Join Date: Aug 2010
Posts: 132
Thanks: 4
Thanked 1 Time in 1 Post
Default

Yes it is possible you can have ISPConfig pick the webserver... but there are 2 problems you will be faced with. One is the FTP, the the other is having the DNS records point to the right web server.

Now the second can be solved easily by using a ReverseProxy (in which if you router is forwarding port 80 to the first webserver, then you add information of domains located on the second webserver using the ReverseProxy feature).

So the idea is you use the first webserver as a base and domains located on the second webserver are being proxied through the first.

As for the ftp, I would be unable to tell you how to split that kind of traffic, I am sure there is a way (maybe even use the same method by defining records in the DNS then defining proxy of those records to the right server)
Reply With Quote
  #3  
Old 21st January 2013, 10:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Quote:
I have a question I wonder about ispconfig: Is it possible to install a cluster of two or more webservers and two or more mailservers ?
Yes, thats possible.

Quote:
I want to be able to have an nginx and apache servers running on different physical servers and direct certain sites to the nginx web server while others to the apache webserver.
Thats possible as well.

Quote:
For similar reasons I'd like to be able to host mailboxes on two or more servers for space and load balancing purposes.
Thats also possible.


Quote:
I cannot see similar setups in the ispconfig "perfect setups".
The guides are available on ispconfig.org: See here:

http://www.howtoforge.com/multiserve...th-ispconfig-3

http://www.howtoforge.com/installing...th-ispconfig-3

Just combine the two guides.

Regarding kendels post: A proxy is only required if your servers dont have external IP addresses. If all servers are reachable over the internet, then you have to point the dns records for the apache sites to the apache server and the nginx sites to the nginx server without needing any kind of proxy.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 21st January 2013, 17:01
ispcomm ispcomm is offline
Senior Member
 
Join Date: Aug 2010
Posts: 166
Thanks: 19
Thanked 11 Times in 11 Posts
Default

So, I must install a first server running all services and then configure one or more slave servers for the specific services (web/mail) and connect them to the master server.

The first server will be running the ispconfig panel while the others will only have required services only.

is this correct?
Reply With Quote
  #5  
Old 21st January 2013, 17:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

If the first server shall provide only the controlpanel and no services, then you you dont have to install all services on it. For a controlpanel only server you need just mysql, php and apache and fail2ban.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 21st January 2013, 17:52
ispcomm ispcomm is offline
Senior Member
 
Join Date: Aug 2010
Posts: 166
Thanks: 19
Thanked 11 Times in 11 Posts
Default

Quote:
Originally Posted by till View Post
If the first server shall provide only the controlpanel and no services, then you you dont have to install all services on it. For a controlpanel only server you need just mysql, php and apache and fail2ban.
Ok, I think I'm getting the basic idea. You install the services and then use ispconfig to configure them. There are 2 options for a server: Being stand-alone and being a slave to some other server.

When a server is a slave it mirrors data from it's master (as in DNS primary/secondary server). A slave webserver can be used to HA using haproxy or some other cache (varnish etc).

When a server is a master, it can be used to install a site for a domain, host a mailserver (postfix+dovecot) and so on.

I have another question regarding DNS service. Looking at a minimal setup of 2 servers (bare metal with no VM installed) I envision the need to run all services on both servers, where one of them will be running also the ispconfig web interface, while DNS will be shared.

I agree that the above setup is less than optimal and that a better setup would be using openvz containers to isolate different services talking to each other on a private network while exposing only the bare services outside on a public network.
Reply With Quote
  #7  
Old 21st January 2013, 19:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Quote:
When a server is a slave it mirrors data from it's master (as in DNS primary/secondary server). A slave webserver can be used to HA using haproxy or some other cache (varnish etc).
Partially correct. But a slave is not nescessarily a mirror.

The difference between the master and a slave is that the slave has no interface, thats the only difference. So a slave can be a mirror or it can be a server on its own, just managed trough the interface of the master.

Quote:
When a server is a master, it can be used to install a site for a domain, host a mailserver (postfix+dovecot) and so on.
No. A master is the server that runs the ispconfig interface. If the server runs all or no other servivce at all does not matter for the server to be a master.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 22nd January 2013, 23:58
ispcomm ispcomm is offline
Senior Member
 
Join Date: Aug 2010
Posts: 166
Thanks: 19
Thanked 11 Times in 11 Posts
Default

I must go forward and buy the Ispconfig book.

How does secondary dns work? Do you make a mirror dns server for the "main" server or do you add a zone to one server and then add a secondary zone on the second server, pointing to the first one?

My former confusion was due to the fact that a server is either a slave or a mirror, hence cannot have mixed cases (slave for all except mirror for dns)
Reply With Quote
  #9  
Old 23rd January 2013, 08:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Quote:
How does secondary dns work? Do you make a mirror dns server for the "main" server or do you add a zone to one server and then add a secondary zone on the second server, pointing to the first one?
This are two different method to achieve the same goal. So do either the forst or second method but not both at the same time.

The ispconfig mirror method is easier as you dont have to take care to create a secondary record and the mirroring is done automatically by ispconfig. The other method with creating a secondary record is more work when you create a new zone but it will work also for primary dns servers that dont run ispconfig as it is a generic BIND zone transfer.

Quote:
My former confusion was due to the fact that a server is either a slave or a mirror, hence cannot have mixed cases (slave for all except mirror for dns)
My recemmendation is to use virtualisation, e.g. have two vm's for dns only and attach these vm's as mirrored slaved to your master server. This has also benefits in security.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 29th January 2013, 00:44
ispcomm ispcomm is offline
Senior Member
 
Join Date: Aug 2010
Posts: 166
Thanks: 19
Thanked 11 Times in 11 Posts
 
Default

Quote:
Originally Posted by till View Post
My recemmendation is to use virtualisation, e.g. have two vm's for dns only and attach these vm's as mirrored slaved to your master server. This has also benefits in security.
Till, I agree on the virtualisation method. Eats a couple of IP but is much cleaner. I am running MyDNS on my front servers and this has been a solid setup over the years (I guess it saved a lot of trouble during the bind problematic years).

I do plan to use mydns on both auth servers again. Would you discourage such a setup?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 - MultiServer Setup - With Dedicated Control Panel - How? SuperJC Installation/Configuration 4 16th October 2012 20:03
Multi Server usage/setup norbie Installation/Configuration 7 12th September 2012 18:19
Multi Server setup and phpmyadmin djurhuus General 8 11th July 2012 22:56
Convert to multi server setup atjensen11 Installation/Configuration 1 14th June 2010 10:22
Setting up a multi site web server and DNS wxman Installation/Configuration 7 31st October 2007 17:33


All times are GMT +2. The time now is 23:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.