in reply to Re^3: CGI::Application run mode does not recognize external css
in thread CGI::Application run mode does not recognize external css

Hi Here is what I got from the error logs.. Can you suggest what might be going wrong here? Thanks Mon Apr 19 11:22:50 2010 error client 127.0.0.1 script not found or unable to stat: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/myapp/basic.css, referer: http://localhost/cgi-bin/myapp/simple.pl
  • Comment on Re^4: CGI::Application run mode does not recognize external css

Replies are listed 'Best First'.
Re^5: CGI::Application run mode does not recognize external css
by marto (Cardinal) on Apr 19, 2010 at 15:31 UTC

    This isn't a perl issue, or an issue relating to CGI::Application. I'd simply replace this path you assign to the template variable with one relative to your myapp site, that your apache configuration will be able to locate and serve.

    You should spend some time reading about HTML, the apache documentation, and Ovid's CGI course (thanks to jdporter for hosting this) to learn how to debug such problems.

Re^5: CGI::Application run mode does not recognize external css
by rowdog (Curate) on Apr 19, 2010 at 22:27 UTC

    As marto pointed out, you need to fix the URL to your CSS file. I suppose your App might work if you double click the CGI (windows right?) but when it's run by a real web server, no major browser (in default configuration) will allow a remote file to access a local file.

    See the spec at HTML 4.01, look around for HTML tutorials, and/or buy a book on HTML.