apache.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 29 May 2025 22:47:01 +0300
changeset 2597 ece5f03bfc8a
parent 2596 9232f5c05694
permissions -rw-r--r--
Check swap status.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1911
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
.. -*- coding: utf-8; -*-
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
====================
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
 Apache HTTP server
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
====================
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
.. contents::
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
   :local:
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
How to reload config file?
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
==========================
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
For Linux::
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  $ /etc/init.d/apache2 restart
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
or for FreeBSD::
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
  $ /usr/local/etc/rc.d/apache2 restart
870693ce6ff0 Fix my RST article style by 'check-format-policy' target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
2596
9232f5c05694 Validate Apache config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    20
Validate Apache config
9232f5c05694 Validate Apache config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    21
======================
9232f5c05694 Validate Apache config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    22
9232f5c05694 Validate Apache config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    23
System wide installation::
9232f5c05694 Validate Apache config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    24
9232f5c05694 Validate Apache config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    25
  sudo apachectl configtest
9232f5c05694 Validate Apache config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    26
  sudo apache2ctl -t
9232f5c05694 Validate Apache config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    27