Regarding 1 Webserver Multiple Web App project

Regarding 1 Webserver Multiple Web App project

am 14.11.2009 15:50:39 von Henry Loke

Which method is good to support 1 WebServer with Multiple Web App project?

Method 1: domain Changes

When user type in
1. http://webapp1.example.com will go to webapp1 project
2. http://webapp2.example.com will go to webapp2 project
etc etc

Method 2 : using same domain but append different file structure

When user type in
1. http://www.example.com/webapp1/ will go to webapp1 project
2. http://www.example.com/webapp2/ will go to webapp2 project

May I know what the keyword/term used in Apache to decribe method 1 and
Method 2?
[ I need the term in order I can googling for the correct information ]

If do have the resource how to do method 1 or method 2, please kindly
redirect me to there....

Thanks a lot.
--
View this message in context: http://old.nabble.com/Regarding-1-Webserver-Multiple-Web-App -project-tp26350655p26350655.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: Regarding 1 Webserver Multiple Web App project

am 14.11.2009 18:48:06 von aw

Henry Loke wrote:
> Which method is good to support 1 WebServer with Multiple Web App project?
>
> Method 1: domain Changes
>
> When user type in
> 1. http://webapp1.example.com will go to webapp1 project
> 2. http://webapp2.example.com will go to webapp2 project
> etc etc
>
That would be in the area of Virtual Hosts
See : http://httpd.apache.org/docs/2.2/vhosts/

> Method 2 : using same domain but append different file structure
>
> When user type in
> 1. http://www.example.com/webapp1/ will go to webapp1 project
> 2. http://www.example.com/webapp2/ will go to webapp2 project
>
That would be more like.. err.. a basic configuration.
See here : http://httpd.apache.org/docs/2.2/urlmapping.html

Method 1 is a bit more flexible, particularly if you want to have
different kinds of behaviours, authentication, pre-defined settings
etc.. for each "webapp".
Each VirtualHost pretty much behaves like a separate server.

Method 2 is probably more appropriate if your webapps have to share
things between them (e.g. you want one authentication to be valid for
all of them).

The above are very general and rough ideas, and there is no clear-cut
distinction, as your question seems to imply.
Let's say that if what you above call "webapps", were different
applications for different customers (or group of people), I would
incline to method 1.
If they are just different facets of an application for one customer
(group of people), I would incline to method 2.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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