in reply to Re: getting the html to the browser
in thread getting the html to the browser

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

Replies are listed 'Best First'.
Re^3: getting the html to the browser
by mshiltonj (Sexton) on Jan 22, 2006 at 02:45 UTC
    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

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

        Try this:
        man wget

        and then this:
        wget -S -O output.html http://domain.com/file.html

        Try manually creating a file in the same directory as the html file. Try foo.txt and foo.html. Check the permissions on the directory itself (and all parent directories) they should be 755.

        Since the question is really Apache related try http://www.webmasterworld.com/forum92/.
Re^3: getting the html to the browser
by spiritway (Vicar) on Jan 22, 2006 at 13:28 UTC

    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)?