Web Hosting Talk







View Full Version : .htaccess causing server error


Christopher
10-16-2001, 07:51 PM
hmm, moving my websites to a dedicated raq.

The .htaccess files I have in directories are causing an error page with an 'internal error or miconfiguation' message. When I take them out the index page loads ok.

I edited the conf file to:
--------
# 'AuthConfig", and "Limit"

AllowOverride All
-------

But still get the error. I have edited the .htaccess file down to one line for testing, it just has:

------
ErrorDocument 404 /index.html
------

in it (without the lines).

Any ideas as to what I should do next to troubleshoot this?

Thank you,

Chris

CmptrWz
10-16-2001, 08:44 PM
Seems like it is in the wrong format........
You need Unix text file.

Maybe if you make it in telnet it will work better?
Or upload in ascii?

Christopher
10-16-2001, 09:36 PM
I did consider that and re-uploaded it in ascii, just in case I had accidently uploaded it in binary the first time. Didn't make a diffence,

Chris

zbco
10-16-2001, 09:54 PM
get rid of mod_gzip if you have it loaded and restart httpd

Christopher
10-16-2001, 10:18 PM
Don't have mod_gzip, though I was considering trying it... do .htaccess files not work if you have it on the machine?

Chris

Christopher
10-16-2001, 11:24 PM
oh, maybe after changing that to 'all' in the conf file I need to restart apache? My instructions on changing the 'AllowOverride' to 'All' didn't mention that, but maybe they assumed I would know that already? That would be silly of them!

I have never restarted something remotely - yikes, I just su in and type:

% restart_apache

right? And it for sure will come back up?

Chris

zbco
10-16-2001, 11:47 PM
Any thing you change in the conf file requires a restart of the Apache Server.

/etc/rc.d/init.d/http restart

Chicken
10-17-2001, 12:25 AM
Yes (what is posted above) should do it. If not, post partial httpd.conf file please...

Christopher
10-17-2001, 12:39 AM
Restarting apache as posted above did the trick!

Thank you. I am learning :)

Chris

zbco
10-17-2001, 02:16 AM
Just glad to help another linux newbie. Had the same problem as you did... but that was because mod_gzip was installed.

Get a linux book, I have mine next to me all the time. :-)

NewonNet
10-22-2001, 08:16 AM
Had this same problem with mod_gzip. STill working on it. Anyone know why this is happening?

The Authentication seem to be fine but the browser just craps out.

All .htaccess works find with mod_gzip off

leeacm
10-24-2001, 05:23 PM
In your httpd.conf file near the virtual hosts section, you should put the following code - before the first virtual host. This worked first time for me!


<directory /home/>
AllowOverride AuthConfig
AllowOverride FileInfo
</directory>

CmptrWz
10-24-2001, 09:14 PM
I must disagree with that.........

<directory /home/>
AllowOverride AuthConfig
AllowOverride FileInfo
</directory>

That will only apply FileInfo

Now, this:

<directory /home/>
AllowOverride AuthConfig FileInfo
</directory>

Or This:

<directory /home/>
AllowOverride AuthConfig
AllowOverride +FileInfo
</directory>

Should work. Even this:

<directory /home/>
AllowOverride +AuthConfig
AllowOverride +FileInfo
</directory>