473,765 Members | 2,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2280
You could use a header("locatio n: ") 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.goo glegroups.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.g if" 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*******@attgl obal.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.co m" 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.goo glegroups.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

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

Similar topics

2
1924
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 to do a direct copy of my config on my desktop (which is Apache 1.3.27 and PHP 4.3.1, I think), but I don't have access to it any more to check the config files. Apache works fine, I installed it first and tested it with several
3
2097
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 installation and all apache + php modules installed (coming with Suse). My side is working allright apart from my image gallery which does not generate any error message but I can only see a few "random" images. First I thought ok my php script needs...
2
2101
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 to use example1.com? i have tried to adjust the vhost section acording to the guide in the apache web page, but when i try i get error 404. also when i try http://localhost i also get 404. i've attached my .conf file. i want to access my server...
1
1131
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 traffic is going to a soon to be obsolecent web host. Is it possible to use a combination of web forwarding and configuration
0
1093
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 uses SMO (SQL Server Management Objects). I chose SMO over SQL-DMO because SMO seemed to list more SQL Servers including named instances. Everything worked fine on our local domain. I then logged off and connected to the remote domain (in Europe)...
10
2195
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 sql server. I have deployed the web application in the internal server. It is not able to access the sql server that is on another server. If I deploy the same application on IIS, it is working fine. How should I set up the web application in the...
2
3434
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 Server (inside the firewall) with Apache 2.2 (windows box) on it and trying to get a different domain name (www site) to hit the new apache server and not the first one on the firewall. I have only one Static IP, Looking for some type of setting...
1
1346
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 syntax would be. The xml is below. I want to list all servers for Domain1. If I use //STATUS/DOMAIN/servers/server, I get all servers. If I use //STATUS/DOMAIN/servers/server, I get all server1 servers. How would I format a specific domain?
6
7599
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 work. Please review my work and let me know if you see that one little thing that is throwing me for a loop. HTTPD.CONF # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.