How to enable mod_rewrite and mod_headers in my presinstalled Apache

apache
ubuntu

#1

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


#2

what template are you using ?


#3

Im using the one with php, apache preinstalled


#4

Try Using Blank Template And Install Apache2 Manually


#5

It seems Ubuntu has subdivided the file starting from if you read through its comments:
~/root/etc/apache2/apache2.conf
Assuming for making toggle of rewrite.so 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.