RE: MIME types not delivering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

When our users hit the url https://domain.mycompany.com/app I would like to write a rewrite rule to check for the existence of a SSO cookie called MYSAPSSO2.  Basically, if the MYSAPSSO2 cookie is not there then it should redirect users to a logon page.

I added the below into httpd.conf:

	RewriteEngine on
	RewriteCond %{REQUEST_URI} ^/app/?$
	RewriteCond %{HTTP_COOKIE} !MYSAPSSO2=true
	RewriteRule /app https://domain.mycompany.com/logon
	
However, Apache always do a  redirect does not matter if the MYSAPSSO2 exists or not.  It is probably because of my syntax in the " RewriteCond %{HTTP_COOKIE} !MYSAPSSO2=true" statement.  Could somebody please help with the syntax?

Thank you very much in advance!


Bao 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux