45 |
<pre> |
<pre> |
46 |
chown nobody /home/httpd/repository |
chown nobody /home/httpd/repository |
47 |
</pre> |
</pre> |
48 |
|
|
49 |
|
If you use <a href="http://www.debian.org/">Debian</a> you will want |
50 |
|
to use <tt>www-data</tt> user like this: |
51 |
|
<tt>chown www-data /home/httpd/repository</tt> |
52 |
|
|
53 |
<li>Make a symlink from that directory to file which will be directory index |
<li>Make a symlink from that directory to file which will be directory index |
54 |
<pre> |
<pre> |
55 |
ln -s /home/httpd/docman2/docman.php \ |
ln -s /home/httpd/docman2/docman.php \ |
115 |
DirectoryIndex index.html index.htm index.php |
DirectoryIndex index.html index.htm index.php |
116 |
</pre> |
</pre> |
117 |
|
|
118 |
|
<i>Hint!</i> |
119 |
|
|
120 |
|
You might want to include something like: |
121 |
|
<pre> |
122 |
|
<Directory /home/httpd/http_virtual_host> |
123 |
|
Options +FollowSymLinks |
124 |
|
</Directory> |
125 |
|
</pre> |
126 |
|
if you get error "Symbolic link not allowed" in Apache's <tt>error.log</tt>. |
127 |
|
|
128 |
<li><i>if you don't want to users in SQL database</i> |
<li><i>if you don't want to users in SQL database</i> |
129 |
Go to you web server <tt>http://http_virtual_host/</tt> and you should get |
Go to you web server <tt>http://http_virtual_host/</tt> and you should get |
130 |
authorization request. If you want to add |
authorization request. If you want to add |