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
  #1  
Old May 15th, 2001, 07:59 AM
Drarok Drarok is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Redditch, UK
Posts: 4 Drarok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Drarok Send a message via AIM to Drarok Send a message via Yahoo to Drarok
Unhappy Apache .htaccess - ErrorDocument???!!!!

Ok here's the problem... i have got a custom error CGI script from bignosebird.com - but it wont work!!! if i upload the example .htaccess file, all i can get is Error 500! not the custom one either! it disallows ALL access!
example .htaccess:

ErrorDocument 400 /cgi-bin/birdtrap.pl?400
ErrorDocument 401 /cgi-bin/birdtrap.pl?401
ErrorDocument 403 /cgi-bin/birdtrap.pl?403
ErrorDocument 404 /cgi-bin/birdtrap.pl?404
ErrorDocument 500 /cgi-bin/birdtrap.pl?500

can anyone help me? thanx!!!!

email any help to URL please.
thanx for any help!!!!

- Drarok Ithaqua

Reply With Quote
  #2  
Old May 15th, 2001, 09:45 AM
thobbes867 thobbes867 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Northern Ohio
Posts: 75 thobbes867 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I would suggest checking the permissions on your cgi-script.

Do you have other cgi scripts that are working?

Reply With Quote
  #3  
Old May 15th, 2001, 10:12 AM
thobbes867 thobbes867 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Northern Ohio
Posts: 75 thobbes867 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
You should also make sure that httpd.conf will let .htaccess so that.

I would definitely say either your script has the wrong permissions or httpd.conf is configured to deny .htaccess from doing this.

Good Luck

Reply With Quote
  #4  
Old May 15th, 2001, 08:12 PM
Drarok Drarok is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Redditch, UK
Posts: 4 Drarok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Drarok Send a message via AIM to Drarok Send a message via Yahoo to Drarok
hmmm if my .htaccess was disallowed, surenothing would happen?
when i set it to use that example, all i get is Error 500?
i've tried asking my hosting, to no avail (that's what you get for hosting on a friends hosting comapny, he has real customers to sort out)
and yes i have other scripts working. namely an Ikonboard.

- Drarok Ithaqua

Reply With Quote
  #5  
Old May 17th, 2001, 07:12 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
>>hmmm if my .htaccess was disallowed, surenothing would happen?

Incorrect.

[500] error occurs in two situations:

1) Your script error (syntax or logical error), but not permission error, in which you would have gotten [403] instead
2) Server error. This includes a misconfiguration on httpd.conf or mostly .htaccess, using something (trying to override certain directives) in which the permission to do so has not been granted.
Say you have the following lines in /path/to/your/docroot/.htaccess:

<Directory "/path/to/whatever">
blahblah
</Directory>

Directory directive alone is not allowed to be overridden in the first place, therefore returning [500] error.

Start here -> http://httpd.apache.org/docs/mod/co...l#errordocument

Syntax: ErrorDocument error-code document
Context: server config, virtual host, directory, .htaccess
Status: core
Override: FileInfo
Compatibility: The directory and .htaccess contexts are only available in Apache 1.1 and later.

Make sure your server allows FileInfo to be overridden. It not, it's not that nothing would happen but an [500] error in return.

Reply With Quote
  #6  
Old May 17th, 2001, 04:55 PM
Drarok Drarok is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Redditch, UK
Posts: 4 Drarok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Drarok Send a message via AIM to Drarok Send a message via Yahoo to Drarok
No examples?

i dont suppose anyone has a simple example .htaccess they have used? i've looked through that page beofre to no avail! im starting to wonder if it could just be the host?

Reply With Quote
  #7  
Old May 17th, 2001, 08:08 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
What examples? What's more do you need? Why can't you RTFM?
I already posted:

Syntax: ErrorDocument error-code document
Context: server config, virtual host, directory, .htaccess
Status: core
Override: FileInfo
Compatibility: The directory and .htaccess contexts are only available in Apache 1.1 and later.

Take a close look at the line in bold, in order to override ErrorDocument directive from .htaccess, your server's httpd.conf needs AllowOverride FileInfo.

Say AuthName -> http://httpd.apache.org/docs/mod/core.html#authname

Syntax: AuthName auth-domain
Context: directory, .htaccess
Override: AuthConfig
Status: core

Then AllowOverride AuthConfig is needed.

Reply With Quote
  #8  
Old May 19th, 2001, 02:32 AM
Drarok Drarok is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Redditch, UK
Posts: 4 Drarok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Drarok Send a message via AIM to Drarok Send a message via Yahoo to Drarok
Unhappy Ta

well thanx for the info, but i read through that page before coming here to annoy you all i'll try bugging my hosting type geezer. last time i asked he said he needed to wait for the admin to be at the server gay.

- Drarok Ithaqua

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Apache .htaccess - ErrorDocument???!!!!


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway