How to enable mod_rewrite and mod_headers in my presinstalled Apache



I can’t find httpd.conf file in order to enable mod_rewrite and mod_headers


what template are you using ?


Im using the one with php, apache preinstalled


Try Using Blank Template And Install Apache2 Manually


It seems Ubuntu has subdivided the file starting from if you read through its comments:
Assuming for making toggle of files “easier”.
But the access is denied to save the file.
Here’s someone having the same issue with aws ec2:
Not sure if this works but will be attempting if it work, when closer to production phase.