Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an application in Ruby on Rails 3.2.8, and I'm using passenger-Nginx as Web Server on port 3037 with Apache2 and SSL using ProxyPass and ProxyPassReverse. My problem is, when load in chrome or firefox the CSS and JavaScript files do not load.

I have an SSL certificate from and I have it configured in a VirtualHost this way:

this is in my VirtualHost from port 80

    DocumentRoot /home/mydomain/

    PassengerEnabled off
    ProxyPass /
    ProxyPassReverse /

RewriteEngine on
    ReWriteCond %{SERVER_PORT} !^443$
RewriteCond %{REQUEST_URI} !(\.js|\.css)$ [NC]
RewriteRule \.(gif|jpg|jpeg|jpe|png|css|js)$ - [S=1]
    RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]

this is in my file from SSL port 443:

        <Proxy *>
            Allow from localhost

    DocumentRoot /home/mydomain/

 ErrorLog /var/www/logs/
 CustomLog /var/www/logs/ combined

SSLEngine on
SSLCertificateFile /home/mydomain/certs/register/certs_register/certificate.crt
SSLCertificateKeyFile /home/mydomain/certs/register/shapelovers.key
SSLCACertificateFile /home/mydomain/certs/register/certs_register/Intermediary_Certificate_1.crt

SSLProtocol all
SSLProxyEngine on

    PassengerEnabled off
ProxyPass /
    ProxyPassReverse /

all this in a single file

I've tried everything for can resolve this problem without being able to have exit, if anyone can help me, I'll fully gratefully


in web browser Firefox is displayed perfectly without errors, now only the error is displayed in Chrome Browser

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.