Web Servers on Unix and Linux - FollowSymLinks + mod_vhost_alias?

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > April 2006 > FollowSymLinks + mod_vhost_alias?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author FollowSymLinks + mod_vhost_alias?
end-user

2006-04-02, 7:18 pm

I want to map /home/t/thisdomain.com to /home/o/otherdomain.com using a
symlink. [cd /home/t ln /home/o/otherdomain.com/ thisdomain.com]
This will mimic one to the other. Now, I have a vhost_alias directive
[VirtualDocumentRoot /home/%2.1/%2/htdocs] and a <DirectoryMatch>
directive [<DirectoryMatch "^/home/[a-z]/[a-z-0-9]+\.[a-z]{2,4}/htdocs">]

My question is, why am I getting a "Symbolic link not allowed" error?
MikeDawg

2006-04-10, 7:31 pm

Don't forget to add the directive "FollowSymLinks" (or
SymLinksIfOwnerMatch) to the options line in your <Directory> statement.

end-user

2006-04-10, 7:31 pm

MikeDawg wrote:
> Don't forget to add the directive "FollowSymLinks" (or
> SymLinksIfOwnerMatch) to the options line in your <Directory> statement.
>


Well, I have it in the Options line outside any directives so it applies
to the server globally. I guess I wish the error message would be more
explicit (not allowed because of x, or something conflicts with y, or
whatever) -- I need to know whether it's not being allowed, or it's not
finding it, or what.

Also, the docs say that the server "does not change the pathname used to
match against <Directory> sections" -- am I correct with my
DirectoryMatch directive? Because I'm matching the directory, and they
all follow the same pattern it should work, right?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com