Forum Moderators: phranque

Message Too Old, No Replies

errordocument worked but now giving me 500 error

ErrorDocument worked but now giving me Internal Server Error

         

Valesa

6:56 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



As far as I know, no changes were made to Apache. We did do some systems upgrades but I don't know what they are. My .htaccess had ErrorDocument 400's and now its giving me Internal Server Error. What can I do? I made sure the rewrite engine is on, I tried all three types of paths, I checked the httpd config, tried with and without symlinks. Please help.

Birdman

7:35 pm on Jul 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds like a simple syntax error or typo. Can you post the .htaccess code? (* without any identifiable domain name or ips please)

Also, welcome to Webmaster World!

Valesa

7:50 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



# -FrontPage-
#Options Indexes FollowSymLinks Includes
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti* */images/*

#CheckSpelling On

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

#<Directory />
#AllowOverride All
#ErrorDocument 404 [mydomain.com...]

#ErrorDocument 404 /404.htm
#</Directory>

Valesa

7:51 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



thanks for responding so quickly. I left it commented out. Please tell me what mistakes I've made and what to uncomment.

Thank you! :)

Valesa

8:07 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



here's the entry to the httpd.conf:

<VirtualHost 11.1.11.1>
ServerName www.mydomain.com
ServerAdmin admin
DocumentRoot /home/sites/site1/web
ServerAlias mydomain.org mydomain.net
RewriteEngine on
RewriteCond %{HTTP_HOST} !^11.1.11.1(:80)?$
RewriteCond %{HTTP_HOST} !^www.mydomain.com(:80)?$
RewriteRule ^/(.*) [mydomain.com...] [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>

Valesa

8:16 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



and here is my httpd error log:

[Fri Jul 8 08:42:17 2005] [error] [client 197.46.86.162] File does not exist: /home/sites/site1/web/abc (multiple times)

[Fri Jul 8 13:41:31 2005] [alert] [client 197.46.86.162] /home/sites/site1/web/.htaccess: ErrorDocument not allowed here

[Fri Jul 8 13:50:36 2005] [alert] [client 197.46.86.162] /home/sites/site1/web/.htaccess: Options not allowed here (multiple times)

[Fri Jul 8 13:53:38 2005] [alert] [client 197.46.86.162] /home/sites/site1/web/.htaccess: Invalid command 'CheckSpelling', perhaps mis-spelled or defined by a module not included in the server configuration (multiple times until i commented it out)

[Fri Jul 8 13:57:16 2005] [alert] [client 197.46.86.162] /home/sites/site1/web/.htaccess: RewriteEngine not allowed here

[Fri Jul 8 13:57:59 2005] [alert] [client 197.46.86.162] /home/sites/site1/web/.htaccess: ErrorDocument not allowed here (multiple times)

jdMorgan

8:36 pm on Jul 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You may need to look into the AllowOverride directive. If AllowOverride is restrictive, then many module features (such as setting Options) will be unavailable.

Jim

Valesa

8:51 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



ok, I cannot find AllowOverride in my httpd.conf, where would i put it? I tried putting it in the .htaccess as you can see but it didn't work.

Valesa

9:04 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



let me mention again, it was working a couple weeks/months ago.

mcrosoft

4:39 am on Jul 9, 2005 (gmt 0)

10+ Year Member



then maybe some module called by the .htaccess has changed or is missing since the system upgrades.