Skip to content

Commit 6604ced

Browse files
doc: update getting started page
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
1 parent 26252d6 commit 6604ced

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ BUILT_SOURCES = $(nodist_noinst_HEADERS)
5252
CLEANFILES = $(nodist_noinst_HEADERS)
5353

5454
confpaths.h:
55-
@echo " GEN $@" && \
55+
@echo " GEN $@" && \
5656
{ \
5757
echo "#ifndef CONFPATHS_H"; \
5858
echo "#define CONFPATHS_H"; \

doc/Makefile.am

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# You should have received a copy of the GNU Affero General Public License
1919
# along with OSN freehttpd. If not, see <https://www.gnu.org/licenses/>.
2020

21+
if ENABLE_DOC
2122
orgdocdir = $(docdir)/org
2223
htmldocdir = $(docdir)/html
2324

@@ -42,10 +43,10 @@ EMACS_LOAD_CONFIG = \
4243

4344
EMACS_BATCH = $(EMACS) --batch $(EMACS_LOAD_CONFIG)
4445

45-
if ENABLE_DOC
4646
all-local: $(nodist_htmldoc_DATA)
4747
CLEANFILES = $(nodist_htmldoc_DATA)
48-
endif
4948

5049
.org.html:
5150
@echo " EMACSGEN $@" && $(EMACS_BATCH) $< --eval "(org-html-export-to-html)"
51+
52+
endif

doc/getting-started.org

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,23 @@ Additionally, you might also need to install the following:
9797
consider running =./configure --help= to see the available configuration
9898
options.
9999

100+
* Configuration
101+
102+
Configuring freehttpd is straightforward. You can simply edit the configuration files
103+
located in your ~$(sysconfdir)~, which is typically ~/etc/~. The main configuration file
104+
is usually ~$(sysconfdir)/freehttpd/fhttpd.conf~ unless configured otherwise during build.
105+
106+
Here is a simple configuration that creates a virtual host to serve ~/var/www/html~:
107+
108+
#+begin_src conf
109+
host ("localhost:80") {
110+
# Makes this vhost default
111+
is_default = true;
112+
113+
# Document root to serve
114+
docroot = "/var/www/html";
115+
}
116+
#+end_src
100117

101118
* Help & Support
102119

0 commit comments

Comments
 (0)