Mailing List Archive

Problems switching a site from one server to another
Hello,

Here is my situation. We have a large unix box that is hosting a
large number of sites and is inncredibly slow. The main site is
www.bus.miami.edu. There are hundreds of other smaller sites beigt hosted
under that name as well, for example www.bus.miami.edu/~diegoe/. We moved
the main site to a new linux box, which is much faster. Both servers are
running apache.

The problem is this. We cant change the DNS entry for
www.bus.miami.edu to point to the new linux server because of all the
smaller sites that are still being hosted on the old server. We setup a
redirect so that all hits to www.bus.miami.edu and only that address are
redirected to the new server. The problem is that there are many entry
points into the site that aren't being redirected. For example
www.bus.miami.edu/display_pages/test1.html wont be redirected.

My question is this. Is there anything I can do to automatically
redirect everything under www.bus.miami.edu/display_pages/ to the new
server, all files and all sub directories.


Thanx in advance for the help.


Emil Diego
Web Coordinator
University of Miami School of Business
ph: 305.284.5449
fx: 305.284.3404

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Problems switching a site from one server to another [ In reply to ]
Check out mod_rewrite. It will for sure do what you want.

-Andy

On Mon, 28 Jan 2002 10:46:06 -0500
"Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:

> Hello,
>
> Here is my situation. We have a large unix box that is hosting a
> large number of sites and is inncredibly slow. The main site is
> www.bus.miami.edu. There are hundreds of other smaller sites beigt
hosted
> under that name as well, for example www.bus.miami.edu/~diegoe/. We
moved
> the main site to a new linux box, which is much faster. Both servers
are
> running apache.
>
> The problem is this. We cant change the DNS entry for
> www.bus.miami.edu to point to the new linux server because of all the
> smaller sites that are still being hosted on the old server. We setup a
> redirect so that all hits to www.bus.miami.edu and only that address are
> redirected to the new server. The problem is that there are many entry
> points into the site that aren't being redirected. For example
> www.bus.miami.edu/display_pages/test1.html wont be redirected.
>
> My question is this. Is there anything I can do to automatically
> redirect everything under www.bus.miami.edu/display_pages/ to the new
> server, all files and all sub directories.
>
>
> Thanx in advance for the help.
>
>
> Emil Diego
> Web Coordinator
> University of Miami School of Business
> ph: 305.284.5449
> fx: 305.284.3404
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Problems switching a site from one server to another [ In reply to ]
$ httpd -l
If you see mod_rewrite.c it is installed.

On Mon, 28 Jan 2002 11:33:36 -0500
"Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:

> How do i determine if it is already installed?
>
>
> -----Original Message-----
> From: Andrew Hawkes [mailto:ahawkes@unicon.net]
> Sent: Monday, January 28, 2002 10:51 AM
> To: users@httpd.apache.org
> Subject: Re: Problems switching a site from one server to another
>
>
> Check out mod_rewrite. It will for sure do what you want.
>
> -Andy
>
> On Mon, 28 Jan 2002 10:46:06 -0500
> "Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:
>
> > Hello,
> >
> > Here is my situation. We have a large unix box that is hosting a
> > large number of sites and is inncredibly slow. The main site is
> > www.bus.miami.edu. There are hundreds of other smaller sites beigt
> hosted
> > under that name as well, for example www.bus.miami.edu/~diegoe/. We
> moved
> > the main site to a new linux box, which is much faster. Both servers
> are
> > running apache.
> >
> > The problem is this. We cant change the DNS entry for
> > www.bus.miami.edu to point to the new linux server because of all the
> > smaller sites that are still being hosted on the old server. We setup
a
> > redirect so that all hits to www.bus.miami.edu and only that address
are
> > redirected to the new server. The problem is that there are many
entry
> > points into the site that aren't being redirected. For example
> > www.bus.miami.edu/display_pages/test1.html wont be redirected.
> >
> > My question is this. Is there anything I can do to automatically
> > redirect everything under www.bus.miami.edu/display_pages/ to the new
> > server, all files and all sub directories.
> >
> >
> > Thanx in advance for the help.
> >
> >
> > Emil Diego
> > Web Coordinator
> > University of Miami School of Business
> > ph: 305.284.5449
> > fx: 305.284.3404
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Problems switching a site from one server to another [ In reply to ]
How do i determine if it is already installed?


-----Original Message-----
From: Andrew Hawkes [mailto:ahawkes@unicon.net]
Sent: Monday, January 28, 2002 10:51 AM
To: users@httpd.apache.org
Subject: Re: Problems switching a site from one server to another


Check out mod_rewrite. It will for sure do what you want.

-Andy

On Mon, 28 Jan 2002 10:46:06 -0500
"Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:

> Hello,
>
> Here is my situation. We have a large unix box that is hosting a
> large number of sites and is inncredibly slow. The main site is
> www.bus.miami.edu. There are hundreds of other smaller sites beigt
hosted
> under that name as well, for example www.bus.miami.edu/~diegoe/. We
moved
> the main site to a new linux box, which is much faster. Both servers
are
> running apache.
>
> The problem is this. We cant change the DNS entry for
> www.bus.miami.edu to point to the new linux server because of all the
> smaller sites that are still being hosted on the old server. We setup a
> redirect so that all hits to www.bus.miami.edu and only that address are
> redirected to the new server. The problem is that there are many entry
> points into the site that aren't being redirected. For example
> www.bus.miami.edu/display_pages/test1.html wont be redirected.
>
> My question is this. Is there anything I can do to automatically
> redirect everything under www.bus.miami.edu/display_pages/ to the new
> server, all files and all sub directories.
>
>
> Thanx in advance for the help.
>
>
> Emil Diego
> Web Coordinator
> University of Miami School of Business
> ph: 305.284.5449
> fx: 305.284.3404
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Problems switching a site from one server to another [ In reply to ]
thanx

-----Original Message-----
From: Andrew Hawkes [mailto:ahawkes@unicon.net]
Sent: Monday, January 28, 2002 11:32 AM
To: users@httpd.apache.org
Subject: Re: Problems switching a site from one server to another


$ httpd -l
If you see mod_rewrite.c it is installed.

On Mon, 28 Jan 2002 11:33:36 -0500
"Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:

> How do i determine if it is already installed?
>
>
> -----Original Message-----
> From: Andrew Hawkes [mailto:ahawkes@unicon.net]
> Sent: Monday, January 28, 2002 10:51 AM
> To: users@httpd.apache.org
> Subject: Re: Problems switching a site from one server to another
>
>
> Check out mod_rewrite. It will for sure do what you want.
>
> -Andy
>
> On Mon, 28 Jan 2002 10:46:06 -0500
> "Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:
>
> > Hello,
> >
> > Here is my situation. We have a large unix box that is hosting a
> > large number of sites and is inncredibly slow. The main site is
> > www.bus.miami.edu. There are hundreds of other smaller sites beigt
> hosted
> > under that name as well, for example www.bus.miami.edu/~diegoe/. We
> moved
> > the main site to a new linux box, which is much faster. Both servers
> are
> > running apache.
> >
> > The problem is this. We cant change the DNS entry for
> > www.bus.miami.edu to point to the new linux server because of all the
> > smaller sites that are still being hosted on the old server. We setup
a
> > redirect so that all hits to www.bus.miami.edu and only that address
are
> > redirected to the new server. The problem is that there are many
entry
> > points into the site that aren't being redirected. For example
> > www.bus.miami.edu/display_pages/test1.html wont be redirected.
> >
> > My question is this. Is there anything I can do to automatically
> > redirect everything under www.bus.miami.edu/display_pages/ to the new
> > server, all files and all sub directories.
> >
> >
> > Thanx in advance for the help.
> >
> >
> > Emil Diego
> > Web Coordinator
> > University of Miami School of Business
> > ph: 305.284.5449
> > fx: 305.284.3404
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Problems switching a site from one server to another [ In reply to ]
How do i go about obtaining and installing the mod_rewrite module.
Is there any documentation on istalling modules?

Emil


-----Original Message-----
From: Andrew Hawkes [mailto:ahawkes@unicon.net]
Sent: Monday, January 28, 2002 11:32 AM
To: users@httpd.apache.org
Subject: Re: Problems switching a site from one server to another


$ httpd -l
If you see mod_rewrite.c it is installed.

On Mon, 28 Jan 2002 11:33:36 -0500
"Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:

> How do i determine if it is already installed?
>
>
> -----Original Message-----
> From: Andrew Hawkes [mailto:ahawkes@unicon.net]
> Sent: Monday, January 28, 2002 10:51 AM
> To: users@httpd.apache.org
> Subject: Re: Problems switching a site from one server to another
>
>
> Check out mod_rewrite. It will for sure do what you want.
>
> -Andy
>
> On Mon, 28 Jan 2002 10:46:06 -0500
> "Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:
>
> > Hello,
> >
> > Here is my situation. We have a large unix box that is hosting a
> > large number of sites and is inncredibly slow. The main site is
> > www.bus.miami.edu. There are hundreds of other smaller sites beigt
> hosted
> > under that name as well, for example www.bus.miami.edu/~diegoe/. We
> moved
> > the main site to a new linux box, which is much faster. Both servers
> are
> > running apache.
> >
> > The problem is this. We cant change the DNS entry for
> > www.bus.miami.edu to point to the new linux server because of all the
> > smaller sites that are still being hosted on the old server. We setup
a
> > redirect so that all hits to www.bus.miami.edu and only that address
are
> > redirected to the new server. The problem is that there are many
entry
> > points into the site that aren't being redirected. For example
> > www.bus.miami.edu/display_pages/test1.html wont be redirected.
> >
> > My question is this. Is there anything I can do to automatically
> > redirect everything under www.bus.miami.edu/display_pages/ to the new
> > server, all files and all sub directories.
> >
> >
> > Thanx in advance for the help.
> >
> >
> > Emil Diego
> > Web Coordinator
> > University of Miami School of Business
> > ph: 305.284.5449
> > fx: 305.284.3404
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Problems switching a site from one server to another [ In reply to ]
Read the INSTALL file that comes with Apache. mod_rewrite is included with
the source distribution, but you need to enable it (by following
instructions in the INSTALL file that comes with Apache).

On Mon, 28 Jan 2002 11:54:40 -0500
"Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:

> How do i go about obtaining and installing the mod_rewrite module.
> Is there any documentation on istalling modules?
>
> Emil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Problems switching a site from one server to another [ In reply to ]
thanx for the assistance


-----Original Message-----
From: Andrew Hawkes [mailto:ahawkes@unicon.net]
Sent: Monday, January 28, 2002 11:58 AM
To: users@httpd.apache.org
Subject: Re: Problems switching a site from one server to another


Read the INSTALL file that comes with Apache. mod_rewrite is included with
the source distribution, but you need to enable it (by following
instructions in the INSTALL file that comes with Apache).

On Mon, 28 Jan 2002 11:54:40 -0500
"Diego, Emil" <ediego@exchange.sba.miami.edu> wrote:

> How do i go about obtaining and installing the mod_rewrite module.
> Is there any documentation on istalling modules?
>
> Emil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Problems switching a site from one server to another [ In reply to ]
"Diego, Emil" wrote:
> > How do i go about obtaining and installing the mod_rewrite module.
> > Is there any documentation on istalling modules?

While I don't dispute that mod_rewrite is super stuff and that it will
certainly solve any problem you have (assuming it is mathematically
possible), you might find that many of your requirements can be met with
Redirect and RedirectMatch directives - check the docs for details on
these directives.

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org