How to configure cookieless virtual host in Apache2?
- by xzyfer
We run over a hundred web applications (growing daily) on a LAMP stack using Apache2 on Ubuntu 10.04.
We've would like all requests to static content to be cookieless.
We host applications on many different domains, a majority of which as SaSS applications. Many of the domains host instances of the applications on sub domains, ie. myapp.example.com, myapp2.example.com myapp.otherexample.com etc..
At the moment all static content is server relative to the (sub)domain requesting it.
As far as I understand the process, I would need to setup a new domain, eg. staticexample.com.
In this case is special configuration in the virtual host for this domain required to ensure no cookies are served?
Also, would it be possible to instead use static.example.com?
In this case what configurations would I need in my virtual host for this subdomain to ensure no cookies are served?