views:

29

answers:

1

In reference to the accepted answer in http://stackoverflow.com/questions/3464141/php-website-to-aspx-net-website. Creating a new post since that post was over-loaded with comments.

.htaccess file AddType application/x-httpd-php .aspx

AllowOverride AuthConfig in apache config file.

trying to parse php in the aspx page. index.html / index. aspx

Hi, This is the index file. OK!
<?echo "PHP working";?>

Getting this error in log file.
Add type not allowed here.

What am i doing wrong?

+3  A: 

You need the FileInfo override. AuthConfig is unnecessary for this purpose, but if you need it there, the result is:

AllowOverride AuthConfig FileInfo
Artefacto
As per the Apache docs: http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addtype
Marc B