mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
92a340f3ba
- Move WWW root in default config - Create log dir to avoid initial errors - Add rc.d script - Take maintainership PR: ports/96298 Submitted by: Shaun Amott <shaun@inerd.com>
106 lines
4.2 KiB
Plaintext
106 lines
4.2 KiB
Plaintext
--- examples/hydra.conf.orig Thu Mar 9 18:31:13 2006
|
|
+++ examples/hydra.conf Tue Apr 25 03:06:31 2006
|
|
@@ -12,7 +12,7 @@
|
|
# $Id: hydra.conf,v 1.23 2006-03-09 18:31:13 nmav Exp $
|
|
|
|
# ServerRoot: The directory the .html (and related) files are placed.
|
|
-ServerRoot /var/www
|
|
+ServerRoot %%PREFIX%%/www
|
|
|
|
# number of threads to spawn
|
|
# One thread might be ok for a single CPU system, but in some systems,
|
|
@@ -53,8 +53,8 @@
|
|
# User: The name or UID the server should run as.
|
|
# Group: The group name or GID the server should run as.
|
|
|
|
-User nobody
|
|
-Group nogroup
|
|
+User %%WWWOWN%%
|
|
+Group %%WWWGRP%%
|
|
|
|
# ServerAdmin: The email address where server problems should be sent.
|
|
# Note: this is not currently used, except as an environment variable
|
|
@@ -74,26 +74,26 @@
|
|
# Set to /dev/null if you don't want errors logged.
|
|
# If unset, defaults to /dev/stderr
|
|
|
|
-ErrorLog /var/log/hydra/error_log
|
|
+ErrorLog %%LOGDIR%%/error_log
|
|
# Please NOTE: Sending the logs to a pipe ('|'), as shown below,
|
|
# is somewhat experimental and might fail under heavy load.
|
|
# "Usual libc implementations of printf will stall the whole
|
|
# process if the receiving end of a pipe stops reading."
|
|
-#ErrorLog "|/usr/sbin/cronolog --symlink=/var/log/hydra/error_log /var/log/hydra/error-%Y%m%d.log"
|
|
+#ErrorLog "|/usr/sbin/cronolog --symlink=%%LOGDIR%%/error_log %%LOGDIR%%/error-%Y%m%d.log"
|
|
|
|
# AccessLog: The location of the access log file. If this does not
|
|
# start with /, it is considered relative to the server root.
|
|
# Comment out or set to /dev/null (less effective) to disable
|
|
# Access logging.
|
|
|
|
-AccessLog /var/log/hydra/access_log
|
|
+AccessLog %%LOGDIR%%/access_log
|
|
# Please NOTE: Sending the logs to a pipe ('|'), as shown below,
|
|
# is somewhat experimental and might fail under heavy load.
|
|
# "Usual libc implementations of printf will stall the whole
|
|
# process if the receiving end of a pipe stops reading."
|
|
-#AccessLog "|/usr/sbin/cronolog --symlink=/var/log/hydra/access_log /var/log/hydra/access-%Y%m%d.log"
|
|
+#AccessLog "|/usr/sbin/cronolog --symlink=%%LOGDIR%%/access_log %%LOGDIR%%/access-%Y%m%d.log"
|
|
|
|
-# CGILog /var/log/hydra/cgi_log
|
|
+# CGILog %%LOGDIR%%/cgi_log
|
|
# CGILog: The location of the CGI stderr log file. If this does not
|
|
# start with /, it is considered relative to the server root.
|
|
# The log file would contain any contents send to /dev/stderr
|
|
@@ -103,7 +103,7 @@
|
|
# is somewhat experimental and might fail under heavy load.
|
|
# "Usual libc implementations of printf will stall the whole
|
|
# process if the receiving end of a pipe stops reading."
|
|
-#CGILog "|/usr/sbin/cronolog --symlink=/var/log/hydra/cgi_log /var/log/hydra/cgi-%Y%m%d.log"
|
|
+#CGILog "|/usr/sbin/cronolog --symlink=%%LOGDIR%%/cgi_log %%LOGDIR%%/cgi-%Y%m%d.log"
|
|
|
|
# CGIumask 027 (no mask for user, read-only for group, and nothing for user)
|
|
# CGIumask 027
|
|
@@ -132,11 +132,11 @@
|
|
# directory if a ~user request is received.
|
|
#
|
|
# Example:
|
|
-# VirtualHost www.dot.com * /var/www public_html
|
|
-# VirtualHost www.dot.com 127.0.0.1 /var/www ""
|
|
+# VirtualHost www.dot.com * %%PREFIX%%/www public_html
|
|
+# VirtualHost www.dot.com 127.0.0.1 %%PREFIX%%/www ""
|
|
#
|
|
|
|
-#VirtualHost www.dot.com * /var/www ""
|
|
+#VirtualHost www.dot.com * %%PREFIX%%/www ""
|
|
|
|
# DocumentRoot: The root directory of the HTML documents.
|
|
# Comment out to disable server non user files.
|
|
@@ -144,7 +144,7 @@
|
|
# Note that if VirtualHost is enabled, this will be the fallback
|
|
# for the clients that did not supply any host.
|
|
|
|
-DocumentRoot /var/www
|
|
+DocumentRoot %%PREFIX%%/www
|
|
|
|
# DirectoryIndex: Name of the file to use as a pre-written HTML
|
|
# directory index. Please MAKE AND USE THESE FILES. On the
|
|
@@ -160,7 +160,7 @@
|
|
# DirectoryIndex are commented out, accessing a directory will give
|
|
# an error (though accessing files in the directory are still ok).
|
|
|
|
-DirectoryMaker /usr/lib/hydra/boa_indexer
|
|
+DirectoryMaker %%PREFIX%%/bin/boa_indexer
|
|
|
|
# DirectoryCache: If DirectoryIndex doesn't exist, and DirectoryMaker
|
|
# has been commented out, the the on-the-fly indexing of Hydra can be used
|
|
@@ -196,7 +196,7 @@
|
|
# Set to /dev/null if you do not want to load a mime types file.
|
|
# Do *not* comment out (better use AddType!)
|
|
|
|
-MimeTypes /etc/mime.types
|
|
+MimeTypes %%PREFIX%%/etc/hydra/mime.types
|
|
|
|
# DefaultType: MIME type used if the file extension is unknown, or there
|
|
# is no file extension.
|