Skip to content

Commit fe25836

Browse files
committed
Added brief installation instructions for anyone that may not know where to start
1 parent c50920d commit fe25836

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ Why?
2222
I wrote this mostly for fun and because it's been a while since I dabbled in the C language.
2323

2424

25+
How?
26+
--
27+
There are multiple ways to compile and install an apache module. My preferred method is to use `apxs`:
28+
# build shared object file
29+
apxs -c mod_fortune.c
30+
# and install it (may require root/sudo)
31+
apxs -i -a mod_fortune.la
32+
This should not only move the object file into place, but add a *LoadModule* directive into your apache configuration.
33+
34+
2535
Licensing
2636
--
2737
This software is released as open source under the MIT license:
@@ -44,3 +54,4 @@ This is an example configuration that would insert an `X-Fortune` header to ever
4454
# set X-Fortune header for successful response, if env variable exists
4555
Header onsuccess set X-Fortune %{FORTUNE_COOKIE}e env=FORTUNE_COOKIE
4656
</IfModule>
57+

0 commit comments

Comments
 (0)