If you have already installed Apache on un-managed server, you can enable or disable Apache modules using SSH login.
Please note that anything you change in your server, a restart is needed to make that change effective.
Now login to server using SSH console and continue below steps:
To enable mod_headers:
1 |
sudo a2enmod headers |
To enable mod_expires:
1 |
sudo a2enmod expires |
after completing the server update, you need to restart Apache server to make these changes effective. Enter below line in your SSH console to restart Apache.
1 |
service apache2 restart |
Or else reboot your server by following code in SSH:
1 |
reboot |
thank you for this tip