On 05/05/16 10:25, Per Jessen wrote:
Wolfgang Mueller wrote:
[...] the only response I get when invoking http://localhost/ in a browser is a page that says:
****************************************************************** Access forbidden! [...] ******************************************************************
Actually, that proves that Apache _does_ work :-) You have two options -
a) add an index document (index.html for instance) or b) allow directory listing for the directory: "options +indexes"
I made a file /srv/www/htdocs/index.html with this content:
******************************************************************
/home/srv/wolfgang/arianna 205>cat index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Test</title>
</head><body>
<b>This is a test</b>
</body></html>
******************************************************************
and now, when invoking http://localhost/ in a browser, I get:
This is a testoo
So indeed, Apache _does_ work, as you already stated. But my problem
is that /srv/www/htdocs/ contains two links to directories, and
Apache does not follow them. I know this problems from former
Versions of Apache. But in those good old days the solution was
making a file named /etc/apache2/httpd.conf.local with this content:
******************************************************************
<Directory />
Options FollowSymLinks +Multiviews
</Directory>