Wolfgang Mueller wrote:
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>
Options Indexes FollowSymLinks +Includes MultiViews </Directory> DirectoryIndex index.html index.htm index.php ****************************************************************** But this does not work any more. After I have replaced APACHE_CONF_INCLUDE_FILES="" by APACHE_CONF_INCLUDE_FILES="/etc/apache2/httpd.conf.local", restarting Apache failed with a long error message that cannot be copied. So I can only give you a summary:
Syntax error on line 2 of /etc/apache2/httpd.conf.local". Either all option must start with + or - or no option may.
But, as you see above, Multiviews is preceeded by a + in line 2. So, please help me to understand the error message.
All options need a plus or a minus, so:
<Directory />
Options +FollowSymLinks +Multiviews
</Directory>
Have a nice holiday (Auffahrt)!
You too! Sofar it's looking great - clear blue sky, temperature is rising. -- Per Jessen, Zürich (14.3°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org