Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'root': 0.04; 'subject:Python': 0.05; 'convention.': 0.07; 'python': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'apache': 0.13; '"python': 0.16; 'skip:/ 50': 0.16; 'file.': 0.20; 'cc:2**0': 0.23; 'this:': 0.23; 'cc:no real name:2**0': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:/ 40': 0.29; 'located': 0.31; 'file': 0.32; 'received:google.com': 0.34; 'open': 0.35; 'too.': 0.35; 'received:209.85': 0.35; 'too': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'where': 0.40; 'help': 0.40; 'remove': 0.61; 'addon': 0.84; 'skip:/ 30': 0.91 X-Received: by 10.182.160.37 with SMTP id xh5mr423617obb.41.1358784123942; Mon, 21 Jan 2013 08:02:03 -0800 (PST) Newsgroups: comp.lang.python Date: Mon, 21 Jan 2013 08:02:02 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.70.179; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <339d9d6d-b000-4cf3-8534-375e0c44b2ca@googlegroups.com> <10ebf68d-12f9-46d6-be50-6c314500302d@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.70.179 MIME-Version: 1.0 Subject: Re: Forcing Python to detect DocumentRoot From: Ferrous Cranus To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358784132 news.xs4all.nl 6988 [2001:888:2000:d::a6]:37483 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37209 Ok i see its just a convention. Can you help on this: so we need to remove 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.