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.
Changing .conf has no effect
2002-04-24 20:09:10
Kevin Hemenway |
[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......got it working now
Thanks for the great article
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).