Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k

On 14/6/2013 9:45 μμ, Mark Lawrence wrote:

On 14/06/2013 17:46, Mark Lawrence wrote:


Sure, just give me your password.



He actually offered to do just this!!!  How stupid can you get?  I'm so
fed up with his behaviour that I've emailed the Greek Embassy in London
pointing out what he's up to.  I've requested that someone looks at his
activities and decides whether or not Greek law has been broken by him
risking his clients' data.  So Ferrous Cranus, if you feel the weight of
the law landing on your shoulders, please *DON'T* blame me, just look in
the mirror and you'll find the real culprit.


i did not offer you my password for real.
I said that if you state here in the list in front of all that you will 
actually try to solve whats wrong with files.py then i will you the 
password, which i knew you wouldn't state such a thing.



--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Mark Lawrence

On 14/06/2013 17:46, Mark Lawrence wrote:


Sure, just give me your password.



He actually offered to do just this!!!  How stupid can you get?  I'm so 
fed up with his behaviour that I've emailed the Greek Embassy in London 
pointing out what he's up to.  I've requested that someone looks at his 
activities and decides whether or not Greek law has been broken by him 
risking his clients' data.  So Ferrous Cranus, if you feel the weight of 
the law landing on your shoulders, please *DON'T* blame me, just look in 
the mirror and you'll find the real culprit.


--
"Steve is going for the pink ball - and for those of you who are 
watching in black and white, the pink is next to the green." Snooker 
commentator 'Whispering' Ted Lowe.


Mark Lawrence

--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Mark Lawrence

On 14/06/2013 17:22, Nick the Gr33k wrote:

On 14/6/2013 7:15 μμ, Steven D'Aprano wrote:

On Fri, 14 Jun 2013 18:37:50 +0300, Nick the Gr33k wrote:


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.


PLEASE SUGGEST SOMETHING!


Don't shout, it's rude. We're not your servants.

This is not a http.conf group, this is a Python group. The only
suggestion I have is, find a forum that discusses web config and ask
there.




i did, the problem couldn't resolved there either.

Can you at least help with the files.py ?

you've provided code there that i utilized and alter a bit but the files
aren't showing.
can you help me run files.py successfully?



Sure, just give me your password.

--
"Steve is going for the pink ball - and for those of you who are 
watching in black and white, the pink is next to the green." Snooker 
commentator 'Whispering' Ted Lowe.


Mark Lawrence

--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k

On 14/6/2013 7:15 μμ, Steven D'Aprano wrote:

On Fri, 14 Jun 2013 18:37:50 +0300, Nick the Gr33k wrote:


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.


PLEASE SUGGEST SOMETHING!


Don't shout, it's rude. We're not your servants.

This is not a http.conf group, this is a Python group. The only
suggestion I have is, find a forum that discusses web config and ask
there.




i did, the problem couldn't resolved there either.

Can you at least help with the files.py ?

you've provided code there that i utilized and alter a bit but the files 
aren't showing.

can you help me run files.py successfully?

--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Steven D'Aprano
On Fri, 14 Jun 2013 18:37:50 +0300, Nick the Gr33k wrote:

>> 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.
>>
> PLEASE SUGGEST SOMETHING!

Don't shout, it's rude. We're not your servants.

This is not a http.conf group, this is a Python group. The only 
suggestion I have is, find a forum that discusses web config and ask 
there.



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread rusi
On Jun 14, 8:37 pm, Nick the Gr33k  wrote:
>
> PLEASE SUGGEST SOMETHING!

A lollipop maybe?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k

On 13/6/2013 9:04 μμ, Νικόλαος Κούρας 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\\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-userdir-user-specific-publichtml-working-apache-centos-6

i did this:







UserDir public_html





#UserDir disabled

UserDir "enabled *"

UserDir "disabled root"









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.



===

ni...@superhost.gr [~]# [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 

[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.


PLEASE SUGGEST SOMETHING!

--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Grant Edwards
On 2013-06-14, Nick the Gr33k  wrote:
> On 13/6/2013 10:31 , Grant Edwards wrote:
>> On 2013-06-13, Nick the Gr33k  wrote:
>>> On 13/6/2013 9:37 , Andreas Perstinger wrote:
 On 13.06.2013 20:10, Nick the Gr33k wrote:
 [nothing new]

 Could you please stop spamming the whole internet with your problems.
 Not only that you've posted two similar offtopic messages within only 6
 minutes to this list, you've also crossposted to alt.os.linux (where it
 is offtopic too) and to the forum at devshed.com (at least you've found
 the right subforum there).

 Thank you very much!
>>>
>>> Andrea i need to fix this my friend.
>>
>> Then shut up, stop bothering us, and fix it.
>
> I would, if i knew how to do it.
>
> And surely i'm not bothering you, since you never care to reply for 
> anything i ask.

This newsgroup/list has been completely taken over by threads you 
start asking the same questions and then refusing to read the answers,
try the suggested solutions, or read the references you're given.

> And if you do not like my posts, just don't read them.

I _try_ not to read them.  But your constantly changing e-mail
addresses and your constant creation of new (and equally futile)
threads makes it pretty difficult to avoid...

-- 
Grant Edwards   grant.b.edwardsYow! Where do your SOCKS
  at   go when you lose them in
  gmail.comth' WASHER?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Mark Lawrence

On 13/06/2013 15:28, Chris Angelico wrote:

On Fri, Jun 14, 2013 at 12:23 AM, Νικόλαος Κούρας  wrote:

Please suggest something of why this happnes.


You remind me of George.

http://www.chroniclesofgeorge.com/

ChrisA



George reminds me of the late Joyce Grenfell.  The OP reminds me of 
Monty Python's Matching Tie and Handerchief, the record's stuck, the 
record's stuck, the record's stuck...


--
"Steve is going for the pink ball - and for those of you who are 
watching in black and white, the pink is next to the green." Snooker 
commentator 'Whispering' Ted Lowe.


Mark Lawrence

--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k

On 13/6/2013 9:28 μμ, Joel Goldstick wrote:



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


Hello Joel and Good Day, here are the virtual host for you to see.

VirtualHost 82.211.30.133:82>
ServerName dauwin.gr
ServerAlias www.dauwin.gr
DocumentRoot /home/dauwin/public_html
ServerAdmin webmas...@dauwin.gr
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/dauwin.gr combined
CustomLog /usr/local/apache/domlogs/dauwin.gr-bytes_log "%{%s}t %I 
.\n%{%s}t %O ."

## User dauwin # Needed for Cpanel::ApacheConf
UserDir enabled dauwin

suPHP_UserGroup dauwin dauwin



SuexecUserGroup dauwin dauwin



RMode config
RUidGid dauwin dauwin

ScriptAlias /cgi-bin/ /home/dauwin/public_html/cgi-bin/


# To customize this VirtualHost use an include file at the 
following location
# Include 
"/usr/local/apache/conf/userdata/std/2/dauwin/dauwin.gr/*.conf"





Your superhost.gr domain is setup to use the following
Code:

ServerName superhost.gr
ServerAlias www.superhost.gr
DocumentRoot /home/nikos/public_html
ServerAdmin supp...@superhost.gr
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/superhost.gr combined
CustomLog /usr/local/apache/domlogs/superhost.gr-bytes_log "%{%s}t 
%I .\n%{%s}t %O ."

## User nikos # Needed for Cpanel::ApacheConf
UserDir enabled nikos

suPHP_UserGroup nikos nikos



SuexecUserGroup nikos nikos



RMode config
RUidGid nikos nikos

ScriptAlias /cgi-bin/ /home/nikos/public_html/cgi-bin/


# To customize this VirtualHost use an include file at the 
following location
# Include 
"/usr/local/apache/conf/userdata/std/2/nikos/superhost.gr/*.conf"






Yes, if in fact we have registered the domain "dauwin.gr" there would be 
no problem, since all web urls would be translated into correct file paths.


But see, we didn't buy dauwin.gr domain and all we have to access the 
dauwin website is http://superhost.gr/~dauwwin way to do it.


Please tell me there is still some possible way for when:

'http://superhost.gr/~dauwin' is being browsed for the 
'/home/dauwin/public_html' to be associated with.


So now, what?

--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 4:14 PM, Nick the Gr33k  wrote:
> And surely i'm not bothering you, since you never care to reply for anything
> i ask.

Non sequitur.

> And if you do not like my posts, just don't read them.

Be careful what you wish for.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k

On 13/6/2013 10:31 μμ, Grant Edwards wrote:

On 2013-06-13, Nick the Gr33k  wrote:

On 13/6/2013 9:37 , Andreas Perstinger wrote:

On 13.06.2013 20:10, Nick the Gr33k wrote:
[nothing new]

Could you please stop spamming the whole internet with your problems.
Not only that you've posted two similar offtopic messages within only 6
minutes to this list, you've also crossposted to alt.os.linux (where it
is offtopic too) and to the forum at devshed.com (at least you've found
the right subforum there).

Thank you very much!


Andrea i need to fix this my friend.


Then shut up, stop bothering us, and fix it.


I would, if i knew how to do it.

And surely i'm not bothering you, since you never care to reply for 
anything i ask.


And if you do not like my posts, just don't read them.


--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Grant Edwards
On 2013-06-13, Nick the Gr33k  wrote:
> On 13/6/2013 9:37 , Andreas Perstinger wrote:
>> On 13.06.2013 20:10, Nick the Gr33k wrote:
>> [nothing new]
>>
>> Could you please stop spamming the whole internet with your problems.
>> Not only that you've posted two similar offtopic messages within only 6
>> minutes to this list, you've also crossposted to alt.os.linux (where it
>> is offtopic too) and to the forum at devshed.com (at least you've found
>> the right subforum there).
>>
>> Thank you very much!
>
> Andrea i need to fix this my friend.

Then shut up, stop bothering us, and fix it.

-- 
Grant Edwards   grant.b.edwardsYow! I'm into SOFTWARE!
  at   
  gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k

On 13/6/2013 9:37 μμ, Andreas Perstinger wrote:

On 13.06.2013 20:10, Nick the Gr33k wrote:
[nothing new]

Could you please stop spamming the whole internet with your problems.
Not only that you've posted two similar offtopic messages within only 6
minutes to this list, you've also crossposted to alt.os.linux (where it
is offtopic too) and to the forum at devshed.com (at least you've found
the right subforum there).

Thank you very much!


Andrea i need to fix this my friend.
I canoot relax or get a good night sleep until this and the files.py 
issue have been fixed.



--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k

On 13/6/2013 9:28 μμ, Joel Goldstick wrote:




On Thu, Jun 13, 2013 at 2:10 PM, Nick the Gr33k mailto:supp...@superhost.gr>> 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\\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-userdir-user-specific-__publichtml-working-apache-__centos-6


 >
 > i did this:
 >
 >
 >
 >
 >
 > 
 >
 > UserDir public_html
 >
 > 
 >
 > 
 >
 > #UserDir disabled
 >
 > UserDir "enabled *"
 >
 > UserDir "disabled root"
 >
 > 
 >
 >
 >
 >
 >
 >
 >
 > 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.
 >
 >
 >
 > ===
 >
 > ni...@superhost.gr  [~]# [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

 >
 > [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'


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


Well, sin

Re: Wrong website loaded when other requested

2013-06-13 Thread Andreas Perstinger

On 13.06.2013 20:10, Nick the Gr33k wrote:
[nothing new]

Could you please stop spamming the whole internet with your problems.
Not only that you've posted two similar offtopic messages within only 6 
minutes to this list, you've also crossposted to alt.os.linux (where it 
is offtopic too) and to the forum at devshed.com (at least you've found 
the right subforum there).


Thank you very much!

