Same Url Different Path
Michael Foo
mfoo at csudh.edu
Fri Jul 31 12:50:11 EDT 2015
Hi Teresa,
I've done something similar to this to enable an authenticated website for software downloads. My example assumes v.2.x SP and Apache.
1. Create an authenticated virtual directory for path2.
<VirtualHost 10.1.0.100:443>
ServerAdmin email at myapp.it
DocumentRoot /home/vhosts/myapp/htdocs
ServerName www.myapp.it:443
ScriptAlias /cgi-bin/ /home/vhosts/myapp/cgi-bin/
Options Indexes Includes FollowSymlinks
ErrorLog /home/vhosts/myapp/logs/myapp-error.log
CustomLog /home/vhosts/myapp/logs/myapp-access.log combined
<Location /path2>
AuthType shibboleth
ShibRequireSession On
ShibRequireAll On
require valid-user
</Location>
2. Create an .htaccess file in the virtual directory path: /path2/.htaccess
AuthType shibboleth
ShibRequestSetting requireSession 1
Require valid-user
3. Designate the path in shibboleth2.xml:
<Host name="www.myapp.it">
<Path name="path2" authType="shibboleth" requireSession="true"/>
</Host>
HTH,
Michael
-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Teresa Fasano
Sent: Friday, July 31, 2015 6:59 AM
To: Shib Users
Subject: Same Url Different Path
Hi,
I have several services that use the same url.
Is it possible to protect with shibboleth only according to specific path?
For example, I have:
http://www.myapp.it/path1
http://www.myapp.it/path2
http://www.myapp.it/path3
I want to protect only http://www.myapp.it/path2, not
http://www.myapp.it/path1 and http://www.myapp.it/path3.
How can I implement this request?
Is there documentation?
Thanks,
Teresa
--
----------------------------------
L'educazione è il pane dell'anima
----------------------------------
Teresa Fasano
CINECA
System and Technologies Department
Middleware and Infrastructure Group
Via Magnanelli, 6/3
Casalecchio di Reno (Bologna) ITALY
web: http://www.cineca.it
e-mail: t.fasano at cineca.it
phone: +39 051 61 71 364
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list