Apache / Gallery问题:使用一个域名设置10多个服务器 [英] Apache/Gallery Question: Setting Up 10+ Servers With One Domain Name

查看:105
本文介绍了Apache / Gallery问题:使用一个域名设置10多个服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!


假设我有10台服务器,10个ips:


xxx1

xxx2

xxx3

xxx4等


每个服务器托管100多个照片库,所有照片画廊都在一个域名下,

但在不同的目录中:


gallery.com/gallery100

gallery.com/gallery2000

gallery.com/gallery300

gallery.com/gallery4442

如何配置apache指向十种不同的

服务器,取决于访问的图库?


我不希望域名仅被转发,但所有点击任何

图库,如gallery.com/gallery4442,必须在访问窗口中留下

gallery.com/gallery4442.


这可能吗?什么是最好的方法呢?非常感谢!


(如果这还不清楚,我会详细说明)。谢谢!!

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!!

推荐答案

你可以使用标题(location:)重定向,或者你可以设置sub

域并将每个域指向各自服务器的IP:ex。 g1.gallery.com,

g2.gallery.com等 - 就像php和usx.php.net一样。联系您的网络管理员

以了解如何做到这一点 - 可能有一个网络界面,允许您进行域名转发/指向



我想知道,你在做1000张照片画廊吗? ;-)


Ranger McCoy上尉 <莫*********** @ yahoo.com>在消息中写道

news:11 ********************** @ o13g2000cwo.googlegr oups.com ...
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...
你好!

假设我有十台ips服务器:

xxx1
xxx2
xxx3
xxx 4等等

每个服务器都有100多个照片画廊,所有照片画廊都在一个域名下,但在不同的目录中:

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

如何配置apache指向十种不同的
服务器,取决于访问的图库?

我不希望仅转发域名,但任何
库中的所有点击,例如gallery.com/gallery4442,必须在访问窗口中留下
gallery.com/gallery4442。

这可能吗?什么是最好的方法呢?非常感谢!

(如果这不清楚,我会详细说明)。谢谢!!
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!!



你好!

你知道雅虎有多少台服务器,但你只看到过

" yahoo.com /...& quot;在浏览器窗口中?


我想做同样的事情,以避免子域名,例如

g1.gallery.com,

g2.gallery.com等


所以一切都在gallery.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!


使用SAN(存储区域网络)。有些ISP会根据他们的托管主机方案为你做这件事

,或者你可以自己购买硬件

。如果你有空间要求,需要一个SAN系统,你可能会有很高的带宽要求,并且比内部解决方案更好地服务于b / b
托管主机。


ECRIA
http://www.ecria.com
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


这篇关于Apache / Gallery问题:使用一个域名设置10多个服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