473,226 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

Apache/Gallery Question: Setting Up 10+ Servers With One Domain Name

Hello!

Suppose I have ten servers at ten ips:

x.x.x.1
x.x.x.2
x.x.x.3
x.x.x.4 and so on

Each server hosts 100+ photo galleries, all under a single domain name,
but in different directories:

gallery.com/gallery100
gallery.com/gallery2000
gallery.com/gallery300
gallery.com/gallery4442

How is it possible to configue apache to point to ten different
servers, depending on which gallery is accessed?

I don't want the domain to be merely forwarded, but all hits in any
gallery, such as gallery.com/gallery4442, must leave
gallery.com/gallery4442 in the access window.

Is this possible? What's the best way to do this? Thanks so much!

(If this isn't clear, I'll elaborate). Thanks!!

Jul 17 '05 #1
10 2252
You could use a header("location: ") redirect, or you could set up sub
domains and point each to their respective server's IP: ex. g1.gallery.com,
g2.gallery.com, etc - like php does with usx.php.net. Contact your net admin
to find out how to do that - there may be a web interface that allows you to
do domain forwarding/pointing.

What, I wonder, are you doing with 1000 photo galleries? ;-)

"Captain Ranger McCoy" <mo***********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello!

Suppose I have ten servers at ten ips:

x.x.x.1
x.x.x.2
x.x.x.3
x.x.x.4 and so on

Each server hosts 100+ photo galleries, all under a single domain name,
but in different directories:

gallery.com/gallery100
gallery.com/gallery2000
gallery.com/gallery300
gallery.com/gallery4442

How is it possible to configue apache to point to ten different
servers, depending on which gallery is accessed?

I don't want the domain to be merely forwarded, but all hits in any
gallery, such as gallery.com/gallery4442, must leave
gallery.com/gallery4442 in the access window.

Is this possible? What's the best way to do this? Thanks so much!

(If this isn't clear, I'll elaborate). Thanks!!

Jul 17 '05 #2
Hello!

You know how yahoo has thousands of servers, but you only ever see
"yahoo.com/..." in the browser window?

I'd like to do the same thing, so as to avoid sub domains such as
g1.gallery.com,
g2.gallery.com, etc

so that everything is just at gallery.com.

How do the big guys do it?

Thanks!

Jul 17 '05 #3
Use a SAN (Storage Area Network). There are ISPs that will do this for you
under their managed hosting plans, or you could purchase the hardware
yourself. If you have spacial requirements that necessitate a SAN system you
will probably have high bandwidth requirements and be better served by
managed hosting than an in-house solution.

ECRIA
http://www.ecria.com
Jul 17 '05 #4
jo************@yahoo.com wrote:
You know how yahoo has thousands of servers, but you only ever see
"yahoo.com/..." in the browser window?

I'd like to do the same thing, so as to avoid sub domains such as
g1.gallery.com,
g2.gallery.com, etc

so that everything is just at gallery.com.


I heard the jargon "Round-robin DNS", but didn't dig on that.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com

Jul 17 '05 #5
>> You know how yahoo has thousands of servers, but you only ever see
"yahoo.com/..." in the browser window?

I'd like to do the same thing, so as to avoid sub domains such as
g1.gallery.com,
g2.gallery.com, etc

so that everything is just at gallery.com.


I heard the jargon "Round-robin DNS", but didn't dig on that.


Round-robin DNS requires *EVERY* server in the round-robin to have
access to *EVERY* piece of content it needs to serve. One way of
doing this is a big storage farm (which can contain as many CPUs
as needed) with all the content on it, and some web servers that
remote-mount all the volumes.

If you need more content, grow the storage farm. If you need more
horsepower, add more web servers. Eventually you'll need to upgrade
the bandwidth between the servers and the storage farm. As far
as Apache is concerned, each system has a whole lot of local content.

Gordon L. Burditt
Jul 17 '05 #6
Captain Ranger McCoy wrote:
Hello!

Suppose I have ten servers at ten ips:

x.x.x.1
x.x.x.2
x.x.x.3
x.x.x.4 and so on

Each server hosts 100+ photo galleries, all under a single domain name,
but in different directories:

gallery.com/gallery100
gallery.com/gallery2000
gallery.com/gallery300
gallery.com/gallery4442

How is it possible to configue apache to point to ten different
servers, depending on which gallery is accessed?

I don't want the domain to be merely forwarded, but all hits in any
gallery, such as gallery.com/gallery4442, must leave
gallery.com/gallery4442 in the access window.

Is this possible? What's the best way to do this? Thanks so much!

(If this isn't clear, I'll elaborate). Thanks!!


You're going to have a problem here. If all servers have access to the
same content, they can all have the same domain name. However, if
they're going to server up different content, there needs to be a way to
differentiate them.

For instance - let's say you have a web page with six images. If you
had all your servers named gallery.com, the web page would be pulled
form one of the servers. But now the browser would request the first
image on the page (i.e. "picture1.gif" or "gallery100/picture1.gif").
But there is no guarantee that the request would end up at the same
server which sent the page itself (since all servers have the same host
name). The only solution to this is to have all servers have access to
the same information.

You could offload some of the work to other machines - especially if you
need to server dynamic pages and/or use a databases. In this case
different machines can contain different dynamic pages and/or databases.
This way you might be able to get by with a few servers having access
to all content. Alternatively, you could implement one server acting as
a proxy and use it to forward requests to other servers. It's more work
and not as scalable, but if you're doing a lot of static pages it might
work better.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 17 '05 #7
jo************@yahoo.com wrote:
Hello!

You know how yahoo has thousands of servers, but you only ever see
"yahoo.com/..." in the browser window?

I'd like to do the same thing, so as to avoid sub domains such as
g1.gallery.com,
g2.gallery.com, etc

so that everything is just at gallery.com.

How do the big guys do it?


Probably the same way our company does it: big, expensive load balancers
(>USD$15,000 each....and we've got about 10 of them).

To achieve what you want you're going to need a "director" of some sort that
can interpret a HTTP request then direct that request to the correct
server/IP. Your external DNS will point "gallery.com" to the director
which will then distribute the work load based on the requested content.
This is usually done with load balancers or firewalls/routers/switches with
high layer[1] packet inspection - none of that level of equipment come
cheap.

Cheers,

James
[1] as in "OSI model" layer 4+
--
IBM's original motto:
Cogito ergo vendo; vendo ergo sum.

Jul 17 '05 #8
Gordon Burditt wrote:
You know how yahoo has thousands of servers, but you only ever see
"yahoo.com/..." in the browser window?

I'd like to do the same thing, so as to avoid sub domains such as
g1.gallery.com,
g2.gallery.com, etc

so that everything is just at gallery.com.
I heard the jargon "Round-robin DNS", but didn't dig on that.


Round-robin DNS requires *EVERY* server in the round-robin to have
access to *EVERY* piece of content it needs to serve.


No it doesn't. But it does make life a lot simpler.
One way of
doing this is a big storage farm (which can contain as many CPUs
as needed) with all the content on it, and some web servers that
remote-mount all the volumes.


Presumably the content is split across multiple servers because there's too
much to fit on just one?

Assuming you're running Linux You caould set up a network raid device using
the data areas of the servers.

If you want a programmatic solution - think 404 handler.

C.
Jul 17 '05 #9
yeah Yahoo can afford $$$$$$$$$$$$$$$$$$$$$$$ wereas you might not be able
to afford $$$$$$$$$$$$$$$$$ - load balancers sound about right
<jo************@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hello!

You know how yahoo has thousands of servers, but you only ever see
"yahoo.com/..." in the browser window?

I'd like to do the same thing, so as to avoid sub domains such as
g1.gallery.com,
g2.gallery.com, etc

so that everything is just at gallery.com.

How do the big guys do it?

Thanks!

Jul 17 '05 #10
As often, it depends...

Do you want to spread the network load, or the disk load? In the latter
case you might want to try a far simpler solution like NFS driectories.

HTH

Gerard
Op 25 Jun 2005 19:00:31 -0700 schreef Captain Ranger McCoy:
Hello!

Suppose I have ten servers at ten ips:

x.x.x.1
x.x.x.2
x.x.x.3
x.x.x.4 and so on

Each server hosts 100+ photo galleries, all under a single domain name,
but in different directories:

gallery.com/gallery100
gallery.com/gallery2000
gallery.com/gallery300
gallery.com/gallery4442

How is it possible to configue apache to point to ten different
servers, depending on which gallery is accessed?

I don't want the domain to be merely forwarded, but all hits in any
gallery, such as gallery.com/gallery4442, must leave
gallery.com/gallery4442 in the access window.

Is this possible? What's the best way to do this? Thanks so much!

(If this isn't clear, I'll elaborate). Thanks!!

Jul 17 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nick Rees | last post by:
Hi, I've got a strange query that I can't figure out. I've got a new installation of Apache 1.3.28 and PHP 4.3.3 on my laptop, but it doesn't appear to be processing URLs correctly. I've tried...
3
by: Oliver | last post by:
Hi, I have a strange problem and I am not sure where to look for the core reason. I have a homepage in php which is working fine since ages and I have now a new server with a fresh Suse 9.1...
2
by: TrashOverride | last post by:
Hello guys i have a question about apache... i have installed Apache 2.0.54 PHP 5 MySQL 4.01 and i was wondering if i could use a name to access my apache server -> not to use http://localhost but...
1
by: bizsolutiondev | last post by:
Hi all, I have a DNS related question; this falls more under networking than anything else. NetSol is our domain registrar and we are using their email. Using their web forward, our web...
0
by: Jerry Spivey | last post by:
Hi, I'm a SQL Server DBA and I'm trying to get a listing of the SQL Servers on the network. I installed Visual Basic 2005 Express edition and used the SQL Server 2005 ServerInfo sample which...
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
2
by: marke711 | last post by:
Hello I'm looking for some help, Please!! I have Apache 1.3 installed on my firewall server (linux box) that is currently hosting one www site. (1 domain name) I have set up another Apache Web...
1
by: Jones | last post by:
Hello, I'm trying to figure out what the XPath entry would look like to try and filter data for my XMLDataSource. I'm thinking I need to use preceding-node somehow, but not quite sure what the...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.