I have set up gitorious on a CentOS server under an Alias in apache so
that you can reach it by going to https://servername/gitorious/.  Some
of the CSS files load fine, such as on the main page.  When I go to
the login page, though, onload.js and external.css do not load.
Closer inspection of the files shows that their urls are not getting
the relative root directory appended, so instead of trying to load
https://servername/gitorious/stylesheets/external.css, the page tries
to load https://servername/stylesheets/external.css.  It appears that
these values are hard coded in app/views/layouts/second_generation/
application.html.erb and app/views/layouts/_common_footer.html.erb.

Is this a bug?  Is there a way to pass the relative url to these
files?

Thanks for you help.  Relevant configuration details are below.

/etc/httpd/conf.d/gitorious.conf:
Alias /gitorious /var/www/git/gitorious/public
XSendFile on
XSendFilePath /var/www/git/tarballs

<Directory /var/www/git/gitorious/public>
  PassengerAppRoot /var/www/git/gitorious
  AllowOverride all
  Options -MultiViews
  Order Allow,Deny
  Allow from all
</Directory>
</pre>

I have also added the following line to my config/environments/
production.rb:
config.action_controller.relative_url_root = '/gitorious'

Thanks,
Shawn K.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to