Re: Can use "Alias" out of root directory?

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

 



Hi,
Can I set "Alias" in httpd.conf to point to directory that is not under the root directory? Lets say I have folder "A", folder "B" (under "A") and folder "C" (under "B")
I also have folder "D" (under "A").
My root directory point to folder "C".
Can I set Alias for folder "D" or it will out of scope?
you can set Aliases for any directory available via your filesystem as the second argument is a directory path, not an URL path. You just need to set the absolute paths of such directories, i.e. something like /usr/local/apache2/extra-site-dirs/D instead of just D. I think http://httpd.apache.org/docs/2.2/mod/mod_alias.html#Alias should be pretty clear about that.


Regards
Sascha

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux