I've deployed a rails app (using Capistrano) to an a server running
apache and mongrel_cluster.

I am able to get to my page, but what I see is basically my page
without stylesheet referred and all the images missing. Can someone
point me in the right direction?

The following is a copy of my .conf file:

<Proxy balancer://mongrel_cluster_for_webapp>
    BalancerMember http://127.0.0.1:8000
    BalancerMember http://127.0.0.1:8001
</Proxy>

<VirtualHost *:8080>
    ServerAdmin [EMAIL PROTECTED]
    ServerName webapp.example.com

    DocumentRoot /srv/www/htdocs/webapp/current/public

    # don't lose time with IP address lookups
    HostnameLookups Off

    # needed for named virtual hosts
    UseCanonicalName Off

    # configures the footer on server-generated documents
    ServerSignature On

    <Directory "/srv/www/htdocs/webapp/current/public">
                Options FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
    </Directory>

    RewriteEngine On

    # Check maintenance file and redirect all requests
    RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
    RewriteCond %{SCRIPT_FILENAME} !maintenance.html
    RewriteRule ^.*$ /system/maintenance.html [L]

    # Rewrite index to check for static
    RewriteRule ^/$ /index.html [QSA]

    # Rewrite to check for Rails cached page
    RewriteRule ^([^.]+)$ $1.html [QSA]

    # Redirect all non-static requests to cluster
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ balancer://mongrel_cluster_for_webapp%{REQUEST_URI}
[P,QSA,L]
</VirtualHost>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to