Re: Page can not be displayed...

From: Peter Wyzl (wyzelli_at_yahoo.com)
Date: 12/19/04


Date: Sun, 19 Dec 2004 00:54:08 GMT


"Piet L." <PietLaroy@hotmail.com> wrote in message
news:c47f81f6.0412180326.185c4e9b@posting.google.com...
: Piet L. wrote:
:
: >> Hey,
: >> I'm working with IIS (Windows 2000).
: >> I've create a virtual directory usr-cgi met link naar e:\cgi
: >> It works all well when I run simple scripts, but with the following
: script
: >> I get a "Page can not be displayed" error.
:
: >> I know the script is working, because when I try it in DOS
: >> e:\cgi\finaal> perl orders.cgi
: >>
: >> I get the right output
: >>
: >> Problem is the http://localhost/usr-cgi/finaal/orders.cgi
:
: >Most web server software will direct STDOUT from CGI scripts to a log
: >file somewhere. I've hardly ever used IIS but I think I'd remeber if
: it
: >were an exception. Have you tried looking for such a log.
:
: Yes I deed, the only thing I've learned is that the file ib20 was
: created/changed at the moment I tried the link.
: It is in c:\winnt\temp
:
: That's all I know

With any files you access using Perl in an IIS CGI environment, you should
specify the full path (on IIS something like d:/inetpub/wwwroot/etc) because
often the current directory is not what you think it it. In this case the
Perl process appears to be running with a current directory of c:\winnt\temp
where it can create the file, but IIS cannot read it.

For security reasons you don't want your web-server to be able to read
within your systemroot tree, so you will need to be specific with your data
locations.

Generally a readable/writeable directory outside the actual web-site itself,
so the Perl processes can read it, but you cannot specify it by url.

-- 
Wyzelli 


Relevant Pages

  • Re: Need help on windows server 2003
    ... Doesn't make sense from a security point of view. ... Thus, the process that is creating the project on IIS would need to do it, ... >Scripts like ASP will not work until you enable it to ... >totally by design -- secure by default. ...
    (microsoft.public.inetserver.iis)
  • Re: Will Linux become as vulnerable as MS ??
    ... But people sometimes infected by viruses from files ... Then anyone with a basic understanding of shell scripts could write one ... > Apache, and despite having several rather nasty holes in Apache, or it's ... > the vile record that IIS holds in spreading malware. ...
    (comp.os.linux.security)
  • Re: Will Linux become as vulnerable as MS ??
    ... >> Linux, each distro is a little different, and even within the distro, ... > Then anyone with a basic understanding of shell scripts could write one ... >> Apache, and despite having several rather nasty holes in Apache, or it's ... >> the vile record that IIS holds in spreading malware. ...
    (comp.os.linux.security)
  • Re: Need help on windows server 2003
    ... >Scripts like ASP will not work until you enable it to ... >IIS functionality. ... >Some time ago i set up a web/sql server for my company, ... >give a detailed walkthrough couse i am not that familiar ...
    (microsoft.public.inetserver.iis)
  • Re: Help would be greatly appreciated...
    ... In general, network ... Do the Perl process and Tcl process already ... My design was to make a GUI in Tcl and all scripts behind in Perl. ...
    (comp.lang.tcl)

Loading