HOW TO MANAGE SUB-DIRECTORY PERMISSIONS IN APACHE

May 13, 2019   /   by Marco  / Categories :  Business, Technology, Websites
Business Legions - HOW TO MANAGE SUB-DIRECTORY PERMISSIONS IN APACHE

If you want to set permissions for subdirectories e.g restrict public access to /home/folder1/ but allow access to /home/folder1/folder2 then this is one way of doing it:

NOTE: I’m using VestaCP, an open source control panel for web hosting so these steps may not work for you

Copy and the default.stpl and default.tpl files in /usr/local/vesta/data/templates/web/httpd/ e.g default-modified.stpl  (I decided to do this since the https.conf file gets rewritten every time I modify the website config via the VestaCP dashboard)

Edit the copied files and add the following:

Restart the httpd service using

Test by accessing the two folders using a public IP address (e.g from your mobile phone) and the other from the static IP address x.x.x.x

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


FINALLY MANAGED TO UNBLOCK OUR WEBSITE ON FACEBOOK

FINALLY MANAGED TO UNBLOCK OUR WEBSITE ON FACEBOOK

It’s been over 8 months since our website URL was blocked on Facebook. We tried different methods to get it unblocked and this week we managed to unblock it. You will now notice our Facebook page is displaying our old posts. Basically, Facebook blocked our website URL businesslegions.com because the link goes against their Community […]

read more
GOOGLE PIXEL CAMERA APP HIDDEN FEATURE – SPIRIT LEVELLER

GOOGLE PIXEL CAMERA APP HIDDEN FEATURE – SPIRIT LEVELLER

Do you want to display the spirit leveller on your camera app. Just like this: If you use the Google camera app (found by default on the Google Pixels), then you’re in luck. I found this out by accident and you can read how to turn this on here: HOW TO TURN ON THE SPIRIT […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

Social Wall Social Wall