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!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'root': 0.04; 'subject:Python': 0.05; 'modify': 0.05; 'alias': 0.07; 'convention.': 0.07; 'python': 0.09; 'static': 0.13; 'apache': 0.13; 'directive': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'script?': 0.16; 'valid.': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'installation': 0.23; 'this:': 0.23; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'cgi': 0.29; 'maybe': 0.29; 'knows': 0.30; 'file': 0.32; 'html,': 0.33; 'to:addr:python-list': 0.33; 'open': 0.35; 'too.': 0.35; 'received:org': 0.36; 'message- id:@gmail.com': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'help': 0.40; 'your': 0.60; 'link': 0.60; 'remove': 0.61; "you'll": 0.62; 'is.': 0.62 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Mon, 21 Jan 2013 11:36:29 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121115 Thunderbird/10.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Forcing Python to detect DocumentRoot References: <339d9d6d-b000-4cf3-8534-375e0c44b2ca@googlegroups.com> <10ebf68d-12f9-46d6-be50-6c314500302d@googlegroups.com> <70bb8ac8-8089-4882-b8c8-a8c26fb1ffdf@googlegroups.com> In-Reply-To: <70bb8ac8-8089-4882-b8c8-a8c26fb1ffdf@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358793397 news.xs4all.nl 6978 [2001:888:2000:d::a6]:57256 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37216 On 01/21/2013 09:02 AM, Ferrous Cranus wrote: > 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. Is this link generated by your python CGI script? If so you'll have to work out some way for your python script to interact with Apache and ask it where the document root is. If this link is in static html, then you simply need to fix your html to make the link valid. Or maybe you need to modify your apache installation so that it knows where "/data" is using an alias directive in your apache config.