RE: [users@httpd] redirect document root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx [mailto:Heiner.Amthauer@xxxxxxxxxxxxx]

Sent: Tuesday, June 07, 2005 10:15 AM
To: users@xxxxxxxxxxxxxxxx
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@xxxxxxxxx] 
Gesendet: Dienstag, 7. Juni 2005 15:17
An: users@xxxxxxxxxxxxxxxx
Betreff: Re: [users@httpd] redirect document root


On 6/7/05, Heiner.Amthauer@xxxxxxxxxxxxx <Heiner.Amthauer@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

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


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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux