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.com
ServerAlias other.mydomain.com
DocumentRoot "/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 FollowSymlinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#2 Apache Alias template
Alias /path /data/wwwroot/mediawiki
<Directory "/data/wwwroot/mediawiki">
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
#3 Apache HTTPS VirtualHost template
<VirtualHost *:443>
ServerName www.mydomain.com
DocumentRoot "/data/wwwroot/mediawiki"
#ErrorLog "logs/www.mydomain.com-error_log"
#CustomLog "logs/www.mydomain.com-access_log" common
<Directory "/data/wwwroot/mediawiki">
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
SSLEngine on
SSLCertificateFile /data/cert/www.mydomain.com.crt
SSLCertificateKeyFile /data/cert/www.mydomain.com.key
SSLCertificateChainFile /data/cert/root_bundle.crt
</VirtualHost>