Getting apache configured for "~" for user directories
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Getting apache configured for "~" for user directories
Hi all,
I am pretty new at this. I have a Linux box at home running apache, hosting a website through my DSL connection. Everything more or less works. I invited a friend to use this webspace and created an account for him. Now I know at school, my personal webpage is accessed via www.school.edu/~myname . So in my home directory I have a public_html folder and have my pages in there. How do I get this set up on my system because it doesn't work right now?
Again, the regular site works fine. Everything lives in /var/www/html/ with no problems. I know that I can make a folder for my friend in there, but was hoping to keep him in his home directory (as it should be for guest users, right?). So say his name is 'fred', I'd like www.mysite.com/~fred to work by finding a public_html folder in /home/fred/.
If you need any further details, just let me know. You may need to tell me how to get those details for you! Any advice appreciated.
Have you had a look through the howto at http://httpd.apache.org/docs/2.0/howto/public_html.html yet? It should cover everything you need to get it running - if not, can you tell us what problems you've had so far in setting it up?
Thanks again for that link. I was able to hand edit the httpd.conf file and apache does what I wanted it to.
As a follow-up question though, I am running Red Hat 3.2.2 and tried using apacheconf for this change. In the ensuing dialog box I found nowhere for making the adjustments I wanted. Not too big of deal, but did I miss something in apacheconf or does this type of adjustment have to be made directly in the httpd.conf file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.