LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-01-2010, 06:56 PM   #1
kind_aj
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Question How would you ( I ) enable sam to publish web pages from his ~/website dir. but not


How would you ( I )enable sam to publish web pages from his ~/website directory but not allow anyone else to publish to the web?
I am trying to do this in Fedora. Or should i do this through Apache?

Last edited by kind_aj; 12-01-2010 at 06:59 PM. Reason: needed to add which version i was using.
 
Old 12-01-2010, 07:05 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
You could just add an Alias and Directory directive to your site

eg.
Code:
Alias /sam /home/sam/website
<Directory /home/sam/website>
    Options ...
    Order allow,deny
    Allow from all
</Directory>
<edit> if you're running Fedora please be aware that selinux will deny access to user home directories by default </edit>

Last edited by kbp; 12-01-2010 at 07:07 PM.
 
  


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
publish a website on local server hussain6001 Linux - Networking 8 09-27-2010 11:14 AM
How to download web pages from a website using wget command Fond_of_Opensource Linux - Newbie 5 07-05-2006 10:50 AM
How to publish a website? vivekr Programming 4 06-04-2006 04:21 PM
how to let linux publish my website? sorno Linux - Newbie 11 07-01-2005 10:59 AM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 06:44 PM


All times are GMT -5. The time now is 02:08 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration