Fynn Posted September 6, 2008 Share Posted September 6, 2008 Hi, I've an Apache config with a number of name based vhosts running within a common root. Within the same root directory, I have a library of common javascript / css / image files that I would like to be able to reference from within any site root. I've read about following symlinks etc., but I'm not sure that's the best way to proceed. Essentially, I was looking for a redirect I could put in the <virtualhost> declaration which would redirect all requests to /library to the library folder which sits outside the root of that particular vhost. Any ideas? Thanks in anticipation. Link to comment https://forums.phpfreaks.com/topic/122953-solved-best-way-to-access-files-outsite-site-root/ Share on other sites More sharing options...
Fynn Posted September 6, 2008 Author Share Posted September 6, 2008 Ah! got it. in mods-enabled I added the line: Alias /library/ "/mnt/data/www/library" Link to comment https://forums.phpfreaks.com/topic/122953-solved-best-way-to-access-files-outsite-site-root/#findComment-634987 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.