Another lesson...
Apr. 24th, 2003 12:32 pmMy 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...
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...