rbspro has asked for the wisdom of the Perl Monks concerning the following question:

Hi I Have a simple counter script which uses a SSI the script is working as i have typed in the following url which shows the counter.

http://www.rbsproductions.co.uk/cgi-bin/bw-counter/bw-counter.cgi

but why does it not show in the web page as i have coded the page as follows.

!--#include virtual="/http://www.rbsproductions.co.uk/cgi-bin/bw-counter/bw-counter.cgi -- I Have also put the brackets at each end

2005-11-07 Retitled by planetscape, as per Monastery guidelines
Original title: 'SSI'

  • Comment on OT: Server-Side Include (SSI) not working

Replies are listed 'Best First'.
Re: OT: Server-Side Include (SSI) not working
by halley (Prior) on Nov 07, 2005 at 18:13 UTC
    <!--#include virtual="/http://www.rbsproductions.co.uk/cgi-bin/bw-coun +ter/bw-counter.cgi -->

    (1) Your code above has no closing quote mark at the end of the path.

    (2) Your path above starts with both / and http://, so it's a mess already.

    (3) The path needs to point at the filesystem location (relative to htdocs) for the server, not the web location for the outside world. So /cgi-bin/bw-counter/bw-counter.cgi might be closer to the mark. Drop the http:/ and domain name.

    (4) The web server needs to have permission (as user 'httpd ', 'apache' or 'nobody') to execute the script. Change modes and permissions suitably to allow this.

    (5) This has nothing to do with Perl.

    --
    [ e d @ h a l l e y . c c ]

      Ok Thanks will go and try this
Re: OT: Server-Side Include (SSI) not working
by talexb (Chancellor) on Nov 07, 2005 at 18:03 UTC

    Is there any useful information in the web logs? When you view the raw HTML, are there any clues?

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

      No Errors in the log, as cgi is working

        Let's back up -- what problem are we trying to solve here?

        Alex / talexb / Toronto

        "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re: OT: Server-Side Include (SSI) not working
by sauoq (Abbot) on Nov 07, 2005 at 18:15 UTC

    This is almost impossible to answer with any accuracy given the minimal amount of information you have provided. It could be anything from SSI not being enabled to a style sheet that renders the text in the same color as its background.

    -sauoq
    "My two cents aren't worth a dime.";