You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Carlos Mennens <ca...@gmail.com> on 2010/06/24 01:01:45 UTC

[users@httpd] Two Sites on Apache

I have a single CentOS server with two separate NIC's. I was asked to
install an internal Wiki on Apache but have that dedicated to one NIC
so it's internal only. Then have just a site running on Apache on the
2nd NIC which is externally accessible. I have never done anything
like this and would like to know how difficult this would be on a
single stand alone server that I have above?

Please let me know what you think can be done here.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Two Sites on Apache

Posted by Nick Kew <ni...@webthing.com>.
On 24 Jun 2010, at 00:01, Carlos Mennens wrote:

> I have a single CentOS server with two separate NIC's. I was asked to
> install an internal Wiki on Apache but have that dedicated to one NIC
> so it's internal only. Then have just a site running on Apache on the
> 2nd NIC which is externally accessible. I have never done anything
> like this and would like to know how difficult this would be on a
> single stand alone server that I have above?

Apache doesn't care about the NICs.  Just use a Listen directive
for each IP address, and then define your virtualhosts.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Two Sites on Apache

Posted by Tapas Mishra <mi...@gmail.com>.
Its very easy.
1) Which OS you are using.
2) I am giving this for Ubuntu
 in /etc/apache2/sites-available directory
you need to create 2 files lets say you have two sites

www.example1.com
www.example2.com

So you need to have two files
in /etc/apache2/sites-available
the name of files are important because apache by default will serve a
site which alphanumerically is first.

Inside your files you need to have a ServerName entry which sould point to
from which server you want to give response i.e. example1.com or example2.com
You need to study some thing called name based virtual hosting.


On Thu, Jun 24, 2010 at 4:31 AM, Carlos Mennens <ca...@gmail.com> wrote:
> I have a single CentOS server with two separate NIC's. I was asked to
> install an internal Wiki on Apache but have that dedicated to one NIC
> so it's internal only. Then have just a site running on Apache on the
> 2nd NIC which is externally accessible. I have never done anything
> like this and would like to know how difficult this would be on a
> single stand alone server that I have above?
>
> Please let me know what you think can be done here.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
Tapas
http://mightydreams.blogspot.com
http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org