PDA

View Full Version : Execute Perl Scripts with different Extension Name


mapg
08-19-2004, 04:17 AM
I would like to execute perl scripts with different extension named "chtml"

I need to add this in the .htaccess file ...

I tried to add ...
AddHandler cgi-script .cgi .chtmlor ...
AddType application/x-httpd-cgi .cgi .chtmlBut any of these changes works.

Some idea?

Mapg

YUPAPA
08-20-2004, 06:14 AM
What is your question? I think you have answered yourself? :D

I would like to execute perl scripts with different extension named "chtml"

But any of these changes works.

mapg
08-20-2004, 07:32 AM
What is your question? I think you have answered yourself? :D

Very easy to understand my question ...

How-to configure Apache to execute perl scripts with a different extension name, in this case chtml

That's all.

Mapg

YUPAPA
08-21-2004, 06:12 AM
You have answered yourself

AddHandler cgi-script .cgi .chtml

mapg
08-21-2004, 07:03 AM
You have answered yourself

AddHandler cgi-script .cgi .chtml

But doesn't work, neither in .htaccess nor httpd.conf

In my local server works, but not in my host in production. I do not know what's happening.

I contacted with support team, we have tested with the two options but doesn't work any option and they do not know why.

By the way, it's uses Cpanel.

They will post to Cpanel staff to comment this issue.

Somebody could know what's happening? mod_perl is not installed (to provide some info) and I use SSI as well.

I suppose that is not a must to recompile Perl 5.8.1

Mapg