Differences
This shows you the differences between two versions of the page.
| — | tech:linux:apache_configuration [2022/02/13 12:28] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Apache Configuration (Ubuntu 18.04 Bionic Beaver) ====== | ||
| + | ===== Enable the below ===== | ||
| + | <code bash> | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | ===== / | ||
| + | Original vs Modified (Original ''<'' | ||
| + | <code diff> | ||
| + | 175a176,181 | ||
| + | > < | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | > </ | ||
| + | > | ||
| + | 213a220 | ||
| + | > LogFormat " | ||
| + | 216a224,227 | ||
| + | > LogFormat "%h %t %>s %B %D %k" performance | ||
| + | > LogFormat " | ||
| + | > | ||
| + | > SetEnvIf X-Forwarded-For " | ||
| + | 222c233,234 | ||
| + | < IncludeOptional conf-enabled/ | ||
| + | --- | ||
| + | > # | ||
| + | > Include conf-enabled/ | ||
| + | 225c237,238 | ||
| + | < IncludeOptional sites-enabled/ | ||
| + | --- | ||
| + | > # | ||
| + | > Include sites-enabled/ | ||
| + | </ | ||
| + | |||
| + | ===== / | ||
| + | No differences | ||
| + | |||
| + | ===== / | ||
| + | Create New file ''/ | ||
| + | < | ||
| + | ServerName localhost | ||
| + | ExtendedStatus On | ||
| + | < | ||
| + | SetHandler server-status | ||
| + | AuthType basic | ||
| + | AuthName " | ||
| + | AuthUserFile / | ||
| + | Require valid-user | ||
| + | Order deny,allow | ||
| + | Deny from all | ||
| + | Allow from 192.168.1.1/ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Link this file to '' | ||
| + | <code bash> | ||
| + | cd / | ||
| + | ln -s ../ | ||
| + | htpasswd -c serverstatus.htpasswd < | ||
| + | </ | ||
| + | |||
| + | ===== / | ||
| + | You can ignore differences here. | ||
| + | |||
| + | ===== / | ||
| + | No changes to: | ||
| + | * 000-default.conf & | ||
| + | * default-ssl.conf | ||
| + | |||
| + | Note: Custom configuration that I have. Add these to directories: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | Ref: [[tech: | ||
| + | |||
| + | |||