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 answer total)
 
Apache will check for .htaccess in the directories it's traversing regardless of whether the file system is local or remote (I doubt it knows or cares about that implementation detail). Is that what you're asking?

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


« Older Segoe UI Font Missing   |   Information on Shipping Large Items & the Best... Newer »
This thread is closed to new comments.