Using the Websoft9 Magento (LAMP), you should have some skills for configure Apache like below:
- List installed Apache modules
- Install Apache modules
- Understand Apache Configuration file
- Configure SSL certificate for Apache
- Apache Rewirte module and rules
- Understand .htaccess file configuration
- HTTP Status code
- Password-Protect Access To An Application With Apache
For the above content, we have prepared the Apache Quik Start for users.
Top3 Apache configuration you must use when using this Image
#1 Apache HTTP VirtualHost template
<VirtualHost *:80>ServerName www.mydomain.comServerAlias other.mydomain.comDocumentRoot "/data/wwwroot/mediawiki"ErrorLog "/var/log/httpd/www.mydomain.com_error_apache.log"CustomLog "/var/log/httpd/www.mydomain.com_apache.log" common<Directory "/data/wwwroot/mediawiki">Options Indexes FollowSymlinksAllowOverride AllRequire all granted</Directory></VirtualHost>
#2 Apache Alias template
Alias /path /data/wwwroot/mediawiki<Directory "/data/wwwroot/mediawiki">Options Indexes FollowSymlinksAllowOverride AllRequire all granted</Directory>
#3 Apache HTTPS VirtualHost template
<VirtualHost *:443>ServerName www.mydomain.comDocumentRoot "/data/wwwroot/mediawiki"#ErrorLog "logs/www.mydomain.com-error_log"#CustomLog "logs/www.mydomain.com-access_log" common<Directory "/data/wwwroot/mediawiki">Options Indexes FollowSymlinksAllowOverride AllRequire all granted</Directory>SSLEngine onSSLCertificateFile /data/cert/www.mydomain.com.crtSSLCertificateKeyFile /data/cert/www.mydomain.com.keySSLCertificateChainFile /data/cert/root_bundle.crt</VirtualHost>
