• There is an official help page that shows nginx + php-fpm configuration files for serving WordPress (https://www.ads-software.com/support/article/nginx/). Is there a similar guide for using the Apache web server with php-fpm for serving WordPress?

    I came up with my own Apache web server configuration file, which seems to work. However, I am not sure if there are any gotchas. It would be good if the WordPress support articles also provided a sample configuration for Apache + php-fpm.

    <VirtualHost *:80>
        ServerName example.com
        DocumentRoot "/var/www/wordpress"
        <Directory "/var/www/wordpress">
            Require all granted
            DirectoryIndex index.php
            AllowOverride FileInfo
            FallbackResource /index.php
        </Directory>
        <Directory "/var/www/wordpress/wp-admin">
            FallbackResource disabled
        </Directory>
        ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/var/run/php/php-fpm.sock|fcgi://dummy/var/www/wordpress
    </VirtualHost>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Apache web server configuration file for WordPress’ is closed to new replies.