Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:mac:builds:apache2 [2007/11/23 00:49] – external edit 127.0.0.1 | docs:mac:builds:apache2 [2008/12/19 23:19] (current) – billh | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== apache 2.2.6 ===== | ===== apache 2.2.6 ===== | ||
< | < | ||
- | ./configure --prefix=/ | + | # we can comment out modules we don't want later |
+ | ./configure --prefix=/ | ||
make | make | ||
- | make install | + | sudo make install |
</ | </ | ||
===== Post Install Configuration and Usage ===== | ===== Post Install Configuration and Usage ===== | ||
- | < | + | |
- | # edit / | + | ==== See Also ==== |
- | # find this line... | + | * [[docs: |
- | #ServerName | + | * [[docs: |
- | # and add this... | + | * [[docs: |
+ | |||
+ | ==== httpd.conf | ||
+ | | ||
ServerName localhost | ServerName localhost | ||
+ | </ | ||
+ | * DirectoryIndex< | ||
+ | DirectoryIndex index.html index.htm index.php index.shtml default.html default.htm | ||
+ | </ | ||
+ | * User/ | ||
+ | < | ||
+ | # | ||
+ | # If you wish httpd to run as a different user or group, you must run | ||
+ | # httpd as root initially and it will switch. | ||
+ | # | ||
+ | # User/Group: The name (or #number) of the user/group to run httpd as. | ||
+ | # It is usually good practice to create a dedicated user and group for | ||
+ | # running httpd, as with most system services. | ||
+ | # | ||
+ | #User daemon | ||
+ | #Group daemon | ||
+ | User www | ||
+ | Group www | ||
+ | </ | ||
+ | </ | ||
+ | * Fancy Indexing< | ||
+ | # Fancy directory listings | ||
+ | Include conf/ | ||
+ | </ | ||
- | # start apache | + | ==== start apache |
+ | < | ||
# you must specify the path to apachectl because Apple has one in another place | # you must specify the path to apachectl because Apple has one in another place | ||
sudo / | sudo / | ||
+ | </ | ||
- | # stop apache | + | ==== stop apache |
+ | < | ||
sudo / | sudo / | ||
</ | </ | ||
- |