-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nginx conf example #1
Comments
You need to pass |
like this? |
Almost that, you can try to debug. |
const Koa = require('koa');
const Subdomain = require('koa-subdomain');
const router = require('koa-route');
const app = new Koa();
const subdomain = new Subdomain();
subdomain.use('*', router.get('/', async (ctx) => {
ctx.body = ctx.subdomains;
}));
app.use(subdomain.routes());
app.listen(4123);
|
|
最新版本 不再需要 new Router() 另外我还有一个疑问,可能你能帮得上,能加个 QQ 微信么 |
我突然发现你写的是 |
哦。。。不要在意这些细节。。。我有问题要请教。 2539929 |
can you give me a config example of nginx?
can this one work perfectly?
The text was updated successfully, but these errors were encountered: