httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PMilan...@nypl.org
Subject RE: [users@httpd] redirect document root
Date Tue, 07 Jun 2005 14:31:25 GMT
You are better off writing something to change all of the code
(search/replace) and make it all relative (site independent). Either that,
or just put it where it likes to be. 

If you have it setup as a vhost or the site is on its own, you can just do
a redirect into the /ao/ directory, and it may be ok.

Rewrites, in my professional opinion, are not the 'correct' way to do
this. Although others may not agree, rewrites are bandaids in a lot of
scenarios. Good ones, but nonetheless a bandaid. 

P

-----Original Message-----
From: Heiner.Amthauer@t-systems.com [mailto:Heiner.Amthauer@t-systems.com]

Sent: Tuesday, June 07, 2005 10:15 AM
To: users@httpd.apache.org
Subject: AW: [users@httpd] redirect document root

e.g.:

the login page is at login/main.jsp. It loads a frameset. Generally, some
of
the links are absolute, like /ao_unten.htm, others are relative like
../login/login_presubmit.jsp.

Accessing /login/main.jsp results in 

GET /login/main.jsp HTTP/1.1" 404 332

Heiner

-----Urspr√ľngliche Nachricht-----
Von: Joshua Slive [mailto:jslive@gmail.com] 
Gesendet: Dienstag, 7. Juni 2005 15:17
An: users@httpd.apache.org
Betreff: Re: [users@httpd] redirect document root


On 6/7/05, Heiner.Amthauer@t-systems.com <Heiner.Amthauer@t-systems.com>
wrote:
>  
> 
> Hi there, 
> 
> I have an application running at the web context /ao/, however, it is
> originally designed to run on /. I've tried to use the rewriting-engine
with
> the statement 
> 
> RewriteRule ^/$ /ao/ [R] 
> 
> however, it does not work. Are there any other tricks? 

This is not a good problem description.  What exactly is the problem
you are trying to solve?  Is it absolute links in your application? 
What exactly do the links look like?  What do you get in the error and
access log when you try to run it?

Joshua.

---------------------------------------------------------------------
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
   "   from the digest: users-digest-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
   "   from the digest: users-digest-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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message