문제

Very rusty with PHP and Apache so hopefully this will be an easy question. The Apache Wiki has a page on setting up PHP-FPM with Apache 2.4, but the specified ProxyPassMatch method of forwarding requests for .php files to the php-fpm module is insecure. Is there a standard/canonical setup that is secure?

도움이 되었습니까?

해결책

It's not insecure anymore. There's a new config parameter for php-fpm (since 5.3.9), security.limit_extensions, that defaults to '.php' so php-fpm will only run files with these extensions. It won't run the .jpg in that example.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top