LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How would you ( I ) enable sam to publish web pages from his ~/website dir. but not (https://www.linuxquestions.org/questions/linux-newbie-8/how-would-you-i-enable-sam-to-publish-web-pages-from-his-%7E-website-dir-but-not-847790/)

kind_aj 12-01-2010 05:56 PM

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?

kbp 12-01-2010 06:05 PM

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>


All times are GMT -5. The time now is 10:42 PM.