Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'configure': 0.04; 'subject:Python': 0.05; 'works.': 0.07; 'python': 0.09; 'received :mail-vc0-f174.google.com': 0.09; 'cc:addr:python-list': 0.10; 'googling': 0.16; 'wsgi': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'email addr:gmail.com>': 0.20; 'cc:2**0': 0.23; '>': 0.23; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'run': 0.28; 'cgi': 0.29; 'mod': 0.29; 'received:209.85.220.174': 0.29; 'skip:/ 40': 0.29; 'url:mailman': 0.29; "skip:' 10": 0.30; 'fri,': 0.30; 'located': 0.31; '(and': 0.32; 'url:python': 0.32; 'file': 0.32; "skip:' 20": 0.32; 'url:listinfo': 0.32; "can't": 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'page': 0.38; 'help': 0.40; 'url:mail': 0.40; '8bit%:95': 0.61; 'levels': 0.66; '8bit%:100': 0.70; '8bit%:92': 0.70; '2013': 0.84; 'addon': 0.84; 'joel': 0.91; 'to:none': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:cc:content-type; bh=LuNmWVLdR7K0VCAq3Z7LfWd5EphASCcBjlXVV0/nDFE=; b=dQtfYiQh6PuTlnbCLrNuhsCPA6hMd7d2b07lzMBS7WKnwv8/JQtJxUiknaUuxMtpw6 YQkk+Ic+7ZTQVJ/3m/RwFJga2LeO2dVSsKzM9VjFVFkq+ow1QjbqdNWUDKxJ6V2kipyx t67oOmE5/RkkartitYz9dnH5gKRcJhI4SI1mcQIS2uvYhGjp1dQFV/BVg+wUJbxRJzOI EUIBjRQdAITx1ANywE/vNRvDc7FZddXoeTWxJyJCnSljWnjIFGsCZb3VgddbyH8wtKbA DOQxruWkcDFb5L63J04IerLMo3A+kTCMgcA0QOIvSk8jlO0Lr5a1ltnLHzqWpTw6G1q/ 6VKg== MIME-Version: 1.0 X-Received: by 10.52.175.163 with SMTP id cb3mr9446683vdc.76.1358536303723; Fri, 18 Jan 2013 11:11:43 -0800 (PST) In-Reply-To: <2bf766db-ffcd-4a7f-8e08-6e3400618e78@googlegroups.com> References: <339d9d6d-b000-4cf3-8534-375e0c44b2ca@googlegroups.com> <10ebf68d-12f9-46d6-be50-6c314500302d@googlegroups.com> <2bf766db-ffcd-4a7f-8e08-6e3400618e78@googlegroups.com> Date: Fri, 18 Jan 2013 14:11:43 -0500 Subject: Re: Forcing Python to detect DocumentRoot From: Joel Goldstick Cc: "python-list@python.org" Content-Type: multipart/alternative; boundary=bcaec517a9c2cc456b04d394e108 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: 80 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358536713 news.xs4all.nl 6942 [2001:888:2000:d::a6]:61000 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37022 --bcaec517a9c2cc456b04d394e108 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Jan 18, 2013 at 1:58 PM, Ferrous Cranus wrot= e: > =CE=A4=CE=B7 =CE=A0=CE=B1=CF=81=CE=B1=CF=83=CE=BA=CE=B5=CF=85=CE=AE, 18 = =CE=99=CE=B1=CE=BD=CE=BF=CF=85=CE=B1=CF=81=CE=AF=CE=BF=CF=85 2013 3:28:10 = =CE=BC.=CE=BC. UTC+2, =CE=BF =CF=87=CF=81=CE=AE=CF=83=CF=84=CE=B7=CF=82 Joe= l > Goldstick =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > > > DocumentRoot =3D os.environ['HOME'] + 'public_html' > > Yes, iam using this and it works. > One last thing: > > my python script file is located at > /home/nikos/public_html/addon_domain/cgi-bin/ > > How python is able to run the following statement? > > f =3D open( '/home/nikos/public_html/' + page ) > > which is clearly levels up of addon domain's DocumentRoot? > -- > http://mail.python.org/mailman/listinfo/python-list > My website experience with python has been using mod wsgi (and django), not cgi. I can't help you with how to configure cgi, but googling python cgi might help --=20 Joel Goldstick http://joelgoldstick.com --bcaec517a9c2cc456b04d394e108 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Fri, Jan 18, 2013 at 1:58 PM, Ferrous Cranus &= lt;nikos.gr33k@g= mail.com> wrote:
=CE=A4=CE=B7 =CE=A0=CE=B1=CF=81=CE=B1=CF=83= =CE=BA=CE=B5=CF=85=CE=AE, 18 =CE=99=CE=B1=CE=BD=CE=BF=CF=85=CE=B1=CF=81=CE= =AF=CE=BF=CF=85 2013 3:28:10 =CE=BC.=CE=BC. UTC+2, =CE=BF =CF=87=CF=81=CE= =AE=CF=83=CF=84=CE=B7=CF=82 Joel Goldstick =CE=AD=CE=B3=CF=81=CE=B1=CF=88= =CE=B5:

> DocumentRoot =3D os.environ['HOME'] + 'public_html'
Yes, iam using this and it works.
One last thing:

my python script file is located at /home/nikos/public_html/addon_domain/cg= i-bin/

How python is able to run the following statement?

f =3D open( '/home/nikos/public_html/' + page )

which is clearly levels up of addon domain's DocumentRoot?
--
http://mail.python.org/mailman/listinfo/python-list

My we= bsite experience with python has been using mod wsgi (and django), not cgi.= =C2=A0 I can't help you with how to configure cgi, but googling python = cgi might help

--
--bcaec517a9c2cc456b04d394e108--