PHP code example of feehi / yii2-swoole
1. Go to this page and download the library: Download feehi/yii2-swoole library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
feehi / yii2-swoole example snippets
bash
*
* 后台
*
server {
set $web /www/cms-swoole/backend/web;
root $web;
server_name swoole-admin.cms.test.docker;
location ~* .(ico|gif|bmp|jpg|jpeg|png|swf|js|css|mp3)$ {
root $web;
}
location / {
proxy_http_version 1.1;
proxy_set_header Connection "keep-alive";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host http://swoole-admin.cms.test.docker;
proxy_pass http://127.0.0.1:9998;
}
}