<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=860591018-12082007>Good afternoon - I
am working on a Catalyst application that serves dynamic website content for
multiple sites, and I've run into some difficulty about static content.
Each website has unique static content (images, css, rss) and I am trying to
serve that static content from the site's unique directory. I have found
lots of documentation on how to serve all static content from a single
directory, but not much on a servername-dependent directory. For
example:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=860591018-12082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=860591018-12082007>Request: <A
href="http://www.timjohnson.com/css/global.css">http://www.timjohnson.com/css/global.css</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=860591018-12082007>Should be served
with:
/var/www/html/sites/timjohnson.com/css/global.css</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=860591018-12082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=860591018-12082007>I came close to
making this happen just using the Alias directive in httpd.conf, but I couldn't
get that to accept a variable, %{SERVER_NAME}, in it. If someone has a
solution from the Apache side, that's fine but I suspect that it might be easier
to do this with <FONT face="Times New Roman"
size=3>Catalyst::Plugin::Static::Simple<FONT face=Arial size=2>, though I again
have not figured out how to tell it to use a variable name when it creates the
path the request is supposed to be mapped to. I am sending this to the
Catalyst list because I suspect it might be something other people have faced
before using Catalyst.</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=860591018-12082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=860591018-12082007>My setup is a recent
version of Catalyst running on Apache 2.2 with mod_perl. Any
suggestions would be quite welcome - thank you very
much.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=860591018-12082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=860591018-12082007></SPAN></FONT> </DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="FONT-FAMILY: Arial"><BR>Peter
Lytle<BR>_________________________________________________________<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></P>
<TABLE class=MsoNormalTable
style="WIDTH: 194.25pt; mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in"
cellSpacing=0 cellPadding=0 width=259 border=0>
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; WIDTH: 191.25pt; PADDING-TOP: 0in"
width=255>
<P class=MsoNormal><B><SPAN style="COLOR: blue; FONT-FAMILY: Arial">Blue
Campaign Solutions<o:p></o:p></SPAN></B></P></TD></TR>
<TR style="mso-yfti-irow: 1">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P class=MsoNormal><STRONG><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: Arial">Peter
Lytle</SPAN></STRONG><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: Arial">,
Principal<o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 2">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P class=MsoNormal><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><A
href="mailto:pete@bluecampaigns.com">pete@bluecampaigns.com
</A><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 3">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P class=MsoNormal><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><A
href="http://www.bluecampaigns.com/">www.bluecampaigns.com</A><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 4">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P><STRONG><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Phone:</SPAN></STRONG><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"> 202.742.2737<o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 5">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P class=MsoNormal><STRONG><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Cell:</SPAN></STRONG><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">
614.893.4603<o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 6">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P class=MsoNormal><STRONG><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Fax:</SPAN></STRONG><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">
866.727.1883<o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 7">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P class=MsoNormal><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><A
href="http://www.bluecampaigns.com/"><SPAN
style="TEXT-DECORATION: none; text-underline: none"><IMG id=_x0000_i1025
height=129 src="http://www.bluecampaigns.com/images/email-sig.gif"
width=400 border=0></SPAN></A><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 8">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P class=MsoNormal><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 9; mso-yfti-lastrow: yes">
<TD
style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 0in">
<P class=MsoNormal><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE>
<P><SPAN style="FONT-FAMILY: Arial"> <o:p></o:p></SPAN></P></DIV>
<DIV> </DIV></BODY></HTML>