LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Question about mydomian.com/~mydir (https://www.linuxquestions.org/questions/linux-networking-3/question-about-mydomian-com-%7Emydir-4903/)

360 07-31-2001 09:17 AM

Question about mydomian.com/~mydir
 
I have a directory such as mydomain.com/~mydir. Many people have direct links to this address. When I switch webhosting companies, how do I create this directory? Ws_ftp wont let me create the directory with a tilda (~) in it.

What is this type of direcory with a tilda for anyway?

I have Unix Sys Admin Handbook and Apache by O'Reilly if you can refer me to a chapter.

Thanks,

360 :study:

jharris 07-31-2001 09:23 AM

You don't create the directory. It is a mapping (typically to public_html) done in your httpd.conf. This is taken from my httpd.cof
Code:

#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

So when you go to a ~username URL apache returns the pages in the users public_html directory.

HTH

Jamie...


All times are GMT -5. The time now is 01:34 AM.