LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-21-2004, 04:37 PM   #1
ZingSter
Member
 
Registered: Aug 2004
Location: Northern California
Distribution: SuSE 9.1 Personal; SuSE SLES 9
Posts: 66

Rep: Reputation: 15
/Public_html Folder....what is it?


Hey Gang,
Being the Linux newbie that I am...todays question is...
What is the /public_html folder?
I see it under /home/username/public_html
Can someone explain its purpose or how to use it...?
I'm using SuSE 9.1 personal.

Thanks in advance.
 
Old 10-21-2004, 04:50 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
When you use Apache with the mod_userdir module (most distros set this up by default), you can specify a folder for that user to have their own webspace. By default, this is called public_html. If you put an index.html in there, and connect to your machine with a browser, using this URL:
http://your.name.or.ip/~username
your page would come up (as long as apache was set correctly - you might need to add another /). You might notice a lot of ISPs give you your own webspace using a similar URL.
 
Old 10-21-2004, 04:59 PM   #3
ZingSter
Member
 
Registered: Aug 2004
Location: Northern California
Distribution: SuSE 9.1 Personal; SuSE SLES 9
Posts: 66

Original Poster
Rep: Reputation: 15
So clarify if I'm wrong

Should I implement Apache correctly, configure etc, I would be able to share (via the internet) whatever information resides within the public_html folder?
in theory could I create and share html pages, post home movies, original music etc?
I'd like to know more.
 
Old 10-21-2004, 05:02 PM   #4
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
You can find all info you need and HOWTO under this Apache Documentation link:
http://httpd.apache.org/docs-2.0/howto/public_html.html
Quote:
On systems with multiple users, each user can be permitted to have a web site in their home directory using the UserDir[ex: public_html folder] directive. Visitors to a URL http://example.com/~username/ will get content out of the home directory of the user "username", out of the subdirectory specified by the UserDir directive.
Usually the "UserDir" is called "public_html" but you can change this folder name. And usually users don't have permission to save files in Apache's root directory.

Hope it helped!
Boby

EDIT

Quote:
Should I implement Apache correctly, configure etc, I would be able to share (via the internet) whatever information resides within the public_html folder?
in theory could I create and share html pages, post home movies, original music etc?
Yes! It's just like another webpage.

Last edited by Boby; 10-21-2004 at 05:05 PM.
 
  


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
localhost and public_html RJDavison Linux - General 5 01-09-2005 02:48 PM
PHP and public_html MurrayL Linux - Security 2 11-08-2004 01:00 AM
umask and public_html super-momo Linux - General 5 06-12-2004 01:37 AM
Making it so users can ftp into there Public_html folder embalmedlenin Linux - General 4 12-13-2003 06:05 PM
Cgi for public_html Drogo Linux - Software 2 05-29-2003 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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