View Single Post
  #2  
Old 5th March 2013, 15:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

You can set up an alias in your vhost configuration like this:

Code:
                location /munin {
                       alias /var/cache/munin/www;
                       auth_basic "Restricted";
                       auth_basic_user_file /var/cache/munin/.htpasswd;
                       location ~* ^/munin/(.+\.(jpg|jpeg|gif|css|png|js|ico|xml|txt))$ {
                                alias /var/cache/munin/www/$1;
                       }
                }
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote