You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Shearer <je...@shearer-family.org> on 2011/03/08 15:10:37 UTC

[users@httpd] redirect permanent not working

I am unable to successfully redirect traffic after moving 4 files from one location to another.  I have the following code in the virtual host container:

Redirect permanent http://www.trustedtechpro.com/marks.html http://www.trustedtechpro.com/policies/marks.html
Redirect permanent http://www.trustedtechpro.com/terms.html http://www.trustedtechpro.com/policies/terms.html
Redirect permanent http://www.trustedtechpro.com/privacypolicy.html http://www.trustedtechpro.com/policies/privacypolicy.html
Redirect permanent http://www.trustedtechpro.com/policyarchive.html http://www.trustedtechpro.com/policies/archive/index.html

I have tried everything I can think of but nothing seems to work.  What am I doing wrong?  

Thanks.
======================
Jeff Shearer, CISA, CISSP

---------------------------------------------------------------------
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] Load Balancer with HTTPS

Posted by Martin Barry <ma...@supine.com>.
$quoted_author = "Christian Pascher" ;
> 
> If I would activate
> RequestHeader set Front-End-Https "On"
> I need all the SSL config stuff also at the back end servers?

No. That setting just let's Apache know that, even though it is seeing http
connections, the client is seeing https with the SSL being terminated on a
different device.

You should set it. Even if you are not doing explicit redirects Apache will
still redirect on things like requests for a directory without the trailing
slash.

cheers
Marty

---------------------------------------------------------------------
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] Load Balancer with HTTPS

Posted by Christian Pascher <ch...@gmx.at>.
So if I only want that people can access http://example.com and 
https://example.com and all the subpages I don't need it? (I don't have 
any redirect statement in my configs)
If I would activate
RequestHeader set Front-End-Https "On"
I need all the SSL config stuff also at the back end servers?

Am 2011-03-08 23:05, schrieb Daniel Holth:
> The back end is only speaking http, but if it were to generate e.g. a 
> redirect it would need to redirect to https://something instead of 
> http://something . The 'https?' header preserves that information.

---------------------------------------------------------------------
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] Load Balancer with HTTPS

Posted by Daniel Holth <dh...@gmail.com>.
The back end is only speaking http, but if it were to generate e.g. a
redirect it would need to redirect to https://something instead of
http://something . The 'https?' header preserves that information.

Re: [users@httpd] Load Balancer with HTTPS

Posted by Christian Pascher <ch...@gmx.at>.
Is this necessary? I would also have to configure HTTPS also on the back 
end servers, if I use this?
I thought, the web browser already uses a secure connection to the load 
balancer, so i don't need HTTPS at the back end.

Am 2011-03-08 22:50, schrieb Daniel Holth:
> The header allows a properly configured back end to generate https:// 
> URLs instead of http:// URLs when it is being accessed securely.

---------------------------------------------------------------------
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] Load Balancer with HTTPS

Posted by Daniel Holth <dh...@gmail.com>.
The header allows a properly configured back end to generate https:// URLs
instead of http:// URLs when it is being accessed securely.

[users@httpd] Load Balancer with HTTPS

Posted by Christian Pascher <ch...@gmx.at>.
Hi,

I have a Apache Webserver with 2 Apache Backend-Servers.

It is possible to access webpages over HTTPS (configured on the 
loadbalancer).

It all works very well but yesterday I read something about changing the 
HTTP-Header:
RequestHeader set Front-End-Https "On"

Do I need this?

Regards,
Chris

---------------------------------------------------------------------
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] redirect permanent not working

Posted by Eric Covener <co...@gmail.com>.
On Tue, Mar 8, 2011 at 9:10 AM, Jeff Shearer <je...@shearer-family.org> wrote:
> I am unable to successfully redirect traffic after moving 4 files from one location to another.  I have the following code in the virtual host container:
>
> Redirect permanent http://www.trustedtechpro.com/marks.html http://www.trustedtechpro.com/policies/marks.html
> Redirect permanent http://www.trustedtechpro.com/terms.html http://www.trustedtechpro.com/policies/terms.html
> Redirect permanent http://www.trustedtechpro.com/privacypolicy.html http://www.trustedtechpro.com/policies/privacypolicy.html
> Redirect permanent http://www.trustedtechpro.com/policyarchive.html http://www.trustedtechpro.com/policies/archive/index.html

Redirect takes a URL-path, not a full URL.

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

Redirect [status] URL-path URL

Example:

Redirect /service http://foo2.example.com/service

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