Anton Aylward wrote:
Patrick Shanahan said the following on 11/21/2008 09:43 PM:
* Anton Aylward
[11-21-08 21:07]: You mean NOT use
Yast2 -> network Services -> HTTP Server
as I have been doing? Its the only 'top level' mention of a http server I saw.
I haven't that I remember, but you can. I just started the apache2 server in the run-level editor and drove on. It has been running for about five or six years that way. :^)
Which means you didn't start 'virgin' with 11.0. As far as I can make out, some time in the past openSUSE had a more 'traditional' single configuration file and there were tools for an upgrade (to 2.x for some value of x) that did grep/sed/awk to convert that single file into the format I now see on my (virgin) 11.0.
As I said, the YAST2 path I quoted is the one that mentions the HTTP server and the one you see at the 'high level' as you step though the main menu. The 'edit sysconfig' hides it much lower down and what you do with it assumes you already know how the SUSE implementation differs from the more 'traditional' config.
In fact until you mentioned it I didn't even know it was there. I'd been editing stuff under /etc/sysconfig/apache/ manually.
Anton,
I think it was 10.3 where apache changed from allowing server side includes
generally to only allowing server side includes that originate from the
directory from which the page is called or beneath it. I had to make changes as
well. However, you need to make changes that 'comply' with the new server side
include scheme, not changes that 'defeat' it. The reason they did it that way
was for security reasons.
If I am thinking straight (always suspect), the new way of doing things just
says "you can still use server side includes, but if you want to call from a
directory that isn't under where the page gets called from then you have to
define that directory explicitly in httpd.conf" (create and use a
httpd.conf.local instead of httpd.conf so your changes are not overwritten)
My pages (very un-elegantly) call parts from /srv/www/css /srv/www/images and
/srv/www/js. Most calling pages live below the normal document root of
/srv/www/htdocs so under the new SSI rule they can't call pieces from those
directories unless the directories are defined. So in httpd.conf.local, I just
define them:
################################ General Resource Directories
###########################
#
## include css Directory
#
Alias /css/ "/srv/www/css/"
Alias /css "/srv/www/css/"