Apache 403

Apache 403

Vidja Games — Page [1]
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
How can I change the default page of 403s in apache? Like I want to change what it says


Example:
http://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htmhttp://www.superjer.com/forum/havokk.htm


uh-oh
Quote:
Forbidden

You don't have permission to access /sprinkles/foras/admin/admin.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.6 with Suhosin-Patch Server at 192.168.2.2 Port 80
 
 
2010 Dec 7 at 21:39 PST — Ed. 2010 Dec 7 at 21:57 PST
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
 
 
2010 Dec 7 at 22:07 PST
SuperJer
Websiteman

2005 Mar 20 • 6311
Use the "ErrorDocument" directive:

httpd.apache.org/docs/2.2/custom-error.html

It actually doesn't work for your too-long-URL-thingy. But it works for the usual forbidden stuff:

superjer.com/.htpasswd
 
 
2010 Dec 7 at 22:08 PST
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Whoa! How did you get overlapping text!?

Ok.

relative -100px
 
 
2010 Dec 7 at 22:10 PST — Ed. 2010 Dec 7 at 22:11 PST
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS! STUPID BROWSERS!
 
 
2010 Dec 8 at 10:05 PST
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
I'm a little confused. What file do I add these directives to?
 
 
2010 Dec 9 at 09:47 PST
Sloth

2008 May 18 • 543
Sick vid
 
 
2010 Dec 9 at 10:17 PST
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Rockbomb said:
I'm a little confused. What file do I add these directives to?

You can add them to an .htaccess file, for a specific dir. Or you can edit /etc/apache2/apache2.conf. There will be a section about error directives.
 
 
2010 Dec 9 at 11:01 PST
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
So I added this line:
ErrorDocument 403 http://www.fbi.gov
And it didn't do anything
 
 
2010 Dec 9 at 11:36 PST
Page [1]