Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Wrong website loaded when other requested

Reply
Thread Tools

Wrong website loaded when other requested

 
 
Joel Goldstick
Guest
Posts: n/a
 
      06-13-2013
So Nick, I am top posting because I don't think you read your replies. I
replied yesterday.

Read this line below. Read the line below. READ it. READ IT.. each
letter. READ it:

[Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]
FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd
\\u03c5\\u03c0\\u03ac\\u03c1\\
>
> u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf
> \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae
> \\u03ba\\u03b1\\u03c4\\u03ac\\u03bb\\u03bf\\u03b3\ \u03bf\\u03c2:
> '/home/nikos/public_html//home/dauwin/public_html/index.html', referer:
> http://superhost.gr/
> [/code]
>

DO YOU SEE THIS PART:
'/home/nikos/public_html//home/dauwin/public_html/index.html', referer:
http://superhost.gr/

Do you see that it prepends your nikos path the your dauwin path and file
name. It isn't replacing one with the other. Somewhere in your SFBI mess
of code you perhaps have set the nikos path as the start of a filename.
Check that out


DID YOU READ THIS? DID YOU THINK ABOUT IT. Also look up SFBI. It is a
good name for you

> [/code]
>




On Wed, Jun 12, 2013 at 4:35 PM, Joel Goldstick <(E-Mail Removed)>wrote:

>
>
>
> On Wed, Jun 12, 2013 at 1:33 PM, Νικόλαος Κούρας <(E-Mail Removed)>wrote:
>
>> ======================
>> RewriteEngine Off
>> RewriteCond %{REQUEST_FILENAME} -f
>> RewriteRule ^/?(.+\.html) /cgi-bin/metrites.py?file=%{**REQUEST_FILENAME}
>> [L,PT,QSA]
>> ======================
>>
>>
Code:
>> file = form.getvalue('file')
>> page = form.getvalue('page')
>>
>> if not page and os.path.exists( file ):
>>         # it is an html template
>>         page = file.replace( '/home/dauwin/public_html/', '' )
>> elif page or form.getvalue('show'):
>>         # it is a python script
>>         page = page..replace( '/home/dauwin/public_html/cgi-**bin/', '' )
>> else:
>>         #when everything else fails fallback
>>         page = "index.html"
>>
>> ....
>> ....
>>
>>         if page.endswith('.html'):
>>                 with open( '/home/dauwin/public_html/' + page,
>> encoding='utf-8' ) as f:
>>                         htmlpage = f.read()
>>                 htmlpage = htmlpage % (quote, music)
>>                 template = htmlpage + counter
>>         elif page.endswith('.py'):
>>                 pypage = subprocess.check_output(
>> '/home/dauwin/public_html/cgi-**bin/' + page )
>>                 pypage = pypage.decode('utf-8').**replace(
>> 'Content-type: text/html; charset=utf-8', '' )
>>                 template = pypage + counter
>>
>>         print( template )
>>
>>
>> Everything as you see point to 'dauwin' username, yet the error still
>> says:
>>
>>
Code:
>> [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]   File
>> "/home/nikos/public_html/cgi-**bin/metrites.py", line 219, in <module>,
>> referer: http://superhost.gr/
>> [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]     with open(
>> '/home/nikos/public_html/' + page, encoding='utf-8' ) as f:, referer:
>> http://superhost.gr/
>> [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]
>> FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd
>> \\u03c5\\u03c0\\u03ac\\u03c1\\**u03c7\\u03b5\\u03b9
>> \\u03c4\\u03ad\\u03c4\\u03bf\\**u03b9\\u03bf
>> \\u03b1\\u03c1\\u03c7\\u03b5\\**u03af\\u03bf \\u03ae
>> \\u03ba\\u03b1\\u03c4\\u03ac\\**u03bb\\u03bf\\u03b3\\u03bf\\**u03c2:
>> '/home/nikos/public_html//**home/dauwin/public_html/index.**html',
>> referer: http://superhost.gr/
>>
>>
>>
>> Notice that you have the file path you want concatenated to your

> /home/nikos/... stuff in the line above. Look in your code to find out
> why. Fix that. Lather, rinse, repeat
>
>> Why is pointing to /home/nikos isntead of /home/dauwin ?
>>
>> this is what a smash my head to the wall to understand.
>> --
>> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python..org/mailman/listinfo/python-list>
>>

>
>
>
> --
> Joel Goldstick
> http://joelgoldstick.com
>




--
Joel Goldstick
http://joelgoldstick.com

 
Reply With Quote
 
 
 
 
Νικόλαος Κούρας
Guest
Posts: n/a
 
      06-13-2013
On 13/6/2013 5:54 μμ, Andreas Perstinger wrote:
>
> That's not a Python problem.
>
> BTW both scripts at
> http://superhost.gr/~dauwin/metrites.py
> and at
> http://superhost.gr/~dauwin/cgi-bin/metrites.py
> show the world the passwords to your databases in plain text.


Oh my God, i'll find an httpd.conf directive ot .htaccess directive that
prohibits display of source code of cgi scripts

please tell me if you know of such a directive.
 
Reply With Quote
 
 
 
 
Νικόλαος Κούρας
Guest
Posts: n/a
 
      06-13-2013
On 13/6/2013 6:11 μμ, Chris Angelico wrote:
> On Fri, Jun 14, 2013 at 12:54 AM, Andreas Perstinger
> <(E-Mail Removed)> wrote:
>> On 13.06.2013 16:23, �������� ������ wrote:
>>>
>>> Please suggest something of why this happnes.

>>
>>
>> That's not a Python problem.
>>
>> BTW both scripts at
>> http://superhost.gr/~dauwin/metrites.py
>> and at
>> http://superhost.gr/~dauwin/cgi-bin/metrites.py
>> show the world the passwords to your databases in plain text.

>
> See, that's the kind of thing that means you can't give out even
> read-only access to your server. Does this mean anything to you Nikos?
>
> ChrisA
>

Yes it does iam researchign a solution to this as we speak.
 
Reply With Quote
 
Chris Angelico
Guest
Posts: n/a
 
      06-13-2013
On Fri, Jun 14, 2013 at 2:23 AM, <(E-Mail Removed)> wrote:
> Oh my God, i'll find an httpd.conf directive ot .htaccess directive that
> prohibits display of source code of cgi scripts
>
> please tell me if you know of such a directive.


Yes. This will majorly improve your security. It goes in your
httpd.conf or equivalent.

Listen 127.0.0.1:80

ChrisA
 
Reply With Quote
 
rusi
Guest
Posts: n/a
 
      06-13-2013
On Jun 13, 7:28*pm, Chris Angelico <(E-Mail Removed)> wrote:
> On Fri, Jun 14, 2013 at 12:23 AM, <(E-Mail Removed)> wrote:
> > Please suggest something of why this happnes.

>
> You remind me of George.
>
> http://www.chroniclesofgeorge.com/
>
> ChrisA


HA!
You are evil -- Chris!
 
Reply With Quote
 
Νικόλαος Κούρας
Guest
Posts: n/a
 
      06-13-2013
On 13/6/2013 6:35 μμ, Joel Goldstick wrote:
> [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]
> FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd
> \\u03c5\\u03c0\\u03ac\\u03c1\\
>
> u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf
> \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae
> \\u03ba\\u03b1\\u03c4\\u03ac\\u03bb\\u03bf\\u03b3\ \u03bf\\u03c2:
> '/home/nikos/public_html//home/dauwin/public_html/index.html',
> referer: http://superhost.gr/
> [/code]
>
> DO YOU SEE THIS PART:
> '/home/nikos/public_html//home/dauwin/public_html/index.html',
> referer: http://superhost.gr/
>
> Do you see that it prepends your nikos path the your dauwin path and
> file name. It isn't replacing one with the other. Somewhere in your
> SFBI mess of code you perhaps have set the nikos path as the start of a
> filename. Check that out


yes i saw your post Joel,

After research i am under the impression that i'am in need for UserDir
directive as it essentially allows you to use User Home directories as
web directories...

So after reading this:
http://centosforge.com/node/how-get-...pache-centos-6
i did this:


<IfModule !mod_ruid2.c>
UserDir public_html
</IfModule>
<IfModule mod_ruid2.c>
#UserDir disabled
UserDir "enabled *"
UserDir "disabled root"
</IfModule>



root@nikos [~]# chmod 711 /home
root@nikos [~]# chmod 711 /home/nikos
root@nikos [~]# chmod 755 /home/nikos/public_html/
root@nikos [~]# chmod o+r /home/nikos/public_html/index.html
root@nikos [~]# chmod 711 /home/dauwin
root@nikos [~]# chmod 755 /home/dauwin/public_html/
root@nikos [~]# chmod o+r /home/dauwin/public_html/index.html
root@nikos [~]#

setsebool -P httpd_enable_homedirs true
chcon -R -t httpd_sys_content_t /home/testuser/public_html
(the last one one failed though)

the i restarted Apache but the problem is still there.

===================
http://www.velocityreviews.com/forums/(E-Mail Removed) [~]# [Thu Jun 13 19:50:57 2013] [error] [client
79.103.41.173] Error in sys.excepthook:
[Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] ValueError:
underlying buffer has been detached
[Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173]
[Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] Original
exception was:
[Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] Traceback
(most recent call last):
[Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] File
"/home/nikos/public_html/cgi-bin/metrites.py", line 213, in <module>
[Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] with open(
'/home/nikos/public_html/' + page, encoding='utf-8' ) as f:
[Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173]
FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd
\\u03c5\\u03c0\\u03ac\\u03c1\\u03c7\\u03b5\\u03b9
\\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf
\\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae
\\u03ba\\u03b1\\u03c4\\u03ac\\u03bb\\u03bf\\u03b3\ \u03bf\\u03c2:
'/home/nikos/public_html//home/dauwin/public_html/index.html'
========================

 
Reply With Quote
 
Νικόλαος Κούρας
Guest
Posts: n/a
 
      06-13-2013
On 13/6/2013 7:28 μμ, Chris Angelico wrote:
> On Fri, Jun 14, 2013 at 2:23 AM, �������� ������ <(E-Mail Removed)> wrote:
>> Oh my God, i'll find an httpd.conf directive ot .htaccess directive that
>> prohibits display of source code of cgi scripts
>>
>> please tell me if you know of such a directive.

>
> Yes. This will majorly improve your security. It goes in your
> httpd.conf or equivalent.
>
> Listen 127.0.0.1:80
>
> ChrisA
>

liek iam gonna fall for that!!!

127.0.0.1 is listening only to itself
 
Reply With Quote
 
Guest
Posts: n/a
 
      06-13-2013
, 13 2013 7:52:27 .. UTC+3, :
> On 13/6/2013 6:35 , Joel Goldstick wrote:
>
> > [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]

>
> > FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd

>
> > \\u03c5\\u03c0\\u03ac\\u03c1\\

>
> >

>
> > u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf

>
> > \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae

>
> > \\u03ba\\u03b1\\u03c4\\u03ac\\u03bb\\u03bf\\u03b3\ \u03bf\\u03c2:

>
> > '/home/nikos/public_html//home/dauwin/public_html/index.html',

>
> > referer: http://superhost.gr/

>
> > [/code]

>
> >

>
> > DO YOU SEE THIS PART:

>
> > '/home/nikos/public_html//home/dauwin/public_html/index.html',

>
> > referer: http://superhost.gr/

>
> >

>
> > Do you see that it prepends your nikos path the your dauwin path and

>
> > file name. It isn't replacing one with the other. Somewhere in your

>
> > SFBI mess of code you perhaps have set the nikos path as the start of a

>
> > filename. Check that out

>
>
>
> yes i saw your post Joel,
>
>
>
> After research i am under the impression that i'am in need for UserDir
>
> directive as it essentially allows you to use User Home directories as
>
> web directories...
>
>
>
> So after reading this:
>
> http://centosforge.com/node/how-get-...pache-centos-6
>
> i did this:
>
>
>
>
>
> <IfModule !mod_ruid2.c>
>
> UserDir public_html
>
> </IfModule>
>
> <IfModule mod_ruid2.c>
>
> #UserDir disabled
>
> UserDir "enabled *"
>
> UserDir "disabled root"
>
> </IfModule>
>
>
>
>
>
>
>
> root@nikos [~]# chmod 711 /home
>
> root@nikos [~]# chmod 711 /home/nikos
>
> root@nikos [~]# chmod 755 /home/nikos/public_html/
>
> root@nikos [~]# chmod o+r /home/nikos/public_html/index.html
>
> root@nikos [~]# chmod 711 /home/dauwin
>
> root@nikos [~]# chmod 755 /home/dauwin/public_html/
>
> root@nikos [~]# chmod o+r /home/dauwin/public_html/index.html
>
> root@nikos [~]#
>
>
>
> setsebool -P httpd_enable_homedirs true
>
> chcon -R -t httpd_sys_content_t /home/testuser/public_html
>
> (the last one one failed though)
>
>
>
> the i restarted Apache but the problem is still there.
>
>
>
> ===================
>
> (E-Mail Removed) [~]# [Thu Jun 13 19:50:57 2013] [error] [client
>
> 79.103.41.173] Error in sys.excepthook:
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] ValueError:
>
> underlying buffer has been detached
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173]
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] Original
>
> exception was:
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] Traceback
>
> (most recent call last):
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] File
>
> "/home/nikos/public_html/cgi-bin/metrites.py", line 213, in <module>
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] with open(
>
> '/home/nikos/public_html/' + page, encoding='utf-8' ) as f:
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173]
>
> FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd
>
> \\u03c5\\u03c0\\u03ac\\u03c1\\u03c7\\u03b5\\u03b9
>
> \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf
>
> \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae
>
> \\u03ba\\u03b1\\u03c4\\u03ac\\u03bb\\u03bf\\u03b3\ \u03bf\\u03c2:
>
> '/home/nikos/public_html//home/dauwin/public_html/index.html'
>
> ========================


please take an overall look at my httpd.conf at http://pastebin.com/Pb3VbNC9 in case you want to examine somehting else.

Thank you very much.
 
Reply With Quote
 
Nick the Gr33k
Guest
Posts: n/a
 
      06-13-2013


Τη **μπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας
*γραψε:
> On 13/6/2013 6:35 μμ, Joel Goldstick wrote:
>
>> [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]

>
>> FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd

>
>> \\u03c5\\u03c0\\u03ac\\u03c1\\

>
>>

>
>> u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf

>
>> \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae

>
>> \\u03ba\\u03b1\\u03c4\\u03ac\\u03bb\\u03bf\\u03b3\ \u03bf\\u03c2:

>
>> '/home/nikos/public_html//home/dauwin/public_html/index.html',

>
>> referer: http://superhost.gr/

>
>> [/code]

>
>>

>
>> DO YOU SEE THIS PART:

>
>> '/home/nikos/public_html//home/dauwin/public_html/index.html',

>
>> referer: http://superhost.gr/

>
>>

>
>> Do you see that it prepends your nikos path the your dauwin path and

>
>> file name. It isn't replacing one with the other. Somewhere in your

>
>> SFBI mess of code you perhaps have set the nikos path as the start of a

>
>> filename. Check that out

>
>
>
> yes i saw your post Joel,
>
>
>
> After research i am under the impression that i'am in need for UserDir
>
> directive as it essentially allows you to use User Home directories as
>
> web directories...
>
>
>
> So after reading this:
>
>

http://centosforge.com/node/how-get-...pache-centos-6
>
> i did this:
>
>
>
>
>
> <IfModule !mod_ruid2.c>
>
> UserDir public_html
>
> </IfModule>
>
> <IfModule mod_ruid2.c>
>
> #UserDir disabled
>
> UserDir "enabled *"
>
> UserDir "disabled root"
>
> </IfModule>
>
>
>
>
>
>
>
> root@nikos [~]# chmod 711 /home
>
> root@nikos [~]# chmod 711 /home/nikos
>
> root@nikos [~]# chmod 755 /home/nikos/public_html/
>
> root@nikos [~]# chmod o+r /home/nikos/public_html/index.html
>
> root@nikos [~]# chmod 711 /home/dauwin
>
> root@nikos [~]# chmod 755 /home/dauwin/public_html/
>
> root@nikos [~]# chmod o+r /home/dauwin/public_html/index.html
>
> root@nikos [~]#
>
>
>
> setsebool -P httpd_enable_homedirs true
>
> chcon -R -t httpd_sys_content_t /home/testuser/public_html
>
> (the last one one failed though)
>
>
>
> the i restarted Apache but the problem is still there.
>
>
>
> ===================
>
> (E-Mail Removed) [~]# [Thu Jun 13 19:50:57 2013] [error] [client
>
> 79.103.41.173] Error in sys.excepthook:
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] ValueError:
>
> underlying buffer has been detached
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173]
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] Original
>
> exception was:
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] Traceback
>
> (most recent call last):
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] File
>
> "/home/nikos/public_html/cgi-bin/metrites.py", line 213, in <module>
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] with open(
>
> '/home/nikos/public_html/' + page, encoding='utf-8' ) as f:
>
> [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173]
>
> FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd
>
> \\u03c5\\u03c0\\u03ac\\u03c1\\u03c7\\u03b5\\u03b9
>
> \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf
>
> \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae
>
> \\u03ba\\u03b1\\u03c4\\u03ac\\u03bb\\u03bf\\u03b3\ \u03bf\\u03c2:
>
> '/home/nikos/public_html//home/dauwin/public_html/index.html'
>
> ========================


please take an overall look at my httpd.conf at
http://pastebin.com/Pb3VbNC9 in case you want to examine somehting else.

Thank you very much.


--
What is now proved was at first only imagined!
 
Reply With Quote
 
Joel Goldstick
Guest
Posts: n/a
 
      06-13-2013
On Thu, Jun 13, 2013 at 2:10 PM, Nick the Gr33k <(E-Mail Removed)>wrote:

>
>
> Τη **μπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας
> *γραψε:
> > On 13/6/2013 6:35 μμ, Joel Goldstick wrote:
> >
> >> [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]

> >
> >> FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd

> >
> >> \\u03c5\\u03c0\\u03ac\\u03c1\\

> >
> >>

> >
> >> u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\**u03b9\\u03bf

> >
> >> \\u03b1\\u03c1\\u03c7\\u03b5\\**u03af\\u03bf \\u03ae

> >
> >> \\u03ba\\u03b1\\u03c4\\u03ac\\**u03bb\\u03bf\\u03b 3\\u03bf\\**

> u03c2:
> >
> >> '/home/nikos/public_html//**home/dauwin/public_html/index.**html',

> >
> >> referer: http://superhost.gr/

> >
> >> [/code]

> >
> >>

> >
> >> DO YOU SEE THIS PART:

> >
> >> '/home/nikos/public_html//**home/dauwin/public_html/index.**html',

> >
> >> referer: http://superhost.gr/

> >
> >>

> >
> >> Do you see that it prepends your nikos path the your dauwin path and

> >
> >> file name. It isn't replacing one with the other. Somewhere in your

> >
> >> SFBI mess of code you perhaps have set the nikos path as the start of a

> >
> >> filename. Check that out

> >
> >
> >
> > yes i saw your post Joel,
> >
> >
> >
> > After research i am under the impression that i'am in need for UserDir
> >
> > directive as it essentially allows you to use User Home directories as
> >
> > web directories...
> >
> >
> >
> > So after reading this:
> >
> > http://centosforge.com/node/**how-ge...er-specific-**

