Modify apache config file directly
Hi,
I need to add the following to my apache config file:
I have 2 questions regarding this
When I open that file with nano it is completely empty, so can I just add my modifications in this file, restart Apache and be done with it? :)
Options FollowSymLinks MultiViews Includes Indexes
AllowOverride All
Require all granted
I have 2 questions regarding this
- ]
- How do I figure out what the full path is to my public_htme folder
- In which config file do I add this block?
When I open that file with nano it is completely empty, so can I just add my modifications in this file, restart Apache and be done with it? :)
-
Hello, The default path to the public_html directory is the following by default: /home/$username/public_html/
You'd replace "$username" with the username of the cPanel account the domain name is associated with. As far as setting up that entry for a specific domain name, you can follow the steps and examples outlined on the following document: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel DocumentationI have read the docs about the risks when modifying httpd.conf directly Advanced Apache Configuration - EasyApache 4 - cPanel Documentation Thank you.
0 -
Thanks @cPanelMichael! That was easy :) 0
Please sign in to leave a comment.
Comments
2 comments