Last active
November 20, 2015 06:30
-
-
Save forestbaker/9bdb37a6e7bb93e3b6c1 to your computer and use it in GitHub Desktop.
Apache2 reminders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The /etc/apache2/httpd.conf is empty in Ubuntu, because it is there for historic reasons | |
Apache2 user options should go into a new *.conf-file inside /etc/apache2/conf.d/ | |
httpd.conf or apache2.conf may get overwritten during an update | |
To make sure the above works, check that /etc/apache2/apache2.conf contains the following lines: | |
Include conf.d/ | |
In Apache 2.4+ the user configuration directory is /etc/apache2/conf-available/ | |
Use a2enconf FILENAME_WITHOUT_SUFFIX to enable the new configuration file, or manually create a symlink in /etc/apache2/conf-enabled/ | |
As of Apache 2.4 the configuration files must have the suffix .conf (e.g. conf-available/my-settings.conf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment