Apache 2.2 and php-fpm directory configuration

General Tech Bugs & Fixes 3 years ago

9.03K 1 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

I have installed apache 2.2 and php-fpm. In httpd.conf:

DocumentRoot "/var/www/local.site/public_html


    AllowOverride None
    Order Deny,Allow
    Deny from all


php5-fcgi/">
       Order Deny,Allow
       Allow from 127.0.0.1
       Allow from ::1
       #Allow from all


html>
       Order Allow,Deny
       Deny from all

How to allow to execute *.php and html files, but deny directories listening? Because, whatever I do, it is denied /php5-fcgi/, *.php, or it is allowed to read directories.

0 views
0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum