in reply to getting the html to the browser

You wrote:
The html file is generated by a perl script, if that makes it any more relevant to this forum.

Do you mean that a script creates a file, e.g. foo.html located in your webserver document tree and when a user gives the URL to the file it isn't served? Are you sure the file is named .htm or .html?

Or more likely, you probably don't mean that the script creates a file, but rather that a CGI script sends a CGI header and content to a browser (e.g. user clicks on foo.cgi or foo.pl). In that case are you sure that apache is set up to serve files with those extensions, and that CGI-scripts are executable in that location?

Either way, it sounds like you should look in your apache config for the answer.

Replies are listed 'Best First'.
Re^2: getting the html to the browser
by hesco (Deacon) on Jan 22, 2006 at 02:25 UTC
    No, I mean that a perl script uses wget to grab and massage a file served dynamically by a CMS to make it available for static service by another apache box. We're working to mitigate sometimes heavy loads on the script and database driven cms server.

    It is under the document root, or my browser would not find it to download it. What else would I need to tell apache so that it serves this as .html instead of a foreign file type it has to ask a human about?

    -- Hugh

      Do other files of the same file extension download correctly from that particular apache? If you look at the headers of the response, is it sending the correct Content-type header?
        OK. So I've added an Alias to the apache configuration to accomodate the cache directory. Do I need to add a new handler to serve up the static content? I can only find handlers for php and cgi. I would have thought apache would handle html by default. I hand wrote a simple test html file in the target directory on the server. trying to browse to it achieves the same result: I'm asked to identify the application the machine should use to open the file as it downloads it.

        How is it I could discern the actual hearders sent by the server? Could I use wget somehow for that purpose?

        -- Hugh

      Just wondering - are you sure that file is actually created on the server? I'm wondering whether it's not being created, or possible being given incorrect permissions. Also, have you checked who's the owner of the file after it's created (assuming it is created)?