55 |
clicks on filename). Checkout will always force download. |
clicks on filename). Checkout will always force download. |
56 |
</p> |
</p> |
57 |
|
|
58 |
|
<a name="path_realm"> |
59 |
|
<h2>Using script path as realm name</h2> |
60 |
|
|
61 |
|
<p>If you don't have ability to use http_virtual_host names for each docman |
62 |
|
installation, you can use path before docman.php as a identifier for a realm. |
63 |
|
To enable this, you will have to create directory named as same as virtual |
64 |
|
host, all directories wish exist before your <tt>docman.php</tt> and then |
65 |
|
<tt>conf</tt>, <tt>htusers</tt> and optionally <tt>trustee</tt> and |
66 |
|
<tt>info.inc</tt> files. |
67 |
|
<blockquote> |
68 |
|
e.g.: if your host is called <tt>dreamhouse.lan</tt> and |
69 |
|
you want to have repositories on URL |
70 |
|
<tt>http://dreamhouse.lan/project/</tt> and |
71 |
|
<tt>http://dreamhouse.lan/documentation/</tt> you will |
72 |
|
have to create following files: <small>(those marked with asterisk |
73 |
|
<sup>*</sup> are optional)</small> |
74 |
|
<br><tt>realm/dreamhouse.lan/project/conf</tt> |
75 |
|
<br><tt>realm/dreamhouse.lan/project/htusers</tt> |
76 |
|
<br><tt>realm/dreamhouse.lan/project/trustee</tt> <i>(optional)</i> |
77 |
|
<br><tt>realm/dreamhouse.lan/project/info.inc</tt> <i>(optional)</i> |
78 |
|
<br><tt>realm/dreamhouse.lan/documentation/conf</tt> |
79 |
|
<br><tt>realm/dreamhouse.lan/documentation/htusers</tt> |
80 |
|
<br><tt>realm/dreamhouse.lan/documentation/trustee</tt> <i>(optional)</i> |
81 |
|
<br><tt>realm/dreamhouse.lan/documentation/info.inc</tt> <i>(optional)</i> |
82 |
|
</blockquote> |
83 |
|
</p> |
84 |
|
|
85 |
|
<a name="path_realm_convert"> |
86 |
|
<h3>Conversion of files to realm with directories</h3> |
87 |
|
|
88 |
|
<p>If you followed <a href="install.html">installation instructions</a> |
89 |
|
and you want now to install docman to your host in directory <tt>projects</tt> |
90 |
|
which will be on disk at <tt>/home/httpd/htdocs/project/</tt> and |
91 |
|
served via URL <tt>http://my.host/project/</tt> |
92 |
|
you have to do few more steps: |
93 |
|
<pre> |
94 |
|
$ cd /home/httpd/docman2/realm/ |
95 |
|
$ mkdir my.host |
96 |
|
$ mkdir my.host/project |
97 |
|
$ mv http_virtual_host.htusers my.host/project/htusers |
98 |
|
$ mv http_virtual_host.conf my.host/project/conf |
99 |
|
</pre> |
100 |
|
That's it. You are ready to go... |
101 |
|
</p> |
102 |
|
|
103 |
|
<a name="info.inc"> |
104 |
|
<h2>Repository information files</h2> |
105 |
|
|
106 |
|
<p>There are special files, called <tt>info.inc</tt> files with informations |
107 |
|
which are local to that repository. Usually they are located in |
108 |
|
<tt>repository/.info.inc</tt> file. However, you can also use |
109 |
|
<tt>realm/http_host/script_path/info.inc</tt> file is you are |
110 |
|
using <a href="#path_realm">script path</a> as realm identifier. |