A customer-facing Apache deployment example for TruCMS.
Apache must serve the application from the public directory. Enable URL rewriting and permit the public directory’s rewrite rules to run.
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/trucms/public
<Directory /var/www/trucms/public>
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/trucms-error.log
CustomLog ${APACHE_LOG_DIR}/trucms-access.log combined
</VirtualHost>HTTPS
After confirming the site loads, enable a valid TLS certificate and redirect HTTP traffic to HTTPS.