|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
custom 404 error messages problems....
Ok, i have a small question. I have searched through the forums for similar questions, but none so far have helped me.
I have the following virtual host entry in my httpd.conf file: Code:
<VirtualHost mysite.com> DocumentRoot /var/www/mysite/html ServerName mysite.com ServerAlias www.mysite.com UserDir /home/*/public_html UseCanonicalName off ErrorDocument 404 http://www.mysite.com/missing.html <Directory "/var/www/mysite/html"> Options ALL MultiViews AllowOverride All Order allow,deny Allow from all </Directory> <Directory "/home/*/public_html"> AllowOverride All Options All MultiViews Order allow,deny Allow from all </Directory> </VirtualHost> I have restarted apache about 100 million times, but so far nothing works. when i go to, say, http://www.mysite.com/apagethatdoesntexest.html, it just displays internet explorers error message. Please help me. Am i doing something wrong? thanks alot!!!! |
|
#2
|
|||
|
|||
|
>> <VirtualHost mysite.com>
You should put your IP, not domain name. >> UserDir /home/*/public_html You can simply define Userdir public_html globally. >> ErrorDocument 404 http://www.mysite.com/missing.html You can use ErrorDocument 404 /missing.html instead. >> Options ALL MultiViews You will need to spend a few moment and read up all available options. Enabling All is not so good. MultiViews is full of exploits in all versions except 1.3.22. In 1.3.22, however, MultiViews is broken in some ways. So don't enable MultiViews if you don't have a valid reason. |
|
#3
|
||||
|
||||
|
see, my problem is that i have about 2 differnt domains on my system. Plus about 3 or 4 sub domains on those 2 domains.
as far as the: Quote:
i have tried that. And like i said, it doesnt work. any other suggestions? [edit] btw, about the virtual host. I remember the reason i didnt use my ip was because i have a dynamic ip. (well, its not very dynamic, but the isp reserves the right to change it when ever they want.) so i use a ddns service from hn.org. Its quite nice actually. Thanks again! Merry Christmas [/edit] Last edited by MRK : December 25th, 2001 at 12:09 PM. |
|
#4
|
|||
|
|||
|
>> it doesnt work. any other suggestions?
Very simple. Just don't use IE as your debugging tool at all time. Tell us your domain so someone else can test it for you. Check your error_log. >> I remember the reason i didnt use my ip was because i have a dynamic ip You then should use NameVirtualHost * and <VirtualHost *>. That's what the wildcard is for. Change this and see if the error goes away. |
|
#5
|
||||
|
||||
|
Yea, that is what i have done in the past for dynamic ips. I dont know why i did it that way on this system. lol. anway, my domain is http://www.mattrk.com.
It works just fine on nutscrap and opera. And on linux it works on konquer(spelling :P ) and mozzila. anyway, thanks! |
|
#6
|
|||
|
|||
|
Just tested your site with Mozilla and 404 worked fine.
I also tested the MultiViews exploit on your site by requesting the URL like so: http://www.mattrk.com/%3fS=D and found that your site fortunately is not vulnerable. Yes, I use Mozilla 95% of the time and it is now my primary browser. I'd use IE when I need to go to the non-RFC compliance website like www.nfl.com and watch the gameday live. So why don't you just run a anti-nfl.com site? Sorry, you will have to wait for someone who uses IE to test it for you. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > custom 404 error messages problems.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|