Listen 9096 DocumentRoot /usr/share/baculum/htdocs ServerName localhost CustomLog /var/log/httpd/baculum-api-access.log combined ErrorLog /var/log/httpd/baculum-api-error.log # # NOTE: To enable encrypted connection please prepare cert files and # then uncomment SSL lines below # #SSLEngine on #SSLCertificateFile /etc/baculum/Config-api-apache/baculum.crt #SSLCertificateKeyFile /etc/baculum/Config-api-apache/baculum.pem Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+)$ index.php/$1 [L] RedirectMatch ^/$ /api/?api Require all granted # # NOTE: When you use OAuth2 then change this location section # From: # To: # AuthType Basic AuthName "Baculum Auth" AuthUserFile /usr/share/baculum/htdocs/protected/API/Config/baculum.users Require valid-user Order Deny,Allow Deny from all Order Deny,Allow Deny from all Order Deny,Allow Deny from all mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file \.js$ mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* ExpiresActive On ExpiresDefault "access plus 864000 seconds" Header set Cache-Control "max-age=864000, private"