Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One apache, multiple web servers

Status
Not open for further replies.

atumra

Technical User
Aug 31, 2010
3
IT
Hello guys,
i need some help.
I need to install 3 CMS using one server apache)
Magento, Wordpress and PHPBB.
Their names will be:
(magento)
blog.domain.com (Wordpress)
forum.domain.com (phpBB)

I would like to use 1 public ip address to accomplish this target.
Magento will also have a certificate for SSL connections (for suppose)

Questions:
- is it possible with 1 public ip address?
- How can i forward requests coming from www, blog and forum to internal web server?
- How sould i setup the DNS?

Best regards

LT
 
Yes, this will work with one IP address. One option is to make each of these sub folders off your route domain. In this manner each host will be addressable like this: An alternative approach is to use Apache's supports for a concept called "virtual hosts", specifically named based virtual hosts. This way you can have multiple domains and assign them to the different functions.
The standard is to allow you to have ONE secure (SSL) site (vhost) per IP address, and more non secured sites.

All web activity should be directed towards your server. This defaults to port 80. This is typically done with port forwarding on your router.

The DNS for each domain should point to your server. The desired is typically designated as a CNAME for your domain.
 
Your quite welcome. I tried to include keyword terms, like virtual host, port forwarding, and CNAME, that will provide you with some good documentation. I was a little pressed for time when I wrote it and was a bit terse.

If you would like any clarification on any of these things, just ask.

Before I forget, there is a trend towards what is called SNI - server name indication. The standard SSL handshaking does not identify the server name and all of it is done via IP address. This is why you technically can't have more than one secure site per IP address. SNI reworks the protocol to allow identification of the server name. Also, the SSL will 'work' for multiple hosts, but you will get browser warnings. If you are using it to secure a webmail or a myadmin for yourself, this isn't a big deal.

 
Ok, thank you for clarification. It was a pleasure discuss with you.

Best regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top