You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lalit Kapoor <la...@gmail.com> on 2007/06/20 21:56:06 UTC
[users@httpd] ReWrite Rule help required
Hi,
We have written Rewrite Rule to direct HTTP traffic to HTTPS page.
It works as : http://sitename.com -----------> https://sitename.com + CA
siteminder login --------->http://sitename.com ( after authentication )
Here is the rule:
**# URL rewrite to redirect access to /entrycheck/login.html from HTTP to
HTTPS.
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/entrycheck/login(.*)$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
But when i am trying to directly access the "https://sitename.com" it says
" requested page not found on port 443 "
This is what my requirement is:
https://sitename.com -----------> https://sitename.com + CA siteminder login
--------->http://sitename.com ( after authentication )
Please suggest what change/addition are required in above said rewrite rule
to achieve this.
Thanks,
Lalit
Re: [users@httpd] ReWrite Rule help required
Posted by GK...@symcor.com.
Hi,
You need to have a
<VirtualHost 192.1681.1:443>
. . . .
</VirtualHost>
seted up.
Gabriel
"Lalit Kapoor"
<lalitp111@gmail.
com> To
users@httpd.apache.org
20/06/2007 04:23 cc
PM
Subject
Re: [users@httpd] ReWrite Rule help
Please respond to required
users@httpd.apach
e.org
Hi,
You got it right. This is wat " http -S " says:
[aoxh1016.oavf.sprintspectrum.com:/etc/httpd/conf]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 aoxh1016.oavf.sprintspectrum.com
(/etc/httpd/conf.d/ssl.conf:88)
Syntax OK
[aoxh1016.oavf.sprintspectrum.com:/etc/httpd/conf]#
Do i need to comment virtualhost entry at ssl.conf and restart apache !!!
Thanks,
Lalit
On 6/20/07, GKapitany@symcor.com < GKapitany@symcor.com> wrote:
Hi,
If your https host is not accessible directly, then do you have a
virtualhost seted up listening on 443?
Gabriel
"Lalit Kapoor"
<lalitp111@gmail.
com>
To
users@httpd.apache.org
20/06/2007 03:56
cc
PM
Subject
[users@httpd] ReWrite Rule help
Please respond to required
users@httpd.apach
e.org
Hi,
We have written Rewrite Rule to direct HTTP traffic to HTTPS page.
It works as : http://sitename.com -----------> https://sitename.com + CA
siteminder login --------->http://sitename.com ( after authentication )
Here is the rule:
# URL rewrite to redirect access to /entrycheck/login.html from HTTP to
HTTPS.
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/entrycheck/login(.*)$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
But when i am trying to directly access the " https://sitename.com" it
says " requested page not found on port 443 "
This is what my requirement is:
https://sitename.com -----------> https://sitename.com + CA siteminder
login --------->http://sitename.com ( after authentication )
Please suggest what change/addition are required in above said rewrite
rule
to achieve this.
Thanks,
Lalit
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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] ReWrite Rule help required
Posted by Lalit Kapoor <la...@gmail.com>.
Hi,
You got it right. This is wat " http -S " says:
[aoxh1016.oavf.sprintspectrum.com:/etc/httpd/conf]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443
aoxh1016.oavf.sprintspectrum.com(/etc/httpd/conf.d/ssl.conf:88)
Syntax OK
[aoxh1016.oavf.sprintspectrum.com:/etc/httpd/conf]#
Do i need to comment virtualhost entry at ssl.conf and restart apache !!!
Thanks,
Lalit
On 6/20/07, GKapitany@symcor.com <GK...@symcor.com> wrote:
>
> Hi,
>
> If your https host is not accessible directly, then do you have a
> virtualhost seted up listening on 443?
>
> Gabriel
>
>
>
> "Lalit Kapoor"
> <lalitp111@gmail.
> com> To
> users@httpd.apache.org
> 20/06/2007 03:56 cc
> PM
> Subject
> [users@httpd] ReWrite Rule help
> Please respond to required
> users@httpd.apach
> e.org
>
>
>
>
>
>
>
>
> Hi,
>
> We have written Rewrite Rule to direct HTTP traffic to HTTPS page.
>
> It works as : http://sitename.com -----------> https://sitename.com + CA
> siteminder login --------->http://sitename.com ( after authentication )
>
> Here is the rule:
>
> # URL rewrite to redirect access to /entrycheck/login.html from HTTP to
> HTTPS.
> RewriteCond %{HTTPS} off
> RewriteCond %{REQUEST_URI} ^/entrycheck/login(.*)$
> RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
>
>
> But when i am trying to directly access the " https://sitename.com" it
> says " requested page not found on port 443 "
> This is what my requirement is:
>
> https://sitename.com -----------> https://sitename.com + CA siteminder
> login --------->http://sitename.com ( after authentication )
>
> Please suggest what change/addition are required in above said rewrite
> rule
> to achieve this.
>
> Thanks,
> Lalit
>
> ---------------------------------------------------------------------
> 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] ReWrite Rule help required
Posted by GK...@symcor.com.
Hi,
If your https host is not accessible directly, then do you have a
virtualhost seted up listening on 443?
Gabriel
"Lalit Kapoor"
<lalitp111@gmail.
com> To
users@httpd.apache.org
20/06/2007 03:56 cc
PM
Subject
[users@httpd] ReWrite Rule help
Please respond to required
users@httpd.apach
e.org
Hi,
We have written Rewrite Rule to direct HTTP traffic to HTTPS page.
It works as : http://sitename.com -----------> https://sitename.com + CA
siteminder login --------->http://sitename.com ( after authentication )
Here is the rule:
# URL rewrite to redirect access to /entrycheck/login.html from HTTP to
HTTPS.
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/entrycheck/login(.*)$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
But when i am trying to directly access the " https://sitename.com" it
says " requested page not found on port 443 "
This is what my requirement is:
https://sitename.com -----------> https://sitename.com + CA siteminder
login --------->http://sitename.com ( after authentication )
Please suggest what change/addition are required in above said rewrite rule
to achieve this.
Thanks,
Lalit
---------------------------------------------------------------------
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