/usr/share/doc/nanoweb-doc/html/nwaccess.html is in nanoweb-doc 2.2.9-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>.nwaccess - per-directory configuration files</TITLE>
<LINK REL="STYLESHEET" HREF="manual.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#00003F" ALINK="#FF0000">
<DIV CLASS="body">
<DIV ALIGN="CENTER">
<A HREF="http://nanoweb.si.kz/"><IMG BORDER="0" SRC="/icons/nanoweb.png" ALT="[NANOWEB DOCUMENTATION]"></A>
<H3><SMALL>NANOWEB</SMALL>, the aEGiS PHP web server</H3>
</DIV>
<H1 ALIGN="CENTER">.nwaccess - per-directory configuration files</H1>
Most of the <A HREF="core.html">configuration directives</A> that are
understood in the main server configuration file
(<a href="file://localhost/etc/nanoweb/nanoweb.conf">/etc/nanoweb/nanoweb.conf</a>)
are also allowed to be used in the per-directory config files. The format of
that files is the same as in the main server config file.
<br>
<br>
These files can be placed in every directory below the docroot and must have
the filename set by the <A HREF="core.html#accessfile">AccessFile directive</A>
(in main server config file); per default the name of these files is
<b><a href="../README.accessfiles">.nwaccess</a></b>. In apache these files are called
.htaccess, but as however only a few directives are fully equal to that of apache,
you most likely want to have these different names for them; see <a
HREF="apachecompat.html">apache compatibility issues</a> if you would like to merge them.
<br>
<br>
example of a <KBD>.nwaccess</KBD> file:
<PRE class="SAMP"># .nwaccess
# comments start with the hash sign
FBSortOrder = date desc
# will let the directory listing be ordered by modiftime, last first
ErrorDocument = 403 errorpage.html
# output customized error page
RewriteRule ^(*.tgz)$ /cgi-bin/log_download.php/$1 [nocase]
# binary files go through a .php script
</PRE>
<BR>
<BR>
If you give a directive in the .nwaccess file it will most likely override
the one specified in the main server config file. This behaviour can
be tweaked by setting <a href="core.html#accesspolicy">AccessPolicy</a> to
<b>block</b>, <b>override</b> or <b>merge</b>. This default behaviour
can then differ for some directives if you change it using
<a href="core.html#accessblock">AccessBlock</a>,
<a href="core.html#accessoverride">AccessOverride</a> or
<a href="core.html#accessmerge">AccessMerge</a>.
<BR>
<BR>
Note that starting of nanoweb 1.8.1 you may omit the equal sign for
assigning values to the directives. This is true for the main config file
(<tt>nanoweb.conf</tt>), too.
<BR>
<BR>
<HR NOSHADE COLOR="#063239">
<H3 ALIGN="CENTER"> <SMALL>NANOWEB</SMALL>, the aEGiS PHP web server </H3>
<DIV CLASS="navline"><A HREF="index.html">Index</A> <A HREF="modules.html">Modules</A> <A HREF="core.html">Configuration</A> <A HREF="../">READMEs</A> <A HREF="faq.html">FAQ</A> <A HREF="http://forums.t0x.net/viewforum.php?f=1">Support Forum</A></DIV>
</DIV>
</BODY>
</HTML>
|