LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-05-2007, 03:44 PM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 673
Blog Entries: 11

Rep: Reputation: 36
apache2 serving <username>'s page


I have apache 2 running on my computer locally (localhost) and I want to make it so that I can put a folder in my home directory and have apache serve it. I've seen it in other threads but I forgot how they did it.

I've seen other apache sites where the individual users have pages that you can reference by typing '~username' at the end of the web address. That's what I want to do. I already have material that I have apache serving at "/var/www/" and it works fine. So, if anybody has a page that explains it, or maybe can explain it themselves, I'd really apreciate it.

Last edited by radiodee1; 04-05-2007 at 03:47 PM.
 
Old 04-05-2007, 05:10 PM   #2
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
Files to be served from home directories need to be in a 'public_html' directory. I would also suggest that you make a 'public_html' directory in /etc/skel so that any new users that are created will have public_html directories too.

There may be a directive that needs to in /etc/apache2/apache2.conf, but I don't think there is and user directories worked out-of-the-box so to speak on my installation of Debian.
 
  


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
Apache2 is serving PHP source files unless called without the extension rjlee Linux - General 3 12-08-2006 07:17 AM
Help with Web Page Hosting and Apache2 Hambone_20003 Linux - Software 2 08-23-2005 09:31 PM
Apache2 running but not serving any page Kerion Linux - Newbie 4 07-28-2004 06:16 PM
Can't access user account web page in browser - ~username DogTags Mandriva 6 01-29-2004 09:29 AM
Redhat 9, apache + frontpage not serving pages except admin page JRinOKC Linux - Newbie 5 01-12-2004 03:58 AM


All times are GMT -5. The time now is 10:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration