Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   Error document
Date:   2002-01-16 06:45:36
From:   martino
As a non-developer I'm having a hard time making a 404 document. I gave up now. Are you planning to address this subject in the future? Maybe there's some kind of script or app that does this?


Martino

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • Morbus Iff photo Error document
    2002-01-16 13:59:23  Morbus Iff | O'Reilly Author [View]

    Yup, I just finished the description and implementation of this for another article, to be published on O'Reilly. Be patient, grasshopper ;) ...
    • Error document
      2002-01-18 04:23:31  martino [View]

      Cool. Because at this time, I can't make any files starting with a period, which is what this .htaccess has. When I try to change such a file, I first have to make it visible, but doing that with Filebuddy (invisible flag) doesn't have any effect on its visibility. Saving the file doesn't work either, Mac OS X will report an error, claiming these are for system use only.
      Some clever programmer might be able to write a small program that goes around these restrictions that changes the server to use a error.html document in the root.

      Martino
      • Morbus Iff photo Error document
        2002-01-18 09:59:19  Morbus Iff | O'Reilly Author [View]

        Martino,

        You can make and save .htaccess files, but you have to turn on "ShowAllFiles" in the finder.plist file (I think that's the one). I have all the "how to do it manually" info on a different machine, but you may want to look into software products like Tweaker and other similar utilities on versiontracker.com. If you want the manual info, email me at morbus@disobey.com.

        With the setup I have now, I can see all files through my Finder view (including dot files) as well as save and edit them (assuming I have the right permissions).
        • Error document
          2002-01-25 12:14:06  haymaker [View]

          I was having this problem too and realized that you have to be root in order to save a file witha "." at the beginning. Now I just create a file called htaccess (without the dot in front of it) with all the necessary information in it, and through the terminal type "sudo mv htaccess .htaccess" and it renames it with the dot in front of it. I don't know if that's the easiest solution, but it's been working for me.

          -Chris