Andreas
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Joel Goldstick
On Thu, Jun 13, 2013 at 2:10 PM, Nick the Gr33k 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\\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-userdir-user-specific-**
> publichtml-working-apache-**centos-6
> >
> > i did this:
> >
> >
> >
> >
> >
> > 
> >
> > UserDir public_html
> >
> > 
> >
> > 
> >
> > #UserDir disabled
> >
> > UserDir "enabled *"
> >
> > UserDir "disabled root"
> >
> > 
> >
> >
> >
> >
> >
> >
> >
> > 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.
> >
> >
> >
> > ===
> >
> > ni...@superhost.gr [~]# [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 
> >
> > [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'
>

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
>



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k



Τη Πέμπτη, 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-userdir-user-specific-publichtml-working-apache-centos-6

>
> i did this:
>
>
>
>
>
> 
>
> UserDir public_html
>
> 
>
> 
>
> #UserDir disabled
>
> UserDir "enabled *"
>
> UserDir "disabled root"
>
> 
>
>
>
>
>
>
>
> 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.
>
>
>
> ===
>
> ni...@superhost.gr [~]# [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 
>
> [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!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
Τη Πέμπτη, 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-userdir-user-specific-publichtml-working-apache-centos-6
> 
> i did this:
> 
> 
> 
> 
> 
> 
> 
> UserDir public_html
> 
> 
> 
> 
> 
> #UserDir disabled
> 
> UserDir "enabled *"
> 
> UserDir "disabled root"
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 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.
> 
> 
> 
> ===
> 
> ni...@superhost.gr [~]# [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 
> 
> [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.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας

On 13/6/2013 7:28 μμ, Chris Angelico wrote:

On Fri, Jun 14, 2013 at 2:23 AM,  ��  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 :)
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας

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-userdir-user-specific-publichtml-working-apache-centos-6

i did this:



UserDir public_html


#UserDir disabled
UserDir "enabled *"
UserDir "disabled root"




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.

===
ni...@superhost.gr [~]# [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 
[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'



--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread rusi
On Jun 13, 7:28 pm, Chris Angelico  wrote:
> On Fri, Jun 14, 2013 at 12:23 AM, Íéêüëáïò Êïýñáò  
> wrote:
> > Please suggest something of why this happnes.
>
> You remind me of George.
>
> http://www.chroniclesofgeorge.com/
>
> ChrisA

HA!
You are evil -- Chris!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας

On 13/6/2013 6:11 μμ, Chris Angelico wrote:

On Fri, Jun 14, 2013 at 12:54 AM, Andreas Perstinger
 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.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 2:23 AM, Νικόλαος Κούρας  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
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας

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.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Joel Goldstick
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 wrote:

>
>
>
> On Wed, Jun 12, 2013 at 1:33 PM, Νικόλαος Κούρας 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 )
>> [/code]
>>
>> 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 ,
>> 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/
>> [/code]
>>
>>
>> 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
>>
>
>
>
> --
> Joel Goldstick
> http://joelgoldstick.com
>



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 12:54 AM, Andreas Perstinger
 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
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Andreas Perstinger

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.

Bye, Andreas
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Thomas Murphy
Chris,

I had never encountered George before today, and now my life is a little
bit better.

This and "help vampires" in one morning, today's shaping up well! (now if
this JSON would serialize with this #*@$ing angularJS Controller, but
that's for another list)


On Thu, Jun 13, 2013 at 10:28 AM, Chris Angelico  wrote:

> On Fri, Jun 14, 2013 at 12:23 AM, Νικόλαος Κούρας 
> wrote:
> > Please suggest something of why this happnes.
>
> You remind me of George.
>
> http://www.chroniclesofgeorge.com/
>
> ChrisA
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Sincerely,
Thomas Murphy
Code Ninja
646.957.6115
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 12:23 AM, Νικόλαος Κούρας  wrote:
> Please suggest something of why this happnes.

You remind me of George.

http://www.chroniclesofgeorge.com/

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας

On 13/6/2013 9:41 πμ, Νικόλαος Κούρας wrote:

On 12/6/2013 11:35 μμ, Joel Goldstick wrote:




On Wed, Jun 12, 2013 at 1:33 PM, Νικόλαος Κούρας mailto:supp...@superhost.gr>> wrote:

==
RewriteEngine On
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 )
[/code]

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
, 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/
[/code]


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


In my source code as seen above i mention nowhere for '/home/nikos/' but
instead for '/home/dauwin/'

That error message makes me come to conclusion that metrites.py script
is running from user's nikos' cgi-bin:

/home/nikos/public_html/cgi-bin/metrites.py

instead of:

/home/dauwin/public_html/cgi-bin/metrites.py

I wonder why.
I mean iam sayign it clearly

with open( '/home/dauwin/public_html/' + page,

and the error says:

[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/

What happens when i give http://superhost.gr/~dauwin

Why home/nikos/public_html/cgi-bin/metrites.py seems to be the scritp
that always run?

That should have run when i browser: 'http://superhost.gr' and not when
i browse 'http://superhost.gr/~dauwin'

Please help. A client wanst to utilize my metrites.py script because he
lieks the way that has a seperate counter for each html page and the way
the log is presented in an html table like form.
Of course i will give it it to him for free.



Please suggest something of why this happnes.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-13 Thread Mark Lawrence

On 12/06/2013 21:19, Chris Angelico wrote:

On Thu, Jun 13, 2013 at 3:33 AM, Νικόλαος Κούρας  wrote:

Why is pointing to /home/nikos isntead of /home/dauwin ?


Why is question pointing to python-list@python.org isntead [sic] of
your home town and some paid support?

ChrisA



Surely support at superhost dot greece should be able to sort all this out?

--
"Steve is going for the pink ball - and for those of you who are 
watching in black and white, the pink is next to the green." Snooker 
commentator 'Whispering' Ted Lowe.


Mark Lawrence

--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-12 Thread Νικόλαος Κούρας

On 12/6/2013 11:35 μμ, Joel Goldstick wrote:




On Wed, Jun 12, 2013 at 1:33 PM, Νικόλαος Κούρας mailto:supp...@superhost.gr>> wrote:

==
RewriteEngine On
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 )
[/code]

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
, 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/
[/code]


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


In my source code as seen above i mention nowhere for '/home/nikos/' but 
instead for '/home/dauwin/'


That error message makes me come to conclusion that metrites.py script 
is running from user's nikos' cgi-bin:


/home/nikos/public_html/cgi-bin/metrites.py

instead of:

/home/dauwin/public_html/cgi-bin/metrites.py

I wonder why.
I mean iam sayign it clearly

with open( '/home/dauwin/public_html/' + page,

and the error says:

[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/

What happens when i give http://superhost.gr/~dauwin

Why home/nikos/public_html/cgi-bin/metrites.py seems to be the scritp 
that always run?


That should have run when i browser: 'http://superhost.gr' and not when 
i browse 'http://superhost.gr/~dauwin'


Please help. A client wanst to utilize my metrites.py script because he 
lieks the way that has a seperate counter for each html page and the way 
the log is presented in an html table like form.

Of course i will give it it to him for free.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-12 Thread Joel Goldstick
On Wed, Jun 12, 2013 at 1:33 PM, Νικόλαος Κούρας 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 )
> [/code]
>
> 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 ,
> 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/
> [/code]
>
>
> 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
>



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-12 Thread Chris Angelico
On Thu, Jun 13, 2013 at 3:33 AM, Νικόλαος Κούρας  wrote:
> Why is pointing to /home/nikos isntead of /home/dauwin ?

Why is question pointing to python-list@python.org isntead [sic] of
your home town and some paid support?

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Wrong website loaded when other requested

2013-06-12 Thread Νικόλαος Κούρας

What i mean is the the python.cgi script supposed to be executed was

"/home/dauwin/public_html/cgi-bin/metrites.py"

but instead for this to load for some reason

File "/home/nikos/public_html/cgi-bin/metrites.py"


But this is crazy.
I hit to the browser 'http://superhost.gr/~dauwin' and not 
'http://superhost.gr'


dauwin and nikos are 2 different usernames belonging to 2 different 
cPanel accounts.

--
http://mail.python.org/mailman/listinfo/python-list