Error when dropping the embed code on another server that does not host the iipimage server.

Anonymous
2013-05-16
2013-05-19
  • Anonymous - 2013-05-16

    Hi,

    I am trying to embed the code into another page on another server that does not have the iipserver. the player works fine when its hosted on the local server, however, when you put this on another server, i get this issue below:
    Error: No response from server http://www.otherserver.com/fcgi-bin/iipsrv.fcgi

    is this a security issue with Lighthttpd. or is a setting i am missing.

    Cheers

     
  • Ruven

    Ruven - 2013-05-19

    There is indeed a security issue, but it's not on the server, but client-side. AJAX connections to blocked by navigators to resources on other hosts. Thus, if you want to serve your HTML on www.server1.com, you should configure the client to point to /fcgi-bin/iipsrv.fcgi on this server, but use you web server to proxy forward requests to www.otherserver.com.

    For Apache, see this for more details:
    http://iipimage.sourceforge.net/documentation/server/#forwarding

    Otherwise for Lighttpd, you could configure server1 to point /fcgi-bin/iipsrv.fcgi directly to the FCGI port on otherserver.com. For example, on server1 you would have:

    fastcgi.server = (
    "/fcgi-bin/iipsrv.fcgi" => (
    ("host"=>"www.otherserver.om", "port"=>9000, "check-local"=>"disable")
    )
    )

    and on otherserver.com you would setup iipsrv using TCP ports rather than local sockets. For example:

    "/fcgi-bin/iipsrv-jpeg2000.fcgi" =>
    ((
    "host" => "195.83.70.187",
    "port" => 9000,
    "check-local" => "disable",
    "min-procs" => 1,
    "max-procs" => 1,
    "bin-path" => "/var/www/localhost/fcgi-bin/iipsrv.fcgi",
    "bin-environment" => (
    "LOGFILE" => "/tmp/iipsrv.log",
    "VERBOSITY" => "5"
    )
    ))

    where port 9000 is the standard FCGI protocol port.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks