You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matej Cepl <ce...@surfbest.net> on 2003/06/17 00:27:48 UTC
[users@httpd] .htaccess gets 500 Internal Server Error
Hi,
I am a user on the virtual web (so I have no access to /etc). I tried in
my www directory to create this very simple .htaccess (it is now
http://www.ceplovi.cz/htaccess):
DefaultType application/octect-stream
AddType text/css css
But I got 500 Internal Server Error. Could anybody help to find what's
wrong? Needless to say, that I am clueless newbie and did not find
anything from reading Apache FAQ and Directives list.
Matej Cepl
--
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: .htaccess gets 500 Internal Server Error
Posted by Matej Cepl <ce...@surfbest.net>.
On 2003-06-17, 14:32 GMT, Joshua Slive wrote:
> This means the server adminstrator has not configured an appropriate
> AllowOverride in httpd.conf to allow you to use AddType. See the docs on
> AllowOverride and the "Override" field in the AddType docs.
Thanks for the idea. I will look into it later though (writing exams now
:-).
Matej
--
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: .htaccess gets 500 Internal Server Error
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 17 Jun 2003, Matej Cepl wrote:
> On 2003-06-17, 03:03 GMT, Joshua Slive wrote:
> >> DefaultType application/octect-stream
> >
> > perhaps you mean octet/stream
>
> My /etc/mime.type has only application/octet-stream. Where can I find
> more about octet/stream?
I just meant to point out you had a typo in your DefaultType line, but
then I made a typo in my response, which made the whole thing confusing
;-)
> Chmm, I did not know, that I can actually access /var/log even as
> a user. Sorry, for not providing the info. error.log says:
>
> [Mon Jun 16 23:41:09 2003] [alert] [client XX.XX.XX.2] \
> /data/www/ceplovi/.htaccess: AddType not allowed here
This means the server adminstrator has not configured an appropriate
AllowOverride in httpd.conf to allow you to use AddType. See the docs on
AllowOverride and the "Override" field in the AddType docs.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: .htaccess gets 500 Internal Server Error
Posted by Robert Andersson <ro...@profundis.nu>.
Matej Cepl wrote:
> Chmm, I did not know, that I can actually access /var/log even as
> a user. Sorry, for not providing the info. error.log says:
>
> [Mon Jun 16 23:41:09 2003] [alert] [client XX.XX.XX.2] \
> /data/www/ceplovi/.htaccess: AddType not allowed here
> [Mon Jun 16 23:41:20 2003] [alert] [client XX.XX.XX.2] \
> /data/www/ceplovi/.htaccess: AddType not allowed here
> [Tue Jun 17 00:17:33 2003] [alert] [client XX.XX.XX.40] \
> /data/www/ceplovi/.htaccess: DefaultType not allowed here
>
> It is strange? What does it mean?
It means that the server/vhost is configured not to allow AddType &c to be
overridden in access files. In order to do that, there must be a directive
AllowOverride ... FileInfo
applying to the directory in the httpd.conf. See:
http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride
> Where should AddType and DefaultType go when not to the
> .htaccess file
You'd generally want to do AddType in the httpd.conf.
Regards,
Robert Andersson
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: .htaccess gets 500 Internal Server Error
Posted by Matej Cepl <ce...@surfbest.net>.
On 2003-06-17, 03:03 GMT, Joshua Slive wrote:
>> DefaultType application/octect-stream
>
> perhaps you mean octet/stream
My /etc/mime.type has only application/octet-stream. Where can I find
more about octet/stream?
>> But I got 500 Internal Server Error. Could anybody help to find
>> what's
>> wrong? Needless to say, that I am clueless newbie and did not find
>> anything from reading Apache FAQ and Directives list.
>
> Both the FAQ and the error message itself tell you to look in the apache
> error_log for more details. What does that say?
Chmm, I did not know, that I can actually access /var/log even as
a user. Sorry, for not providing the info. error.log says:
[Mon Jun 16 23:41:09 2003] [alert] [client XX.XX.XX.2] \
/data/www/ceplovi/.htaccess: AddType not allowed here
[Mon Jun 16 23:41:20 2003] [alert] [client XX.XX.XX.2] \
/data/www/ceplovi/.htaccess: AddType not allowed here
[Tue Jun 17 00:17:33 2003] [alert] [client XX.XX.XX.40] \
/data/www/ceplovi/.htaccess: DefaultType not allowed here
It is strange? What does it mean? Where should AddType and DefaultType
go when not to the .htaccess file (see its full version on
http://www.ceplovi.cz/htaccess).
Thanks for replying,
Matej
--
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] .htaccess gets 500 Internal Server Error
Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 16 Jun 2003, Matej Cepl wrote:
> Hi,
>
> I am a user on the virtual web (so I have no access to /etc). I tried in
> my www directory to create this very simple .htaccess (it is now
> http://www.ceplovi.cz/htaccess):
>
> DefaultType application/octect-stream
perhaps you mean octet/stream
> AddType text/css css
>
> But I got 500 Internal Server Error. Could anybody help to find what's
> wrong? Needless to say, that I am clueless newbie and did not find
> anything from reading Apache FAQ and Directives list.
Both the FAQ and the error message itself tell you to look in the apache
error_log for more details. What does that say?
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org