LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-03-2007, 07:00 PM   #1
Alotau
Member
 
Registered: Jan 2005
Location: Fremont, CA
Distribution: Red Hat 9
Posts: 58

Rep: Reputation: 15
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.
 
Old 04-03-2007, 07:07 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 04-03-2007, 07:20 PM   #3
Alotau
Member
 
Registered: Jan 2005
Location: Fremont, CA
Distribution: Red Hat 9
Posts: 58

Original Poster
Rep: Reputation: 15
Great! That is the kind of pointer I needed. If I am still lost, I'll post again. Thanks!
 
Old 04-03-2007, 08:12 PM   #4
Alotau
Member
 
Registered: Jan 2005
Location: Fremont, CA
Distribution: Red Hat 9
Posts: 58

Original Poster
Rep: Reputation: 15
Follow-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?

Thanks once more for any info.
 
Old 04-04-2007, 08:15 AM   #5
mcupples
Member
 
Registered: Jun 2006
Location: Orlando
Distribution: FC3, FC5, CentOS4, Ubuntu 6.06
Posts: 57

Rep: Reputation: 15
To be honest, I've never heard of apacheconf. Everything I've ever needed to change was in httpd.conf.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
K3b: - Howto re-dock "Directories" and "Contents" windows back into the main window? hagies Linux - Software 4 04-26-2006 08:38 AM
Is DNS configured in Apache, "named", or both? veeruk101 Linux - Newbie 5 03-31-2005 12:16 PM
Undefined Screen " XFree86" reference by serverLayout "XFree86 Configured" comox *BSD 7 01-17-2005 05:47 PM
Apache "per-user" directories opafire Linux - Software 1 08-15-2004 01:10 AM
where is "user apache" shell log? mikejrm Linux - Security 2 09-05-2003 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration