Re: [us...@httpd] New to list - Redirect, Alias or Rewrite?? Very confused...

2011-01-09 Thread Matus UHLAR - fantomas
On 04.01.11 11:59, d...@aiphone.com wrote:
 I am attempting to have the Apache Server 2.0 handle the following request
 for me:
 
 When a visitor visits http://mydomain.com/OLD_Web App/, I would like them
 to be automatically redirected to http://mydomain.com/New_Web App/
 
 Both OLD and NEW Web App folders live in the same doc root and are at the
 same level in the folder tree - ie right off of root.
 
 I have tried both Alias commands and Redirect commands and nothing seems to
 work.

what exactly did you try? show us the directives.

Actually all those directives should work somehow, but I prefer Redirect for
such cases.

 I have restarted Apache on each change.

reload, even graceful, should be enough.

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Linux IS user friendly, it's just selective who its friends are...

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



Re: [us...@httpd] New to list - Redirect, Alias or Rewrite?? Very confused...

2011-01-05 Thread Igor Galić

- Robert Van Horn r...@abcreek.wisequackranch.com wrote:

 Change the name of New_Web to Old__Web.
 Don't forget to cp Old_Web to Old_Web.old first.

Bob, I'm not sure how that makes sense in the context of Doug's
question..

 bob
 
 On 1/4/11 11:59 AM, d...@aiphone.com wrote:
  Hi all,
  I am attempting to have the Apache Server 2.0 handle the following
 request
  for me:
 
  When a visitor visits http://mydomain.com/OLD_Web App/, I would like
 them
  to be automatically redirected to http://mydomain.com/New_Web App/
 
  Both OLD and NEW Web App folders live in the same doc root and are
 at the
  same level in the folder tree - ie right off of root.
 
  I have tried both Alias commands and Redirect commands and nothing
 seems to
  work. I have restarted Apache on each change.

What have you tried? Why not just tell us:

I've tried using:

RedirectMatch ^/OLD_Web App(/?.*) http://mydomain.com/New_Web App$1

But that resulted in: 
(Note, the above redirect *should* actually work :)

  What is the best way to accomplish this and is there something I am
  missing. I am using both the O'Reilly Apache Cookbook and the
 Apache.org
  for examples and they all sound similar. From what I have read,
 Alias seems
  to be for the purpose of referencing files outside of the doc root,
 this is
  not the case for me. Redirect seems to be for redirecting to 
 different
  server - also not the case.
 
  Any tips would be awesome.

Read the documentation of the Directives you're trying to use ;)

http://httpd.apache.org/docs/current/mod/mod_alias.html#redirect
http://httpd.apache.org/docs/current/mod/mod_alias.html#redirectmatch
http://httpd.apache.org/docs/current/mod/mod_alias.html#alias
http://httpd.apache.org/docs/current/mod/mod_alias.html#aliasmatch

For rewrite stuff I recommend the /trunk/ docs:

http://httpd.apache.org/docs/trunk/rewrite/

 
  Thanks,
  Doug Niman
  Information Services Manager
  Senior Network Administrator
  Aiphone Corporation


i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] New to list - Redirect, Alias or Rewrite?? Very confused...

2011-01-04 Thread doug

Hi all,
I am attempting to have the Apache Server 2.0 handle the following request
for me:

When a visitor visits http://mydomain.com/OLD_Web App/, I would like them
to be automatically redirected to http://mydomain.com/New_Web App/

Both OLD and NEW Web App folders live in the same doc root and are at the
same level in the folder tree - ie right off of root.

I have tried both Alias commands and Redirect commands and nothing seems to
work. I have restarted Apache on each change.

What is the best way to accomplish this and is there something I am
missing. I am using both the O'Reilly Apache Cookbook and the Apache.org
for examples and they all sound similar. From what I have read, Alias seems
to be for the purpose of referencing files outside of the doc root, this is
not the case for me. Redirect seems to be for redirecting to  different
server - also not the case.

Any tips would be awesome.


Thanks,
Doug Niman
Information Services Manager
Senior Network Administrator
Aiphone Corporation

Aiphone Corporation's Statement of Confidentiality:  This e-mail message, 
including attachments, is for the exclusive use of the addressee(s) and may 
contain proprietary, trade secret and/or confidential information. If you are 
not the intended recipient of this message, any use, copying, disclosure, 
dissemination or distribution of it or any of its attachments is prohibited. If 
you received this e-mail in error, please contact the sender and delete it, any 
attachments, and any copies from your computer, and any other computer, 
immediately.  
-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] New to list - Redirect, Alias or Rewrite?? Very confused...

2011-01-04 Thread Robert Van Horn

Change the name of New_Web to Old__Web.
Don't forget to cp Old_Web to Old_Web.old first.

bob

On 1/4/11 11:59 AM, d...@aiphone.com wrote:

Hi all,
I am attempting to have the Apache Server 2.0 handle the following request
for me:

When a visitor visits http://mydomain.com/OLD_Web App/, I would like them
to be automatically redirected to http://mydomain.com/New_Web App/

Both OLD and NEW Web App folders live in the same doc root and are at the
same level in the folder tree - ie right off of root.

I have tried both Alias commands and Redirect commands and nothing seems to
work. I have restarted Apache on each change.

What is the best way to accomplish this and is there something I am
missing. I am using both the O'Reilly Apache Cookbook and the Apache.org
for examples and they all sound similar. From what I have read, Alias seems
to be for the purpose of referencing files outside of the doc root, this is
not the case for me. Redirect seems to be for redirecting to  different
server - also not the case.

Any tips would be awesome.


Thanks,
Doug Niman
Information Services Manager
Senior Network Administrator
Aiphone Corporation

Aiphone Corporation's Statement of Confidentiality:  This e-mail message, 
including attachments, is for the exclusive use of the addressee(s) and may 
contain proprietary, trade secret and/or confidential information. If you are 
not the intended recipient of this message, any use, copying, disclosure, 
dissemination or distribution of it or any of its attachments is prohibited. If 
you received this e-mail in error, please contact the sender and delete it, any 
attachments, and any copies from your computer, and any other computer, 
immediately.
-
The official User-To-User support forum of the Apache HTTP Server Project.
SeeURL:http://httpd.apache.org/userslist.html  for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org