You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "David A. Benfell" <be...@parts-unknown.org> on 2005/03/08 04:21:34 UTC

[users@httpd] Newbie problem: Redirect

Hello all,

I'm trying to get Redirect to work under Apache 2.0.50 on a Linux
system.  I'm new at this, so I have every reason to believe that this
is something really stupid that I just don't see in the documentation.

I have built Apache from source; the mod_alias module comes up in
httpd -l.

The following snippets from my httpd.conf seem relevant.

#
# Redirect allows you to tell clients about documents which used to
# exist in
# your server's namespace, but do not anymore. This allows you to tell
# the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar
Redirect temp /public/current/file/0/benfell/dish http://www.vmcsatellite.com/channels/dish_splash.cfm?aid=157038

<VirtualHost dish.greybeard95a.com>
    ServerAdmin benfell@greybeard95a.com
    ServerName dish.greybeard95a.com
    DocumentRoot /public/current/file/0/benfell/dish
    ErrorLog logs/dish.greybeard95a.com-error_log
    CustomLog logs/dish.greybeard95a.com-access_log common
    Redirect temp /public/current/file/0/benfell/dish http://www.vmcsatellite.com/channels/dish_splash.cfm?aid=157038
</VirtualHost>

Instead of redirecting, it came up with a directory listing.  I have
since inserted a web page there and that appears, but I'm still
wondering why the Redirect didn't work.

-- 
David Benfell, LCP
benfell@parts-unknown.org
---
Resume available at http://www.parts-unknown.org/resume.pdf

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