Article:
 |
|
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
</Directory>
to point to a new directory, yet when I enter the http://127.0.0.1/~andrewc/
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
127.0.0.1 - - [23/Apr/2002:20:05:51 -0700] "GET /~andrewc/ HTTP/1.1" 304 -
127.0.0.1 - - [23/Apr/2002:20:05:52 -0700] "GET /~andrewc/images/macosxlogo.gif HTTP/1.1" 200 2829
127.0.0.1 - - [23/Apr/2002:20:05:52 -0700] "GET /~andrewc/images/apache_pb.gif HTTP/1.1" 200 2326
127.0.0.1 - - [23/Apr/2002:20:05:52 -0700] "GET /~andrewc/images/web_share.gif HTTP/1.1" 304 -
|
Showing messages 1 through 2 of 2.
-
Changing .conf has no effect
2002-04-24 20:09:10
Morbus Iff |
[View]
-
Changing .conf has no effect
2002-04-24 23:26:39
loopless
[View]
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).