Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique TKTAuthToken when using VirtualDocumentRoot #15

Open
electricBonfire opened this issue Sep 7, 2015 · 0 comments
Open

Unique TKTAuthToken when using VirtualDocumentRoot #15

electricBonfire opened this issue Sep 7, 2015 · 0 comments

Comments

@electricBonfire
Copy link

I am using VirtualDocumentRoots in my Apache setup: http://httpd.apache.org/docs/2.2/vhosts/mass.html

Is it possible to create a unique TKTAuthToken for each Virtual Host?

For example:

foo.example.com -> /home/sites/foo - accessible by users with "foo" token
bar.example.com -> /home/sites/bar - accessible by users with "bar" token

Here is my conf:

<VirtualHost *:80>
    ServerAlias *.example.com
    VirtualDocumentRoot "/home/sites/%1/
    TKTAuthPublicKey /home/private/tkt_pubkey_dsa.pem
</VirtualHost>

<Directory "/home/sites/*">
   Order allow,deny
   AuthType mod_auth_pubtkt
   TKTAuthLoginURL http://login.example.com/
   TKTAuthTimeoutURL https://login.example.com/?timeout=1
   TKTAuthUnauthURL https://login.example.com/?unauth=1

   TKTAuthToken "?" - Unique for each site

   require valid-users
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant