Httpd on Mac: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 38: Line 38:
                 └──  linked
                 └──  linked
                       └──  httpd
                       └──  httpd
=Configuration=
Set <code>ServerName</code> to localhost:8080.

Revision as of 02:30, 29 December 2023

Internal

Installation

Httpd Installation on Mac

Start

/opt/brew/opt/httpd/bin/httpd -D FOREGROUND

Start at Boot

sudo brew services start httpd

Directory Layout

/opt
 └── brew
      ├── Cellar
      │     └── httpd
      │          └── 2.4.58
      │               └── bin
      │                    └── httpd
      ├── etc
      │    └── httpd
      │         ├──  httpd.conf # Main configuration file
      │         └──  extra
      │               └──  httpd-ssl.conf
      ├── opt
      │    └── httpd
      │        └──  bin
      │              └──  httpd
      └── var
           ├── www   # Document root
           │    └──  index.html
           │ 
           └── homebrew
                └──  linked
                      └──  httpd


Configuration

Set ServerName to localhost:8080.