Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
704 views
in Technique[技术] by (71.8m points)

apache - Apache2 ExecCGI in htaccess

  1. I have apache2 on server, it read .htaccess well:

if i set incorrect option in .htaccess, i see 500 Error

  1. I set in .htaccess:

    Options +ExecCGI

    AddHandler cgi-script .cgi .pl

Add test PERL script with .pl extension in same directory with .htaccess and when i try access it with Web i have got source code of this script. mod_cgi installed. What i do wrong ?

Also i execute .php files in this directory correctly, but i try to add:

AddType application/x-httpd-php .png

and that doesn't work. .png file also show source.

question from:https://stackoverflow.com/questions/65857934/apache2-execcgi-in-htaccess

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...