[Catalyst] OT Apache question

Jesse Sheidlower jester at panix.com
Fri Nov 28 03:30:29 GMT 2008


On Thu, Nov 27, 2008 at 07:10:20PM -0800, J. Shirley wrote:
> On Thu, Nov 27, 2008 at 6:45 PM, Jesse Sheidlower <jester at panix.com> wrote:

[Details of unbelievably n00bish Apache config question]

> > this obviously won't work because /Incomings/static isn't in
> > fact under my document root, it's in the filesystem at
> > /usr/local/www/modules/Incomings/root/static/. Trying this
> > just gives me 404's for all of the static stuff (CSS, images,
> > JS).
> >
> > How do I configure Apache to serve these files, without
> > reorganizing what is by now a rather complicated directory
> > structure?

[...]

> If you just add in an alias, it should do the trick.  You'll also have
> to instruct Apache on how to handle the directory, iirc.  Something
> similar to this should do the trick (in addition to setting the proper
> handler, as you have done above):
> 
> Alias "/incoming/static" /real/path/on/disk/to/incoming/static
> <Directory /real/path/on/disk/to/incoming/static>
>     ....
> </Directory>

Many thanks to all who responded so quickly to a question I
should have thought about more thoroughly myself, vastly
sooner. The Alias option worked fine, though with the addition
of a Directory block for the filesystem giving "allow from
all" access to its contents.

Is it worth putting this into the C::P::Static::Simple docs,
or other places where we talk about Apache configs? I will
quite obviously volunteer for the task, if people don't think
it's OT or too basic to mention in Cat docs.

Jesse



More information about the Catalyst mailing list