alexpgp: (Default)
[personal profile] alexpgp
My TWiki has not been showing graphics, despite the fact I don't have them disabled in my browser or anything, and I finally got curious enough to want to know why.

Step 1: Check the Apache access log.

The access log for the web server noted the attempt to

GET /twiki/pub/icn/pdf.gif HTTP/1.1 404 296 [name of requesting page] [browser info]

Step 2: Check the Apache error log.

The error log says

File does not exist: /var/www/html/twiki/pub/icn/pdf.gif

Somehow the request for a file in the path '/twiki/' is translated as '/var/www/html/twiki/', which is what should happen normally, except that's not where my twiki directory is located.

Step 3: Think about this.

It's not a TWiki config problem, since the generated HTML is correct, and so is the entry in the access log. Therefore, it's probably an Apache configuration problem. Checking the httpd.conf file, I found something that I didn't write down, but changed to:

Alias /twiki/ /var/www/twiki/

And bingo! Graphics show up!

The blood is warming up.

Cheers...

Profile

alexpgp: (Default)
alexpgp

January 2018

S M T W T F S
  1 2 3456
7 8910111213
14 15 16 17181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 6th, 2026 12:09 am
Powered by Dreamwidth Studios