From: Les M. <les...@gm...> - 2009-10-26 17:03:09
|
Matthias Meyer wrote: > Hello, > > I want to integrate backuppc within my homepage. > I have a page where visitors can login and I want to reuse this login for > backuppc too. > > Therefore I have a configuration for my homepage in /etc/apache2/conf.d > which use the same htpasswd as backuppc: > > Alias /MyHome /usr/share/MyHome/www/ > > <Directory /usr/share/MyHome/www/secure> > AllowOverride None > > # Options ExecCGI FollowSymlinks > # AddHandler cgi-script .cgi > # DirectoryIndex index.cgi > > AuthGroupFile /etc/backuppc/htgroup > AuthUserFile /etc/backuppc/htpasswd > AuthType basic > AuthName "Login required" > require valid-user > </Directory> > > After http://localhost/backuppc I enter the account data and can access > http://localhost/MyHome/secure too. > But after http://localhost/MyHome/secure and enter the account data I can't > access http://localhost/backuppc. I have to enter the account data again. > > Unfortunately I am not experienced with apache. Hopefully someone can help > me. Is your 'Authname' directive the same for the other location where you'd like to share credentials? Normally browsers automatically re-send their basic authentication credentials to any request where the host and AuthName match. If the AuthName is different or you end up redirecting to a different hostname (even to the same machine) you'll have to re-enter. -- Les Mikesell les...@gm... |