• Home
  • Jobs
  • Courses
  • Teachers
  • For business
  • Blog
  • ES/EN

0

20
Views
How to restrict icons/readme.md from other users in apache?

I want to restrict all directories and files to the end users, but the application should be accessible. I have restricted all directories except readme.md. I cannot even locate the file inside www folder. But the file is viewed when it is ran in the browser as follows.enter image description here

Following are the changes I have done in httpd.config file

<Directory "c:/wamp64/www">
     Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1
     Allow from ::1
     Allow from localhost
</Directory>

<Files "c:/wamp64/icons/readme.md">
     Order Deny,Allow
     Deny from all

</Files>

<Directory "c:/wamp64/www/*">
    Allow from all
</Directory>

Apache 2.4 is my version

16 days ago ·

Santiago Trujillo

Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.