Changes between Version 2 and Version 3 of howto/Apache2
- Timestamp:
- Dec 28, 2014, 11:25:55 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/Apache2
v2 v3 31 31 A sample configuration file is provided in `/opt/local/apache2/conf/original/httpd.conf`. Don't edit this file; leave it as is so you can refer to the defaults later. The first time you install apache2, the sample configuration file will be copied to `/opt/local/apache2/conf/httpd.conf` for you. You can edit this file as desired. When you later upgrade apache2 to a newer version, MacPorts will upgrade the sample configuration file but will not modify your `httpd.conf`, so be sure to manually compare your `httpd.conf` with the new sample configuration file and bring over any relevant changes. You should also keep backup copies of your `httpd.conf` in a safe place. 32 32 33 = = 2A: Verify your config file ==33 = Step 3: Verify your config file = 34 34 Verify any changes you have made to the config file: /opt/local/apache2/conf/httpd.conf 35 35 {{{ … … 38 38 This will return either "Syntax OK" or a specific line by line error listing. 39 39 40 = = 2B: Activate Apache2 ==40 = Step 4: Activate Apache2 = 41 41 Activate your Apache installation so that it starts now and every time you boot your machine: 42 42 … … 63 63 The default log file location is: '''/opt/local/apache2/logs/'''. The startup will be logged in "'''error_log'''" 64 64 65 = = 2C: Initial changes to the config file ==65 = Step 5: Initial changes to the config file = 66 66 Once you have determined that your basic installation is working, you need to consider making some initial changes to your config file. 67 67