- or download this
server {
listen 80;
...
#try_files $uri $uri/ =404;
}
}
- or download this
#!/usr/bin/perl
use Toadfarm -init;
...
"X-Request-Base" => "http://api.example.com/api02"
};
start ["http://*:3000"], workers => 8;
- or download this
use Mojolicious::Lite;
get '/' => {text => 'Hello! api01 here'};
app->start;
- or download this
use Mojolicious::Lite;
get '/' => {text => 'Hello! api02 here'};
app->start;
- or download this
$ ./api_start.pl start
[2019-02-08 17:17:49.47784] [63828] [info] Mounting api01 with conditi
+ons
[2019-02-08 17:17:49.48110] [63828] [info] Mounting api02 with conditi
+ons
* Starting the process api_start_pl
...done. (already running with pid=63819)