I'm trying to get P3P to work with web2py. Under Ubuntu and Apache,
web2py is configured the standard way:

<VirtualHost 67.213.70.251:80>
  WSGIDaemonProcess web2py user=www-data group=www-data
  WSGIProcessGroup web2py
  WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py

  <Directory /home/www-data/web2py>
    AllowOverride None
    Order Allow,Deny
    Deny from all
    <Files wsgihandler.py>
      Allow from all
    </Files>
  </Directory>

  AliasMatch ^/([^/]+)/static/(.*) \
           /home/www-data/web2py/applications/$1/static/$2
  <Directory /home/www-data/web2py/applications/*/static/>
    Options -Indexes
    Order Allow,Deny
    Allow from all
  </Directory>

  <Location /admin>
  Deny from all
  </Location>

  <LocationMatch ^/([^/]+)/appadmin>
  Deny from all
  </LocationMatch>

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log
</VirtualHost>

I'm using the P3P Validator:

http://www.w3.org/P3P/validator.html

It insists on looking for the policy reference file here:

http://67.213.70.251/w3c/p3p.xml

So I'm trying to create the /w3c directory where the P3P Validator can
find it. But no matter where I put the directory, it just won't find
it (eg, /home/www-data/web2py, /home/www-data/web2py/applications, /
home/www-data/web2py/applications/welcome, /home/www-data/web2py/
applications/welcome/static).

So, the question is:  Where the heck is the "root" for http://67.213.70.251/
???

Thanks,
Richard

Reply via email to