[proxy_fcgi:error] [pid 3659] (70007)The timeout specified has expired: [client :39524] AH01075: Error dispatching request to : (polling)

Problem:
[proxy_fcgi:error] [pid 3659] (70007)The timeout specified has expired: [client :39524] AH01075: Error dispatching request to : (polling)

Solution:
vim /etc/httpd/conf/httpd.conf
Timeout 600

systemctl reload httpd

Reference: https://stackoverflow.com/questions/46594731/php-apache-error-dispatching-request

GoAccess Usage

Installation
https://goaccess.io/download

Config File
sudo vim /usr/local/etc/goaccess.conf
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %h [%d:%t %^] \”%r\” %>s %b %D %T \”%{Referer}i\” \”%{User-Agent}i\”

Generate HTML Report
goaccess -f /…/logs/access.log > /…/reports.html

Apache SNI

Step 1. vim /etc/httpd/conf/httpd.conf

NameVirtualHost *:443
Include /etc/httpd/conf/extra/httpd-vhosts.conf

Step 2.  vim /etc/httpd/conf/extra/httpd-vhosts.conf

<VirtualHost *:443>
    DocumentRoot "/var/www/vhosts/my-helper.com/htdocs"
    ServerName my-helper.com
    ServerAlias www.my-helper.com
    <Directory "/var/www/vhosts/my-helper.com/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/var/www/vhosts/my-helper.com/logs/ssl_error_log"
    TransferLog "/var/www/vhosts/my-helper.com/logs/ssl_access_log"
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/my-helper.com/my-helper.com.crt
    SSLCertificateKeyFile /etc/pki/tls/certs/my-helper.com/ca.key
    SSLCertificateChainFile /etc/pki/tls/certs/my-helper.com/gd_bundle.crt
</VirtualHost>

You don’t have permission to access / on this server.

Problem: Received the error “You don’t have permission to access / on this server.” when you try to setup Apache virtual host on Mac OS.

Solution: Add the below line to httpd-vhosts.conf

<Directory “/Users/uiroshan/development/php”>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<Directory “…”>
Options Indexes FollowSymLinks MultiViews
</Directory>

Reference: http://stackoverflow.com/questions/17195716/wordpress-noob-forbidden-you-dont-have-permission-to-access-on-this-server

Enable Reverse Proxy on Apache

<VirtualHost *:80>
ProxyRequests Off
ProxyPass /blog http://blog.my-helper.com
ProxyPassReverse /blog http://blog.my-helper.com

</VirtualHost>

When users visit http://www.my-helper.com/blog, server will display the content of http://blog.my-helper.com.

Remark: Need to enable apache module mod_proxy and mox_proxy_http first.