https://bz.apache.org/bugzilla/show_bug.cgi?id=59815

--- Comment #12 from Trent Lloyd <[email protected]> ---
Simple test setup for anyone wanting to reproduce.

System: Ubuntu 16.04 xenial with 2.4.23-1+deb.sury.org~xenial+1
fromppa:onrej/apache2 (https://launchpad.net/~ondrej/+archive/ubuntu/apache2)
-- also works on trusty, just need to modify the fpm socket path

apt-get install apache2 php7.0-fpm
a2enmod proxy proxy_fcgi rewrite
# after setting up the below 3 files/directoryes, then systemctl restart
apache2

root@xenial:/var/www/html/subdir# cat
/etc/apache2/sites-enabled/000-default.conf 
<VirtualHost *:80>
  LogLevel alert rewrite:trace3
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  <FilesMatch "\.php$">
    SetHandler  "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://"
  </FilesMatch>
  <Directory /var/www/html>
  AllowOverride All
  </Directory>
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
root@xenial:/var/www/html/subdir# cat .htaccess 
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

root@xenial:/var/www/html/subdir# cat index.php 
<?= phpinfo(); ?>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to