Topic: Non image

Scritp works only on my IP: http://46.102.243.171/img/
In subdomain i see this: http://img.daggerka.pl/

Any idea?

Server work on:
lighttpd/1.4.19 and PHP

Thumbs up

Re: Non image

your css link do not exist : "http://img.daggerka.pl/estilo.css"

make sure you have a file named (estilo.css) in chevereto directory.

~ Sup?!

Thumbs up

Re: Non image

http://46.102.243.171/img/  =  http://img.daggerka.pl/  =  http://obeazek.tk/

Example vhost:

##START VHOST
$HTTP["host"] =~ "(^|\.)obrazek.tk$" {
        server.document-root = "/var/www/img"
        server.errorlog = "/var/log/lighttpd/img.daggerka.pl/error.log"
        accesslog.filename = "/var/log/lighttpd/img.daggerka.pl/access.log"
        server.error-handler-404 = "/e404.php"
}
###STOP VHOST

Thumbs up

Re: Non image

Open index.php

Change this:

<link href="<?php echo URL_SCRIPT;?>estilo.css" rel="stylesheet" type="text/css" />

With this :

<link href="http://46.102.243.171/img/estilo.css" rel="stylesheet" type="text/css" />
~ Sup?!

Thumbs up

Re: Non image

still not all works

Thumbs up

Re: Non image

config.php

FIND :

path = dirname($_SERVER['PHP_SELF']);
if (strlen($path)>1) { 
    define('PATH_SCRIPT', $path.'/');
} else {
    define('PATH_SCRIPT', $path);
}

replace with :

define('PATH_SCRIPT', 'http://46.102.243.171/img/');

Last edited by Danny.Domb (2011-03-17 15:46:09)

~ Sup?!

Thumbs up

Re: Non image

no works... tongue

Im back to default config, becouse obrazek.tk ect not works to

Last edited by Daggerka (2011-03-17 15:53:25)

Thumbs up

Re: Non image

Well then, change everything manually :

Find everything starting with :

/js/

replace with :

http://46.102.243.171/img/js/

Find everything starting with :

/site-img/

replace with :

http://46.102.243.171/img/site-img/
~ Sup?!

Thumbs up

Re: Non image

Ok, thanks for all. I do it tomorow.

Thumbs up