Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-26-2007, 10:26 AM   #1
LQ Newbie
Registered: Apr 2007
Posts: 3

Rep: Reputation: 0
http sever will not allowe me to set up my webpages in /home/dan/public_html

I have an http sever that works but how do i have my web pages in /home/dan/public_htm when i type in my hostname folloed by my domain name i run open suse 10.2.
Old 04-27-2007, 07:21 AM   #2
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
Are you using apache?

If so, open up the apache config file in your favourite text editor (usually /etc/apache/httpd.conf IME) and look for this stanza:
# 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
And uncomment the last two lines, then restart apache.

You can replace public_html with whatever you want to call the folder in your home dir.

Last edited by Lordandmaker; 04-27-2007 at 07:22 AM.


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
Madman HTTP sever/Music server Darek84CJ Linux - Software 2 01-31-2006 02:48 PM
/home/public_html as default KrGAce Linux - Enterprise 1 03-04-2005 09:18 AM
RedHat 7.2 server hacked and all $HOME/public_html/index.htm files replaced abesharp Linux - Security 5 12-09-2004 04:05 AM
apache unable to access /home/*/public_html directory cavemanf16 Linux - Software 6 07-08-2004 06:43 AM
can i set ~/public_html/perl as a perl directory for apache? doublefailure Linux - Networking 1 07-09-2002 05:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 AM.

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