Forum Moderators: phranque

Message Too Old, No Replies

special character ~ in directory

         

zepherious

10:14 am on Apr 28, 2005 (gmt 0)



Hi just got apache and trying to set up a directory called "~carpet" (without quotes) but it doesnt seem to work with the ~ in front,yet it works when i just have the directory called "carpet"

its vital that the ~ is in use, please could someone help me? do i have to configure something?

sitz

1:15 pm on Apr 28, 2005 (gmt 0)

10+ Year Member



1) what is the error you get?
2) why is the '~' vital? Note that on Unix, the '~' character is special; ~user1 means to look up 'user1' in /etc/passwd (or whatever name lookup database you're using), find the 'home directory' field, and use /that/ path.

If you're getting 404s, you could comment out mod_userdir.so in your httpd.conf and then comment out all references to the 'UserDir' directive; mod_userdir is the module that performs ~user -> homedir expansions. Information on mod_userdir is available at [httpd.apache.org ].