PDA

View Full Version : absolute path for thumbnails


mike38
08-21-2008, 11:22 PM
Hi,

I want to deploy multiple blogs for different sites on one server.
I am using debian and to ease upgrade and addons installation, I would like to keep a central version and make links:

lrwxrwxrwx 1 root root 28 2008-08-21 23:13 addons -> /usr/share/pixelpost/addons/
lrwxrwxrwx 1 root root 27 2008-08-21 23:13 admin -> /usr/share/pixelpost/admin/
drwxr-xr-x 2 www-data www-data 4096 2008-08-22 00:40 images
lrwxrwxrwx 1 root root 30 2008-08-21 23:13 includes -> /usr/share/pixelpost/includes/
-rw-r--r-- 1 root root 39375 2008-08-22 00:10 index.php
lrwxrwxrwx 1 root root 30 2008-08-21 23:14 language -> /usr/share/pixelpost/language/
lrwxrwxrwx 1 root root 31 2008-08-21 23:14 templates -> /usr/share/pixelpost/templates/
drwxr-xr-x 2 www-data www-data 4096 2008-08-22 00:40 thumbnails



Everithink is ok, except one point: thumbnail and image path. If I keep ../images/ and ../thumbnails/ it goes to /usr/share/pixelpost/images/ and /usr/share/pixelpost/thumbnails/ which is not what I want.

If I put an absolute path: /var/www/pixelpost3/images/ and /var/www/pixelpost3/thumbnails/ it's ok for images and I can ulpoad and see the pictures in the blog, but not for thumbnails. The thumbnails is created correctly, but in the browse page, links are like that:
http://serveur/var/www/pixelpost3/thumbnails/thumb_20080821222832_image.jpg

which is clearly not what expected.

What can I put in the thumbnail path? Or is it easy to change the code to permit absolute path?

Thanks for help

Mike

Dr.Ozdi
08-22-2008, 09:21 AM
For the server it is not the best way....absolute path makes lodading slower. Yes it's not problem for few visitors a day.