everything works fine when the extension is cgi but when i change it to .pl i get a error 500
- Code: Select all
Error message:
syntax error at D:/xampp-1.74/htdocs/helloWorld_ruby.pl line 3, near "#line 1 D:/xampp-1.74/htdocs/helloWorld_ruby.pl #!/xampp-1.74/Ruby192/bin/ruby puts "Content-Type: text/html\n\n"" ,
also this doesnt seem to have any effect when i go to localhost:3000
but i did add the line "AddHandler cgi-script .cgi .pl"
- Code: Select all
Listen 3000
#LoadModule rewrite_module modules/mod_rewrite.so
<virtualHost *:3000>
ServerName rails
DocumentRoot "d:\xampp-1.74\htdocs\\ruby\public"
<Directory "d:\xampp-1.74\htdocs\\ruby\public">
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi .pl
AddHandler fastcgi-script .fcgi
</Directory>
</VirtualHost>
any suggestions?