Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

201
Views
Apache 2.4 and FPM: Prohibit execution of php due to IP-Adresse

Situation: Here we have an apache 2.4 with php-fpm

vhost-Conf:

<VirtualHost *:80>
DocumentRoot /var/www/html/
ProxyPassMatch ^/(.*.php)$ fcgi://127.0.0.1:9000/var/www/html
</VirtualHost>

Content of /var/www/html/foo/.htaccess

 <RequireAny>
  Require ip 10.34.
 </RequireAny>

Works fine with "flat files"; means:

http://server/foo/picture.png

is blocked by an 403-Forbidden error. Great! But....

http://server/foo/myscript.php

is cheerful executed and is shown in the browser. Unfortunately I have no idea how to prevent this.

Someone else maybe?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!