Post
Topic
Board Announcements (Altcoins)
Re: [ANN] [XDAG] Dagger - new cryptocurrency
by
Trademaxx
on 27/01/2018, 12:48:49 UTC
@DEV please give description how to use the balance.cgi.c and block.cgi.c

What do i need to do with it? compile with gcc and place output as balance.cgi in cgi-bin? sorry not very familiar with webservers...

Still need help on getting it running. Short doc would be fine... which interpreter / command needs to be run? How to handle it? Please advice what is needed

Please consult webmasters. It depends on server software. If cgi subsystem is already set up, then you need to
1) change source *.cgi.c putting your own path instead of /home/ec2-user/...
2) compile it using gcc
3) put binary to cgi-bin folder of webserver.

understood. thats what i already did, but i need to tell webserver how to execute the balance.cgi or block.cgi...

$HTTP["remoteip"] =~ "109.90.229.170" {
  alias.url += ( "/cgi-bin/" => "/var/www/html/cgi-bin/" )
  $HTTP["url"] =~ "^/cgi-bin/" {
    cgi.assign = (
        ".sh" => "/bin/sh" ,
        ".cgi" => "./"                                                         <- which assignment is needed to run the compiled balance.cgi?
        )
  }
}