LinuxQuestions.org
Help answer threads with 0 replies.
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 03-08-2007, 08:18 PM   #1
anwar
Member
 
Registered: Aug 2005
Location: Philippines
Distribution: Slackware 11.0
Posts: 44

Rep: Reputation: 15
How to host ~users in apache?


Hi! I've installed the stock apache from my slackware 11 dvd.

I just want to know how do I host users so that each of them has their own directory serving webpages.

e.g. http://localhost/~user

Thanks!
 
Old 03-08-2007, 09:12 PM   #2
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
You can use virtualhost directive to do so
http://httpd.apache.org/docs/1.3/vhosts/examples.html
 
Old 03-08-2007, 10:18 PM   #3
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
You will need to make sure Apache is compiled with mod_userdir. Check the httpd.conf and search for mod_userdir. There should be a AddModule and LoadModule for mod_userdir.

Then check the section

Quote:
# 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>
Restart Apache if any changes have been made. You should then be able to access the user's home directory via http://domain.com/~username/
 
Old 03-08-2007, 10:34 PM   #4
anwar
Member
 
Registered: Aug 2005
Location: Philippines
Distribution: Slackware 11.0
Posts: 44

Original Poster
Rep: Reputation: 15
wow it worked!!! Thanks a lot guys!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can Apache host more than one webpage? Jestrik Linux - Networking 2 03-29-2004 04:15 PM
apache and virtual host diverge Linux - Networking 2 01-11-2004 02:45 AM
To forward mails for unknown users to common host fnetindia Linux - Software 2 09-22-2003 10:53 PM
Virtual host and apache Samspeed Linux - General 8 08-06-2003 07:41 AM
apache virtual host mimi Linux - General 1 04-06-2002 05:11 AM

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

All times are GMT -5. The time now is 05:57 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