Doubt in Apache AddType directive.

gesf

New member
Hello my people!

I got Apache/1.3.34 installed as CGI.
I have this code to assign other file extensions for PHP script:
Code:
AddType application/x-httpd-php .php .class .inc .check .rdf .error
In the old server (Apache API), this was working great.

The problem here is that the files being include like: .class, .inc, .check are working, but the other ones (.rdf, .error) that are called directly from the URL doesn't get recognized by Apache, where i get an "Internal Server Error" error.

Can someone help me solving this issue?
Thank you
 
u can check the error_log of your Apache server, will give you the exact problem
Or check the spelling u've actually put in the config
 
You got it Redcircle :D But i won't do it... not again...!
I already did what you said ruturajv, don't remember now with what i came up, but i know... it didn´t helped.
But now it's seems i shoud check it again... to make sure! :)
 
u must have added the config in httpd.conf and restarted Apache (as expected)
 
gesf said:
I already did what you said ruturajv, don't remember now with what i came up, but i know... it didn´t helped.
check it ... that will lead the raod.
 
gesf,
i recommend u not to use .class .inc .check .rdf .error as php files instead..
use something like this

Code:
classname.class.php
common-functions.inc.php
...etc.
 
gesf said:
Yeh... seems there's no way out!
But... are you talking about security aspects !?
nay...
just a naming convention, all that ends with .php is a PHP script, a .class.php is a PHP Class script and so on...
 
Yeh i know.... just wanted to be different :D
Also all my text/php editors are prepared to assume that extensions as PHP :)
 
Back
Top