Wrong website loaded when other requested

  • Thread starter Îικόλαος ΚοÏÏας
  • Start date
A

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
 
N

Nick the Gr33k

On Thu, Jun 13, 2013 at 2:10 PM, Nick the Gr33k <[email protected]



Τη Πέμπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χÏήστης Îικόλαος
ΚοÏÏας έγÏαψε:
[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/

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:





<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 address removed) <mailto:[email protected]> [~]# [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, since you think i'm idiot enough to use '/home/nikos' in a script
running under username 'dauwin' here are the proofs for you:


root@nikos [~]# cat /home/dauwin/www/cgi-bin/metrites.py | grep
"/home/nikos/"

root@nikos [~]# cat /home/dauwin/www/cgi-bin/metrites.py | grep
"/home/dauwin/"
page = file.replace( '/home/dauwin/public_html/', '' )
with open( '/home/dauwin/public_html/' + page,
encoding='utf-8' ) as f:
pypage = subprocess.check_output(
'/home/dauwin/public_html/cgi-bin/' + page )
root@nikos [~]#


I believe that no matter if i browse 'htt://superhost.gr' or
'http://superhost.gr/~dauwin'

somethign happens with the DocumentRoot of the domain and the web URL
translate to file '/home/nikos/public_html/cgi-bin/metrites.py' for any
http://superhost.gr/* request.

So, an Apache configuration is in order and not a python code alternation.
 
N

Nick the Gr33k

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

Grant Edwards

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

Nick the Gr33k

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

Nick the Gr33k

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 (e-mail address removed)
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
<IfModule mod_suphp.c>
suPHP_UserGroup dauwin dauwin
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup dauwin dauwin
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid dauwin dauwin
</IfModule>
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"

</VirtualHost>


Your superhost.gr domain is setup to use the following
Code:
<VirtualHost 82.211.30.133:82>
ServerName superhost.gr
ServerAlias www.superhost.gr
DocumentRoot /home/nikos/public_html
ServerAdmin (e-mail address removed)
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
<IfModule mod_suphp.c>
suPHP_UserGroup nikos nikos
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup nikos nikos
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid nikos nikos
</IfModule>
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"

</VirtualHost>

================================

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?
 
M

Mark Lawrence

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
 
R

Roy Smith

alex23 said:
Spamming endless "ZOMG HELP ME I'M INCOMPETENT" posts isn't "research".

But it could be an argument. Did you just want the five minutes or the
full half hour?
 
G

Gene Heskett

But it could be an argument. Did you just want the five minutes or the
full half hour?

One old (78) farts take on this endless thread is that its a sign that
those who had it made in Greece, before the bill for it came due, are now
being forced to actually (gasp, a 4 letter word) "work" for a living, eg
producing something of value to others.

But, since you can take the boy out of the country, but you can't take the
country out of the boy, he is still asking for someone else to not only
translate his horribly broken english, but to do the work for him, gratis
of course. In the meantime, it is difficult to define which of the 10,000
monkeys with keyboards is trying to do this since it seems the list is
getting the output of a different keyboard every day.

Cheers, Lurker Gene out
 
Z

Zero Piraeus

:

One old (78) farts take on this endless thread is that its a sign that
those who had it made in Greece, before the bill for it came due, are now
being forced to actually (gasp, a 4 letter word) "work" for a living, eg
producing something of value to others.

Please keep that take to yourself.

-[]z.
 
G

Grant Edwards

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

Nick the Gr33k

Ôç ÐÝìðôç, 13 Éïõíßïõ 2013 7:52:27 ì.ì. UTC+3, ï ÷ñÞóôçò Íéêüëáïò Êïýñáò Ýãñáøå:
[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/

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:





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

Steven D'Aprano

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

Nick the Gr33k

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?
 
M

Mark Lawrence

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
 
M

Mark Lawrence

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top