Re: FC6 httpd Alias/symbolic link

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

 



On Tue, 2007-03-06 at 03:59 -0500, linuxmaillists@xxxxxxxxxxx wrote:
> I have read this several times and it just is not working 
> for me.
> 
> http://httpd.apache.org/docs/2.2/howto/public_html.html
> http://httpd.apache.org/docs/2.2/mod/mod_userdir.html#userdir
> http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
> 
> The text below came from the Apache manual on my local box
> 
> The Alias directive allows documents to be stored in the 
> local filesystem other than under the DocumentRoot. URLs 
> with a (%-decoded) path beginning with url-path will be 
> mapped to local files beginning with directory-path.
> 
> What does the second sentence above mean?

It might help if you gave us the URI for where that sentence came from,
but it sounds like one of the techniques used for mass virtual hosting
without lots of individual configurations per host.  Apache can take the
domain name of the request, and use it as the root document directory
for that domain.

e.g. It could map requests for <http://example.com/something.html> and
<http://example.net/else.html> to get their files from
"/var/www/example.com/something.html" and "/var/www/example.net/else.html"

>  # cd /; ln -s / public_html
> Accessing http://localhost/~root/
> 
> This would allow clients to walk through the entire filesystem.

Not a good idea of something to try.  Though "~/root" would try to use
the root user's homespace, which isn't / but /root.  And that sort of
thing probably won't work as you'd expect if you have SELinux enabled,
as HTML serveable files have to have the right contexts.

It might help if you give a good description of what you're wanting to
do.

-- 
(This PC runs FC4, my others FC5 & FC6, 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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux