Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 23rd, 2001, 04:52 PM
MRK's Avatar
MRK MRK is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 191 MRK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 36 sec
Reputation Power: 8
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!!!!

Reply With Quote
  #2  
Old December 24th, 2001, 06:54 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> <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.

Reply With Quote
  #3  
Old December 25th, 2001, 12:07 PM
MRK's Avatar
MRK MRK is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 191 MRK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 36 sec
Reputation Power: 8
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:
You can use ErrorDocument 404 /missing.html instead.


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.

Reply With Quote
  #4  
Old December 25th, 2001, 01:21 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> 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.

Reply With Quote
  #5  
Old December 26th, 2001, 01:31 AM
MRK's Avatar
MRK MRK is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 191 MRK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 36 sec
Reputation Power: 8
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!

Reply With Quote
  #6  
Old December 26th, 2001, 03:37 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > custom 404 error messages problems....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT