I'm trying to make an apache vhost using rewrite rules that renders the supervisor page from a URL such as: http://www.mysite.com/supervisor/
I'm trying to use a vhost such as: <VirtualHost *:80> ServerName www.mysite.com ServerAdmin [email protected] ServerSignature On <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/supervisor/(.*)$ http://127.0.0.1:9001/$1 [L,P] RewriteRule ^/admin/(.*)$ http://127.0.0.1:8080/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostRoot/_vh_admin/$1 [L,P] RewriteRule ^/(.*)$ http://127.0.0.1:6081/VirtualHostBase/%{SERVER_NAME}:80/mysite.com/VirtualHostRoot/$1 [L,P] </IfModule> </VirtualHost> /supervisor is for accessing supervisor (supervisord running on port 9001) /admin is for accessing the ZMI (Zope instance running on port 8080) and the last rewrite rule is for accessing the Plone site via Varnish (Varnish running on port 6081) I'm able to go to http://www.mysite.com/supervisor/ and see the Supervisor screen, but it's missing the CSS and images, so it looks horrible. Inspecting the HTML source it appears that the CSS file is being loaded at: <link href="/stylesheets/supervisor.css" rel="stylesheet" type="text/css" /> and the images are loaded also from the root: <img alt="Supervisor status" src="/images/supervisor.gif" /> similarly, the restart and stop links are referenced from the root: <ul class="clr" id="buttons"> <li id="refresh"><a href="/index.html?action=refresh"> </a></li> <li id="restart_all"><a href="/index.html?action=restartall"> </a></li> <li id="stop_all"><a href="/index.html?action=stopall"> </a></li> </ul> so this explains why the CSS, images aren't loading and the restart/stop buttons aren't working. would it be possible to change the HTML template to use relative links, instead of referencing everything from the root? that would allow for running supervisor under an existing domain, rather than having to give supervisor its own domain as in supervisor.mysite.com thanks, Nate -- Nate Aune - [email protected] Sign up for Plone Developer training on the Amalfi Coast of Italy (5/11-12). http://plonedev-natesig.eventbrite.com _______________________________________________ Supervisor-users mailing list [email protected] http://lists.supervisord.org/mailman/listinfo/supervisor-users
