Re: P3P policy for each virtual host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So following would show the privacy report using the file
/w3c/a/p3p.xml file  for a.com and  /w3c/b/p3p.xml  for b.com ?

<VirtualHost *:80>
   ServerName a.com
   CustomLog "|/home/apache/bin/rotatelogs
/home/apache/logs/access_log.a.com 300"
   ErrorLog /home/apache/logs/error_log.a.com

   <Location />
    Header set P3P "CP=\"NOI DSP COR CURa ADMa DEVa IVAo OUR BUS UNI
COM NAV OTC\", policyref=\"/w3c/a/p3p.xml\""
   </Location>

</VirtualHost>



<VirtualHost *:80>
   ServerName b.com
   CustomLog "|/home/apache/bin/rotatelogs
/home/apache/logs/access_log.b.com 300"
   ErrorLog /home/apache/logs/error_log.b.com

   <Location />
    Header set P3P "CP=\"NOI DSP COR CURa ADMa DEVa IVAo OUR BUS UNI
COM NAV OTC\", policyref=\"/w3c/b/p3p.xml\""
   </Location>

</VirtualHost>

Thank you.

-Paras


On Thu, May 14, 2009 at 7:05 PM, Tom Evans <tevans.uk@xxxxxxxxxxxxxx> wrote:
> On Thu, 2009-05-14 at 16:58 +0530, Paras Fadte wrote:
>> Hi,
>>
>> Is it possible to set different P3P policy for each of the virtual
>> hosts defined in Apache ?
>>
>> Thank you.
>>
>> -Paras
>>
>
> Yes.
>
> P3P is set either by including the info in an abbreviated form in a
> header, or by including a header indicating where the policy file is
> located, or by accessing the policy file in the ''well known location''
> '/w3c/p3p.xml'.
>
> You can control headers using mod_headers, and you can control what
> content is available in what locations in a variety of means, so there
> are a variety of choices.
>
>
> Tom
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux