Apache Web-Serving with Mac OS X, Part 4
Subject:   Changing .conf has no effect
Date:   2002-04-23 20:13:02
From:   loopless
I have modified my andrewc.conf file
<Directory "/Users/andrewc/Documents/SoftwareDev/Java/RMI/Trim">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

to point to a new directory, yet when I enter the
I keep getting the default user page in the ~/Sites folder.

error_log shows,,,,,

Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/andrewc.conf

The last lines in the error_log are
statfs failed because: Permission denied
statfs failed because: Permission denied
access_log shows - - [23/Apr/2002:20:05:51 -0700] "GET /~andrewc/ HTTP/1.1" 304 - - - [23/Apr/2002:20:05:52 -0700] "GET /~andrewc/images/macosxlogo.gif HTTP/1.1" 200 2829 - - [23/Apr/2002:20:05:52 -0700] "GET /~andrewc/images/apache_pb.gif HTTP/1.1" 200 2326 - - [23/Apr/2002:20:05:52 -0700] "GET /~andrewc/images/web_share.gif HTTP/1.1" 304 -

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Morbus Iff photo Changing .conf has no effect
    2002-04-24 20:09:10  Morbus Iff | O'Reilly Author [View]

    Yup, you're confusing the values of the different config files. Basically, the tilde character (the ~ in ~andrewc/) is magical, and has little to do with the <Directory> defined in your andrewc.conf file. There are a couple of different ways of doing what you want, but the most understand is to use an "Alias", like so:

    Alias /~andrewc/ "/Users/andrewc/Documents/SoftwareDev/Java/RMI/Trim"

    You'd throw that in your andrewc.conf right above your <Directory> declaration (actually above or below - doesn't make a difference). You also want to make sure that your Documents directory, as well as all the subdirectories leading up to your Trim destination are set for 755 permissions. Otherwise, Apache won't be able to serve documents from that location.

    I talk a bit about the "Alias" directive in the recently released Part 6, and will discuss the tilde character and it's magic in part 7 (not yet released).
    • Changing .conf has no effect
      2002-04-24 23:26:39  loopless [View]

      So that's it working now
      Thanks for the great article