Restricting access to a symbolically-linked path using htaccess
October 14, 2008 7:13 AM
Subscribe
Can I restrict access to a symbolically-linked path using htaccess?
I have a Solaris file system that my Apache web server accesses through a symbolic link. I need to restrict access to those files to a select group of users. The rules for access are in a MySQL db, so I'm thinking I can run a cron to regularly generate an htpasswd file. An htaccess file won't work on the remote file system (which isn't running apache), though, will it? Can I add something to my httpd.conf file which will make users authenticate before accessing content on the other side of that symlink?
posted by jpoulos to computers & internet (1 comment total)
You can also put the rules in the httpd.conf (or a file included from it), say inside a <Directory> block.
posted by hattifattener at 10:10 AM on October 14, 2008