Author |
Message |
|
Post subject: 404 error document
Posted: 22.10.2010 - 12:56 #85739
|
|
Majster
Joined: Máj 12, 2004
Posts: 4579
Location: Bratislava
|
|
nedari sa mi stale rozbehat 404 error document cez apacha. mam spraveny vhost
Code: › pegasus ~ # cat /etc/apache2/vhosts.d/neplatici.conf
#NameVirtualHost *:8000
<VirtualHost *:8000>
ServerName neplatici.elsonet.sk
# ServerAlias www.elsonet.sk
ServerAdmin admin@elsonet.sk
DocumentRoot "/var/www/elsonet.sk/htdocs/neplatici/"
# <Directory "/var/www/elsonet.sk/htdocs/neplatici/">
# Options Indexes FollowSymLinks
# AllowOverride None
# Order allow,deny
# Allow from all
# </Directory>
</VirtualHost>
dalej mam v adresary .../neplatici subor .htaccess
pegasus ~ # cat /var/www/elsonet.sk/htdocs/neplatici/.htaccess
ErrorDocument 404 /index.html
a index.html kde mam len text test
pegasus ~ # cat /var/www/elsonet.sk/htdocs/neplatici/index.html
test
nefunguje mi to po nacitani stranky sa mi vyhodi
Forbidden
You don't have permission to access / on this server.
Apache Server at neplatici.elsonet.sk Port 8000
prava su
Code: › drwxr-xr-x 2 root root 112 Oct 18 12:02 neplatici
-rw-r--r-- 1 root root 30 Oct 18 12:06 /var/www/elsonet.sk/htdocs/neplatici/.htaccess
neviem kde robim chybu, vie mi stym plz niekto pomoct?
chybova hlaska v logoch je
[Fri Oct 22 13:18:13 2010] [error] [client xxx.xxx.xxx.xxx] client denied by server configuration: /var/www/elsonet.sk/htdocs/neplatici/index.html |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 22.10.2010 - 13:22 #85740
|
|
Basic
Joined: Júl 17, 2008
Posts: 102
Location: SNV
|
|
Odkomentuj si vsetko co spada pod direktivu <Directory> a AllowOverride nastav na Limit. A nastav si spravneho vlastnika fajlov, ktore mas vo /var/www. |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 22.10.2010 - 13:55 #85741
|
|
Majster
Joined: Máj 12, 2004
Posts: 4579
Location: Bratislava
|
|
backslash_ wrote: ›Odkomentuj si vsetko co spada pod direktivu <Directory> a AllowOverride nastav na Limit. A nastav si spravneho vlastnika fajlov, ktore mas vo /var/www.
urobil som ako si kazal, chybova hlaska v logoch sa zmenila na
/var/www/elsonet.sk/htdocs/neplatici/.htaccess: ErrorDocument not allowed here
a po nacitani stranky to vypisuje
Code: › Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@elsonet.sk and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache Server at neplatici.elsonet.sk Port 8000 |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 22.10.2010 - 16:43 #85744
|
|
Basic
Joined: Júl 17, 2008
Posts: 102
Location: SNV
|
|
Sorry, zabudol som, spravny format pri AllowOverride v tomto pripade ma byt
Code: › AllowOverride Limit,FileInfo |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 22.10.2010 - 16:49 #85745
|
|
Majster
Joined: Máj 12, 2004
Posts: 4579
Location: Bratislava
|
|
backslash_ wrote: ›Sorry, zabudol som, spravny format pri AllowOverride v tomto pripade ma byt
Code: › AllowOverride Limit,FileInfo
no jo chybove hlasky z logu zmizli ale browser mi ukazuje
Index of /
Icon Name Last modified Size Description
Apache Server at neplatici.elsonet.sk Port 8000
cize sa to na ten error document vobec neprehodi, neviem co stym mam v adresary .../neplatici som vyhodil index.html je tam uz LEN .htaccess a v nom je link na stranku pre neplaticov
pegasus ~ # cat /var/www/elsonet.sk/htdocs/neplatici/.htaccess
ErrorDocument 404 http://www.elsonet.sk/view.php?cisloclanku=cislo clanku pre neplaticov
som z toho zufaly uz... |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 22.10.2010 - 16:58 #85746
|
|
Basic
Joined: Júl 17, 2008
Posts: 102
Location: SNV
|
|
Ved to je ok, dostal si listing toho adresara ... na errordocument 404 ta presmeruje len ked zadas taky request, ktory vygeneruje error 404. |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 29.10.2010 - 12:29 #85884
|
|
Majster
Joined: Máj 12, 2004
Posts: 4579
Location: Bratislava
|
|
ako teda poslat request kt. vygeneruje error 404 a ten presmeruje web na stranku neplatica? |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 04.11.2010 - 10:20 #86006
|
|
Majster
Joined: Máj 12, 2004
Posts: 4579
Location: Bratislava
|
|
nikto nic? to nema nikto rozbehane presmerovanie na stranku neplatica cez 404ku? |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 04.11.2010 - 11:18 #86009
|
|
Guru
Joined: Okt 23, 2005
Posts: 1031
Location: /etc/bin/ladin
|
|
A dovod preco pouzivat nejaku 404ku? nejako mi to unika. |
|
|
|
|
|
|
Post subject: RE: 404 error document
Posted: 04.11.2010 - 14:10 #86017
|
|
Majster
Joined: Máj 12, 2004
Posts: 4579
Location: Bratislava
|
|
|
|
|
|
Powered by PNphpBB2 © 2003-2005 The PNphpBB Group Credits |