LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-26-2007, 09:26 AM   #1
jennylschofield
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, 06:21 AM   #2
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 39
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:
Code:
#
# 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 06:22 AM.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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