Hello,
I am using DreamHost web hosting and they have Trac as a one-click
install. It's quite handy. They install it on apache servers using
FastCGI. Since it's a shared server, I can not modify any apache
settings.
I added these lines to the .htaccess file that was already in the Trac
directory after the one-click installation:
AuthUserFile /home/myuser/.htpasswd
AuthType Basic
AuthName "User Login"
Require valid-user
This is what the rest of the .htaccess file already had in it from the
default install:
<Files *.cgi>
SetHandler fastcgi-script
</Files>
DirectoryIndex index.fcgi
# Make sure rewrites work
Options ExecCGI FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond $1 !^index.fcgi/(.*)
# Keep the graphics and style sheet the way they are
RewriteCond $1 !^(.*).css$
RewriteCond $1 !^(.*).gif$
RewriteCond $1 !^(.*).jpg$
RewriteCond $1 !^(.*).png$
RewriteCond $1 !^(.*).js$
RewriteRule ^(.*)$ index.fcgi/$1 [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} attachment
RewriteCond $1 !^index.fcgi/(.*)
RewriteRule ^(.*)$ index.fcgi/$1 [L]
</IfModule>
When I go to www.myurl.com/Trac - it brings up the authorization
popup, I enter my credientials, but then it brings up the popup again
and again and again.
Finally, I hit cancel, which brings me to the Trac site, but the html
formatting on the page is usually incorrect. If I then click on "View
Tickets" or some other link on the page, the page html formatting
corrects itself.
The Trac functionality is all there and works just fine - I would just
like the authorization popup to only come up once - not multiple
times. I can't have my users going through this hassle each time.
My knowledge of linux is limited, so any help you could give me would
be greatly appreciated!
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.