> publichtml-working-apache-**centos-6<http://centosforge.com/node/how-get-userdir-user-specific-publichtml-working-apache-centos-6>
> >
> > i did this:
> >
> >
> >
> >
> >
> > <IfModule !mod_ruid2.c>
> >
> > UserDir public_html
> >
> > </IfModule>
> >
> > <IfModule mod_ruid2.c>
> >
> > #UserDir disabled
> >
> > UserDir "enabled *"
> >
> > UserDir "disabled root"
> >
> > </IfModule>
> >
> >
> >
> >
> >
> >
> >
> > root@nikos [~]# chmod 711 /home
> >
> > root@nikos [~]# chmod 711 /home/nikos
> >
> > root@nikos [~]# chmod 755 /home/nikos/public_html/
> >
> > root@nikos [~]# chmod o+r /home/nikos/public_html/index.**html
> >
> > root@nikos [~]# chmod 711 /home/dauwin
> >
> > root@nikos [~]# chmod 755 /home/dauwin/public_html/
> >
> > root@nikos [~]# chmod o+r /home/dauwin/public_html/**index.html
> >
> > root@nikos [~]#
> >
> >
> >
> > setsebool -P httpd_enable_homedirs true
> >
> > chcon -R -t httpd_sys_content_t /home/testuser/public_html
> >
> > (the last one one failed though)
> >
> >
> >
> > the i restarted Apache but the problem is still there.
> >
> >
> >
> > ===================
> >
> > (E-Mail Removed) [~]# [Thu Jun 13 19:50:57 2013] [error] [client
> >
> > 79.103.41.173] Error in sys.excepthook:
> >
> > [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] ValueError:
> >
> > underlying buffer has been detached
> >
> > [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173]
> >
> > [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] Original
> >
> > exception was:
> >
> > [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] Traceback
> >
> > (most recent call last):
> >
> > [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] File

>
> >
> > "/home/nikos/public_html/cgi-**bin/metrites.py", line 213, in <module>
> >
> > [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173] with open(

>
> >
> > '/home/nikos/public_html/' + page, encoding='utf-8' ) as f:
> >
> > [Thu Jun 13 19:50:57 2013] [error] [client 79.103.41.173]

>
> >
> > FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd
> >
> > \\u03c5\\u03c0\\u03ac\\u03c1\\**u03c7\\u03b5\\u03b 9
> >
> > \\u03c4\\u03ad\\u03c4\\u03bf\\**u03b9\\u03bf
> >
> > \\u03b1\\u03c1\\u03c7\\u03b5\\**u03af\\u03bf \\u03ae
> >
> > \\u03ba\\u03b1\\u03c4\\u03ac\\**u03bb\\u03bf\\u03b 3\\u03bf\\**u03c2:
> >
> > '/home/nikos/public_html//**home/dauwin/public_html/index.**html'

>


SECOND TIME:

I'm not an apache wizard, and I'm too self important to really look through
all of your code. i don't getting germs. But, once again:

your code is not finding a file named this:
'/home/nikos/public_html//home/dauwin/public_html/index.html'

The first part of this file path is:'/home/nikos/public_html

After that are TWO forward slashes which remind me of http:// and following
that is the path you want. so, you need to put new batteries in your
brain, look through your mess and figure out what creates the wrong file
name for you

> >
> > ========================

>
> please take an overall look at my httpd.conf at
> http://pastebin.com/Pb3VbNC9 in case you want to examine somehting else.
>
> Thank you very much.
>
>
> --
> What is now proved was at first only imagined!
> --
> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list>
>




--
Joel Goldstick
http://joelgoldstick.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When did the bool type make it into the language? Christopher Pisz C++ 13 05-05-2013 03:34 PM
"python.exe has stopped working" when os.execl() runs on Windows 7 cormogram@gmail.com Python 13 05-02-2013 12:50 PM
Unwanted window spawns when using Tkinter with multiprocessing. alternative00@rocketmail.com Python 14 04-30-2013 12:31 PM
Warning in python file when i m using pychecker. Avnesh Shakya Python 2 04-26-2013 06:57 AM
when I read gzipped response from web-servers, GzipReader returnssometimes 'invalid compressed data -- crc error' henry.jykim@gmail.com Ruby 0 04-08-2013 03:51 PM



Advertisments