Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i change .cgi extension to .foo in apache

Status
Not open for further replies.

shantec

Technical User
Oct 20, 2002
29
TR
i would like to change the cgi extension on perl my scripts.

i have done it before in php from the apache config file, from .php to .acp


i want the server to execute a script with a .ads extension as .cgi.

AddHandler cgi-script .cgi it works

i have changed it and written
AddHandler cgi-script .cgi .ads
it doesn't work, gives internal server error

apache doesn't interpret the .ads extension as cgi

any feedback would be well appreciated


how can i do it in perl?

thank you.
 
Wullie ,

thank you for your reply,

yes i have restarted, actually apache understands .ads is a .cgi script, bu t it gives internal server error.

when i try sample.cgi it works
when i try sample.ads it gives the int.server error.
bu t understands it a cgi.

what you think iam skipping_
thanks
 
thank for your reply

in the error log- i get

No such file or directory: exec of
/hello.ads failed
Premature end of script headers:
in this directory hello.cgi works fine though
------------------

thanks again
shann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top