httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapas Mishra <mightydre...@gmail.com>
Subject Re: [users@httpd] Two Sites on Apache
Date Thu, 24 Jun 2010 05:53:39 GMT
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 <carloswill@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


Mime
View raw message