开发者

.htaccess doesn't work on Ubuntu [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

I installed Ubuntu 10 and apache 2. Now I create an .htaccess file. The file contains:

AddType application/x-httpd-php5 .jpg
Addhandler application/x-httpd-php .jpg

I want to run .jpg file开发者_高级运维s as PHP files. It works on other servers but when I tried it on my server (localhost actually) it doesn't work.

What should I do?


Probably better for serverfault...

But Make sure that you have.

AccessFileName .htaccess

and that you don't have AllowOverride None set for the directory in which you have your .htaccess file located..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