Forcing Python to detect DocumentRoot

Ferrous Cranus nikos.gr33k at gmail.com
Mon Jan 21 11:02:02 EST 2013


Ok i see its just a convention.
Can you help on this:

so we need to remove <img src="/data/images/mail.png">  since the apache cant see to open it and let Python open it which we know it can because it has access to any system file the user has access too. 

httpd cannot open this file because the location of the image is past the addon domain's Document Root. 

/home/nikos/public_html/cafebar-idea.gr = Addon's Domain Document Root 

/home/nikos/public_html/data/images/mail.png = where the image file is located 

and the python scipt is on: 

/home/nikos/public_html/cafebar-idea.gr/cgi-bin/counter.py 

So if a python script can open any file the user has access too then we need a "python way" of opening this file. 



More information about the Python-list mailing list