On 05/05/2016 06:36 AM, Wolfgang Mueller wrote:
and now, when invoking http://localhost/ in a browser, I get:
This is a testoo
I have similar and it says
It Works!
in big bold letters :-)
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.
Part of your problem, I think, is that you are opening the wrong
'place'. I have real directories, no symlinks, under /srv
For example, I have owncloud installed at
/srv/www/htdocs/owncloud/
I access that with
http;//localhost/owncloud
To make this work, I have in
/etc/apache2/conf.d/owncloud.conf:
the following (and a bit more, but this is the key part)
Alias /owncloud "/srv/www/htdocs/owncloud/"
SetEnv HOME /srv/www/htdocs/owncloud
SetEnv HTTP_HOME /srv/www/htdocs/owncloud
I do have other applications; they too are under
/srv/www/htdocs/
since that's the way I have may main httpd.conf set up:
# configuration of server-generated directory listings
Include /etc/apache2/mod_autoindex-defaults.conf
and in default-server.conf
DocumentRoot "/srv/www/htdocs"
I must make it clear: I do make use of a hierarchy of files,
localization of parts of the config. it has its pluses and minuses.
I don't claim configuring Apache is easy, there's sooooo much to it!
But if you break it up then you can juggle 'just one thing' at a time
and have limited interaction between parts.
I *DO NOT* rely on symlinks from the document base to work.
I have other applications as well, but they are all set up so that
http://localhost/<application>
works. I find that more functional and easier to remember than
traversing links every time. Its also easier to embed in my
applications, such as using owncloud to store contact details for
Thunderbird.
YMMV.
Again, Apache can be complicated if you don't
a) strictly follow the constraints
b) take it in parts
"hacking" Apache may end up with something that works in one instance,
but it is unstable.
--
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting frowned upon?
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse+owner@opensuse.org