# CSS issue when using SubUri and Passenger

**URL:** <https://www.ruby-forum.com/t/css-issue-when-using-suburi-and-passenger/172369>\
**Category:** Rails\
**Created:** [July 20, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/css-issue-when-using-suburi-and-passenger/172369 "2009-07-20T13:47:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [July 20, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/css-issue-when-using-suburi-and-passenger/172369/1 "2009-07-20T13:47:50Z")

</div>

I am testing another application in local

in my environment.rb I wrote  
config.action\_controller.relative\_url\_root = “/elnino”  
config.action\_controller.asset\_host = “[http://opticoaching.local](http://opticoaching.local)”

I defined correctly the vhost (I have already odne it for another app  
which is running well…)  
\<VirtualHost \*:80\>  
ServerName opticoaching.local  
DocumentRoot “/Users/yves/Sites/rails/opticoaching”

```
RailsEnv development
RailsDefaultUser yves
RailsBaseURI /elnino

<Directory /Users/yves/Sites/rails/opticoaching/elnino/public/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>

```

opticoaching.local is registered (as usual) in my etc/hosts

executing [http://opticoaching.local/elnino](http://opticoaching.local/elnino), the CSS and images are not  
taken in account …

[http://opticoaching.local/elnino/](http://opticoaching.local/elnino/)  
[http://opticoaching.local/images/elnino.jpg](http://opticoaching.local/images/elnino.jpg)  
[http://opticoaching.local/stylesheets/application.css](http://opticoaching.local/stylesheets/application.css)

what could be wrong ?

I already did it for another application without any problem …  
cannot find the differences…

thanks for you suggestions

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [July 20, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/css-issue-when-using-suburi-and-passenger/172369/2 "2009-07-20T14:10:38Z")

</div>

SOLVED … discover some CSS link redefinition missing the relative  
URL root !!
