Wrong website loaded when other requested
Νικόλαος Κούρας
support at superhost.gr
Thu Jun 13 12:52:27 EDT 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-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 at nikos [~]# chmod 711 /home
root at nikos [~]# chmod 711 /home/nikos
root at nikos [~]# chmod 755 /home/nikos/public_html/
root at nikos [~]# chmod o+r /home/nikos/public_html/index.html
root at nikos [~]# chmod 711 /home/dauwin
root at nikos [~]# chmod 755 /home/dauwin/public_html/
root at nikos [~]# chmod o+r /home/dauwin/public_html/index.html
root at 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.
===================
nikos at 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 <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'
========================
More information about the Python-list
mailing list