You don't even need to do that
NameVirtualHost *:80
<VirtualHost *:80>
ServerName pc.simcoeparts.com
DocumentRoot /www/zendsvr/htdocs/PC
</VirtualHost>
<VirtualHost *:80>
ServerName isd.simcoeparts.com
DocumentRoot /www/zendsvr/htdocs/ISD
</VirtualHost>
<VirtualHost *:80>
ServerName hr.simcoeparts.com
DocumentRoot /www/zendsvr/htdocs/HR
</VirtualHost>
Kevin Schroeder
Technology Evangelist
Zend Technologies, Ltd.
www.zend.com
www.twitter.com/kpschrade
www.eschrade.com
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Dayberry, Joshua
Sent: Thursday, February 17, 2011 3:00 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Multiple Sites on Zend Server
I am not all that familiar with IIS, but I believe what you are looking
for in apache is called a VirtualHost. You can segment by IP or
hostname (as long as your aren't using SSL) and each can have its own
document root.
If each hostname had a different IP, this would be the basic pattern.
Check out this documentation for a better explanation.
http://httpd.apache.org/docs/2.2/vhosts/
pc.simcoeparts.com->10.0.0.1
isd.simcoepart.com->10.0.0.2
hr.simcoeparts.com->10.0.0.3
<VirtualHost 10.0.0.1:80>
DocumentRoot /www/zendsvr/htdocs/PC
</VirtualHost>
<VirtualHost 10.0.0.2:80>
DocumentRoot /www/zendsvr/htdocs/ISD
</VirtualHost>
<VirtualHost 10.0.0.3:80>
DocumentRoot /www/zendsvr/htdocs/HR
</VirtualHost>
Joshua Dayberry
Senior Web Developer / Information Services
UnitedHealthOne
Golden Rule Insurance Company
7440 Woodland Drive
Indianapolis, IN 46278
Phone: 317.715.7541
E-mail: jdayberry@xxxxxxxxxxxxxx
"Everything should be made as simple as possible, but not simpler."
Albert Einstein
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Brian Piotrowski
Sent: Thursday, February 17, 2011 3:39 PM
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] Multiple Sites on Zend Server
Hi All,
I have a question with regards to running multiple sites off the server.
My ultimate goal is to move all of our internal websites off our (gasp!)
Microsoft Windows 2003 server and onto the 400.
However, I'm not sure how to handle multiple websites. For example, on
our IIS, we have these sites:
pc.simcoeparts.com
isd.simcoepart.com
hr.simcoeparts.com
etc..
All are controlled by a host header file (PC, ISD, HR), which we then
map back to the web server via a DNS host entry. I know I need to
change the DNS entry to point from the MS Web server to the AS400
address, but I am unsure on how to set up the header file for multiple
sites. Further to that, can I assume that each of the website files
would be contained in their own separate folders (ie:
/www/zendsvr/htdocs/PC, /www/zendsvr/htdocs/ISD, etc.)?
Thanks!
/b;
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Brian Piotrowski
Assistant Mgr. - I.T.
Simcoe Parts Service, Inc.
Ph: 705-435-7814 x343
Fx: 705-435-5029
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
http://www.simcoeparts.com
Please consider the environment. Don't print this e-mail unless you
really need to.
The information contained in this communication is confidential and
intended only for the use of those to whom it is addressed. If you have
received this communication in error, please notify me by telephone
(collect if necessary) and delete or destroy any copies of it. Thank
you!
As an Amazon Associate we earn from qualifying purchases.