Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 17th July 2011, 11:34
Keeper Keeper is offline
Join Date: Aug 2009
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual hosting and single public IP-address

Okay, so the situation is that there is one big website which we can call website.com. This website is a community that hosts two dozen other websites, most of them are very small websites. These websites use hostnames such as site1.website.com, site2.website.com and so on. This is basically a shared hosting environment where hosted site "owners" do not and will not have shell access, only ftp.

Yet this has caused a lot of security concerns, especially lately as one of the hosted sites was hacked not once, but twice. We were using apache2 mpm-itk and chrooted proftpd so damage was limited only tot he hacked website.

Now, while mpm-itk has done its job very well for very little hassle involved, it's slower than mpm-prefork which is already darned slow and resource hog compared to nginx and lighttpd. It has great compatibility with web applications though, I give it that.

But I've been pondering about virtualization. After researching into Xen, KVM, OpenVZ and what have you, it seems that OpenVZ would be the most ideal choice in this environment because it's lightweight solution (we don't have a monster server) and allows easy post-installation management of virtual servers, or rather containers in OpenVZ's case.

The thing is that we have only one public IP-address serving the two dozen websites. I've figured out that it should be possible to host all these websites in their own containers and yet use one public IP-address, but what I haven't figured out is how.

None of the articles and guides I've found seems to cover this little thing very well, or I am just too ignorant to get it. Would you kind folks be able to give me pointers how exactly do you share single public IP-address among multiple websites in their own OpenVZ containers? What kind of config is required?

Thanks in advance.
Reply With Quote
Sponsored Links


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
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 07:37
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 03:59
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 15:49
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 17:27
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39

All times are GMT +2. The time now is 18:28.

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