How to configure cookieless virtual host in Apache2?
Posted
by
xzyfer
on Server Fault
See other posts from Server Fault
or by xzyfer
Published on 2011-02-13T04:07:43Z
Indexed on
2011/02/13
7:26 UTC
Read the original article
Hit count: 372
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?
© Server Fault or respective owner