lscgid: execve(): Permission denied

#1
Hi There,

I'm trying to setup a site that uses a simple perl script:

Code:
#!/usr/bin/perl

use LWP::Simple;

print "Content-type: text/html\n\n";

@content=get('http://some_url');

foreach$line(@content) {
	$line=~s/<HEAD>/<HEAD>\n<BASE target=\"_top\">\n/;
	print $line;
}
Other perl scripts work fine however this one gives a permission denied error? Can you tell me what I've missed?

Thanks
Luke
 

furimedia

Well-Known Member
#4
i'm also getting this, but may be different issue.

when i try to access a html file in /cgi-bin/something.html, i get that error.

is there any way around this?
 

mistwang

LiteSpeed Staff
#5
LiteSpeed does not allow serve any static content from a CGI directory for security reason.
If you really need to do this, you can use "Alias" or "AliasMatch" directive to tell LSWS that those files should be served as static content.
 
Top