OK, here's what I learned so far.
MIdgard pages uses the Apache DocumentRoot unless specified by a
<VirtualHost>DocumentRoot</VirtualHost> entry. I confirmed this by changing
the DocumentRoot in srm.conf. The Midgard Admin site images vanished. This
also explains why the admin site and example site don't have DocumentRoot
entries.
I subsequently turned the Apache logging level to debug.
All three sites use the Apache default DocumentRoot /home/httpd/html (no
DocumentRoot entries in the VirtualHost setup). Here's part of my httpd.conf:
DocumentRoot /home/httpd/html
Listen 8080
NameVirtualHost leda:8080
<VirtualHost leda:8080>
ServerName midgardadmin
Port 8080
</VirtualHost>
Listen 1234
NameVirtualHost leda:1234
<VirtualHost leda:1234>
ServerName vmuc
Port 1234
</VirtualHost>
Listen 8888
NameVirtualHost leda:8888
<VirtualHost leda:8888>
ServerName mct
Port 8888
</VirtualHost>
I tried accessing each Midgard application: admin site, example site, and my
site. One major difference I see immediately in access_log:
Accessing Midgard Admin:
192.168.164.2 - admin [06/Jun/2000:19:19:55 -0500] "GET / HTTP/1.1" 200 6770
Accessing Midgard sample site:
192.168.164.2 - - [06/Jun/2000:19:23:33 -0500] "GET / HTTP/1.1" 200 6898
192.168.164.2 - - [06/Jun/2000:19:23:34 -0500] "GET /example/pixel.gif
HTTP/1.1" 304 -
192.168.164.2 - - [06/Jun/2000:19:23:34 -0500] "GET /example/earth.gif
HTTP/1.1" 304 -
192.168.164.2 - - [06/Jun/2000:19:23:34 -0500] "GET /example/kulma1.gif
HTTP/1.1" 304 -
192.168.164.2 - - [06/Jun/2000:19:23:34 -0500] "GET /example/kulma3.gif
HTTP/1.1" 304 -
192.168.164.2 - - [06/Jun/2000:19:23:34 -0500] "GET /example/piste.gif
HTTP/1.1" 304 -
Accessing my host (mct):
192.168.164.2 - - [06/Jun/2000:19:21:32 -0500] "GET / HTTP/1.1" 200 1327
192.168.164.2 - - [06/Jun/2000:19:21:32 -0500] "GET /images/mpowered.gif
HTTP/1.1" 200 1327
192.168.164.2 - - [06/Jun/2000:19:21:32 -0500] "GET /example/earth.gif
HTTP/1.1" 200 1327
The interesting thing is: in the admin site, images appear to be served
internally, I expected to see
GET /images/topleft1.gif
GET /images/topleft2.gif
GET /images/topright.gif
etc.
but did not.
From the sample site, Apache always returns 304 (document not modified) for
each image loaded.
For my site, I get 200 (OK) and the size of my original HTML document for the
image served.
Looking in error_log, I see nothing unusual for the Admin site.
For the example site, I see
midgard_translate_handler(http://vmuc:1234/example/earth.gif)
host record for vmuc:1234 found (#2)
waking pages /example/earth.gif
walking page example
page record for /example/earth.gif not found
and similar messages for each image loaded. All images appear in the browser.
For my site, I see
midgard_translate_handler(http://mct:8888/images/mpowered.gif)
host recordfor mct:8888 found (#3)
walking pages /images/mpowered.gif
walking page images
page record for /images/mpowered.gif found (#41)
No images appear in the browser.
OK, so maybe it has something to do with the image name. I copied
/home/httpd/html/images/mpowered.gif to /home/httpd/html/midgardpowered.gif,
changed my code to <img src="/midgardpowered.gif">, and reloaded my page.
In the access_log:
"GET / HTTP/1.1" 200 1294
"GET /midgardpowered.gif HTTP/1.1" 200 1294
when I expected to see
"GET / HTTP/1.1" 200 1294
"GET /midgardpowered.gif HTTP/1.1" 304 -
In the error_log:
midgard_translate_handler(http://mct:8888/midgardpowered.gif)
host record for mct:8888 found (#3)
walking pages /midgardpowered.gif
walking page /midgardpowered.gif
page record for /midgardpowered.gif found (#41)
What's going on there?? midgardpowered.gif is a brand-new file I just copied.
Looking in the pages table, I found id 41 is my main page that references
midgardpowered.gif. Is Midgard trying to serve the HTML document again because
of the image request?
Is any of this helpful? I still can't get images to appear. It seems as if I'm
missing a step somewhere in my host setup in Midgard. I'm so confused...
Loyd
--
Loyd Goodbar
[EMAIL PROTECTED] ICQ#504581 http://www.watervalley.net/users/lgoodbar/
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]