Re: FC6 httpd Alias/symbolic link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2007-03-06 at 01:59 -0500, linuxmaillists@xxxxxxxxxxx wrote:
> My DocumentRoot is here:
> 
> DocumentRoot "/var/www/html"

The usual place.

> My Aliases look like this:
> 
> Alias /icons/ "/var/www/icons/"
> Alias /public_html "/home/user_name/public_html"

If you're using the userdirs feature, you don't need to mess with
aliasing it.

i.e. http://localhost/~tim/ refers to /home/tim/public_html/

For that to work, /home/ and /home/tim/ needs to be world executable.
And, /home/tim/public_html/ needs to be world executable and readable,
likewise any files to be served in there need to be world readable.
These are the permissions applied to "other" users.

Also, you may need to change SELinux settings or contexts for those
files.

> I want to be able to have one or two of my files 
> in /var/www/html and the rest of them 
> in /home/user_name/public_html
> 
> Will this work with Alias or symbolic links?

You can use aliases, or the userdir direcctive.

-- 
(This box runs FC6, my others run FC4 & FC5, in case that's
 important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux