Project

General

Profile

stylesheets not working on my svn repos

Added by Thomas Burgess about 14 years ago

I'm pretty new to this....i know i've somehow done something wrong...

When i first set up redmine, i was able to get stylesheets working with my svn repo (they are hosting on the same server) but i wasn't able to have automatic svn repo create or authentication....i've since got that working but now the stylesheets don't wokr, i get this error:

Error loading stylesheet: A network error occured loading an XSLT stylesheet:

here is the snippet from my old config:

<Location /svn>
     DAV svn
     SVNParentPath /usr/home/svn/repos
     SVNIndexXSLT "/repos-web/view/repos.xls" 

     # anonymous first
     Satisfy Any
     Require valid-user

     # authenticating them valid ones
     AuthType Basic
     AuthName "Subversion Repositories" 
     AuthUserFile /usr/home/svn/access/users
</Location>

and here is my current one:


## SVN WebDAV Repository Setup
  # /svn location for users
   PerlLoadModule Apache::Redmine
   <Location /svn>
     DAV svn
     SVNParentPath "/usr/home/svn" 
     SVNListParentPath on 
     SVNIndexXSLT "/repos-web/view/repos.xls" 
     Order deny,allow
     Deny from all
     Satisfy any

     PerlAccessHandler Apache::Authn::Redmine::access_handler
     PerlAuthenHandler Apache::Authn::Redmine::authen_handler
     AuthType Basic
     AuthName "Redmine SVN Repository" 

     #read-only access    
     <Limit GET PROPFIND OPTIONS REPORT>
        Require valid-user
        Allow from 127.0.0.1
        Allow from host.ip.here
         Satisfy any
     </Limit>
     # write access
     <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require valid-user
     </LimitExcept>

     ## for mysql
     RedmineDSN "DBI:mysql:database=dbname;host=1.2.3.4" 
     ## for postgres
     # RedmineDSN "DBI:Pg:dbname=databasename;host=my.db.server" 
     ## for SQLite3
     # RedmineDSN "DBI:SQLite:dbname=database.db" 

     RedmineDbUser "username" 
     RedmineDbPass "xxxxxxxxxxxx" 
  </Location>

what am i doing wrong here?
why would it work before and not work now?


Replies (2)

RE: stylesheets not working on my svn repos - Added by Felix Schäfer about 14 years ago

IIRC you have your svn running in a subdirectory of your redmine, right? So redmine is on server myserver.com and subversion is on myserver.com/svn? This will only cause problems as this one, because when viewing the svn repo, your browser will try to fetch myserver.com/repos-web/view/repos.xls, which gets to instead of serving the file. I'd advise putting your svn on another vhost than redmine.

RE: stylesheets not working on my svn repos - Added by Thomas Burgess about 14 years ago

ok, i will try that...but

when i set the line to explicitly go to
http://mysite.com/whatever/

it ddidnt' work either, yet whne i browsed to that location, i DID see the style sheets

    (1-2/2)