Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Static content handler question

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


nhytro at googlemail

Feb 27, 2010, 1:41 PM

Post #1 of 3 (228 views)
Permalink
Static content handler question

I have 2 information sources served on different ports using the
reverse -proxy method. I have started the process from the folder "/
web-data" and not /var/www. The static files also live in the /web-
data folder. My questions are:


1. Should I set the final flag to each folder under media as below

/web-data/media/css final
/web-data/media/js final
/web-data/media/images final

or would a single line like :

/web-data/media

suffice?

2. Why do each of my virtual hosts show "2 domains" instead of one? I
have only set the virtual host to answer requests to the regex
*mydomain.com


Thanks

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


alvaro at octality

Feb 27, 2010, 2:19 PM

Post #2 of 3 (210 views)
Permalink
Re: Static content handler question [In reply to]

On 27/02/2010, at 22:41, Voltron wrote:

> I have 2 information sources served on different ports using the
> reverse -proxy method. I have started the process from the folder "/
> web-data" and not /var/www. The static files also live in the /web-
> data folder. My questions are:
>
> 1. Should I set the final flag to each folder under media as below
>
> /web-data/media/css final
> /web-data/media/js final
> /web-data/media/images final
>
> or would a single line like :
>
> /web-data/media
>
> suffice?

Setting /web-data/media to use the "Static content" handler would be enough. If you do not want to apply any further rules (in the Behavior rules list) to the requests targeting that directory, just configure the rule as final. It will save a few evaluation and will make you server slightly faster. Odds are you want the rule to be 'final'.

> 2. Why do each of my virtual hosts show "2 domains" instead of one? I
> have only set the virtual host to answer requests to the regex
> *mydomain.com

The virtual server's nickname is also used as a target name.

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


nhytro at googlemail

Mar 2, 2010, 12:48 AM

Post #3 of 3 (221 views)
Permalink
Re: Static content handler question [In reply to]

Thanks!

On Feb 27, 11:19 pm, Alvaro Lopez Ortega <alv...@octality.com> wrote:
> On 27/02/2010, at 22:41, Voltron wrote:
>
>
>
> > I have 2 information sources served on different ports using the
> > reverse -proxy method. I have started the process from the folder "/
> > web-data" and not /var/www. The static files also live in the /web-
> > data folder. My questions are:
>
> > 1. Should I set the final flag to each folder under media as below
>
> > /web-data/media/css                                 final
> > /web-data/media/js                                  final
> > /web-data/media/images                              final
>
> > or would a single line like :
>
> > /web-data/media
>
> > suffice?
>
> Setting /web-data/media to use the "Static content" handler would be enough. If you do not want to apply any further rules (in the Behavior rules list) to the requests targeting that directory, just configure the rule as final. It will save a few evaluation and will make you server slightly faster. Odds are you want the rule to be 'final'.
>
> > 2. Why do each of my virtual hosts show "2 domains" instead of one? I
> > have only set the virtual host to answer requests to the regex
> > *mydomain.com
>
> The virtual server's nickname is also used as a target name.
>
> --
> Octalityhttp://www.octality.com/
>
> _______________________________________________
> Cherokee mailing list
> Chero...@lists.octality.comhttp://lists.octality.com/listinfo/cherokee
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.