You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Smith, Cathy" <ca...@pnl.gov> on 2010/11/09 00:56:14 UTC
[users@httpd] Problems with redirect statement
Folks
I'm having a problem getting a redirect to work properly. This is RHEL5, Apache 2.2. I need this to redirect to happen:
http://retuning.foo -> http://retuning.foo/training.lms
This url works just fine:
http://retuning.foo/training.lms
It's just the redirect is a problem. I used this redirect statement:
Redirect Permanent /index.html http://retuning.foo/training/lms/
This gave the following error:
192.168.18.75 - - [08/Nov/2010:14:50:49 -0800] "GET /training/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lmstraining/lms HTTP/1.1" 404 520
I've tried other forms of the redirect, which resulted in the same error:
Redirect Permanent /retuning.foo http://retuning.foo/training/lms/
Here is the section defining the virtual host from my http.conf:
# retuning.foo
<VirtualHost 192.168.25.184:80>
Redirect Permanent /index.html http://retuning.foo/training/lms/
ServerAdmin cathy.smith@pnl.gov
ServerName retuningtraining.foo
DocumentRoot /apps/retuning/training/www/Root/retuning
ServerAlias retuning
ErrorLog logs/retuning_error_log
CustomLog logs/retuning_access_log common
ScriptAlias /training/lms/cgi-bin/ "/apps/retuning/training/www/Root/lms/cgi-bin/"
ScriptAlias /training/cgi-bin/ "/apps/retuning/training/www/Root/lms/cgi-bin/"
Alias /training "/apps/retuning/training/www/Root"
<Directory "/apps/retuning/training/www/">
AllowOverride All
Options +FollowSymlinks -Indexes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Can someone point out what I need to do?
Thanks for your help.
Regards,
Cathy
---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
Phone: 509.375.2687
Fax: 509.375.2330
Email: cathy.smith@pnl.gov
---------------------------------------------------------------------
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
Re: [users@httpd] Problems with redirect statement
Posted by Eric Covener <co...@gmail.com>.
>
> Redirect Permanent /index.html http://retuning.foo/training/lms/
Try just redirecting the root URL -- RedirectMatch ^/$
http://retuning.foo/training/lms/
---------------------------------------------------------------------
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