aaabababa 最近的时间轴更新
aaabababa

aaabababa

V2EX 第 287373 号会员,加入于 2018-01-28 19:55:02 +08:00
今日活跃度排名 28344
PHP Warning: Declaration of table_forum_thread
PHP  •  aaabababa  •  1 天前  •  最后回复来自 aaabababa
4
nginx 子域名访问 subdomain 问题。
NGINX  •  aaabababa  •  2 天前  •  最后回复来自 Livid
8
nginx 代理访问 nodejs 问题
Node.js  •  aaabababa  •  2 天前  •  最后回复来自 aaabababa
20
有个创业创意?
新手求助  •  aaabababa  •  2020-12-15 21:59:51 PM
手机装有 xposed,注册 wechat。。。
微信  •  aaabababa  •  2018-12-09 00:32:12 AM  •  最后回复来自 mario85
29
google voice 关联号码, textnow 用不了了,还有没其他方法?
Google  •  aaabababa  •  2018-02-01 18:21:40 PM  •  最后回复来自 aaabababa
2
aaabababa 最近回复了
1 天前
回复了 aaabababa 创建的主题 PHP PHP Warning: Declaration of table_forum_thread
@via 改成兼容,代码改动量大?
1 天前
回复了 aaabababa 创建的主题 PHP PHP Warning: Declaration of table_forum_thread
@BeijingBaby 屏蔽感觉有点不好
2 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@Belmode 是只要有重定向,nginx 都会有这个问题?
3 天前
回复了 aaabababa 创建的主题 NGINX nginx 子域名访问 subdomain 问题。
set $subdomain_root /www/test.net/$subdomain;

if (!-d $subdomain_root) {
return 404;
}

搞定了,先判断目录是否存在就行了。。。
3 天前
回复了 aaabababa 创建的主题 NGINX nginx 子域名访问 subdomain 问题。
@joqsc722 AI 解答的?

root /www/test.net/$subdomain;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

原来的配置这样的
3 天前
回复了 aaabababa 创建的主题 NGINX nginx 子域名访问 subdomain 问题。
@adoal

原来是
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
改成
fastcgi_param SERVER_NAME $host;
页面无法正常跳转呢
3 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
3 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@zhhbstudio

不只这一个项目呢,还需要 nginx 代理其他的。。。
3 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@zhhbstudio

"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
},



webpack.dev.conf.js


'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')

const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)

const devWebpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
},
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,

// these devServer options should be customized in /config/index.js
devServer: {
clientLogLevel: 'warning',
historyApiFallback: {
rewrites: [
{ from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
],
},
hot: true,
contentBase: false, // since we use CopyWebpackPlugin.
compress: true,
host: HOST || config.dev.host,
port: PORT || config.dev.port,
disableHostCheck: true,
open: config.dev.autoOpenBrowser,
overlay: config.dev.errorOverlay
? { warnings: false, errors: true }
: false,
publicPath: config.dev.assetsPublicPath,
proxy: config.dev.proxyTable,
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll,
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': require('../config/dev.env')
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
}
])
]
})

module.exports = new Promise((resolve, reject) => {
portfinder.basePort = process.env.PORT || config.dev.port
portfinder.getPort((err, port) => {
if (err) {
reject(err)
} else {
// publish the new Port, necessary for e2e tests
process.env.PORT = port
// add port to devServer config
devWebpackConfig.devServer.port = port

// Add FriendlyErrorsPlugin
devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
compilationSuccessInfo: {
messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
},
onErrors: config.dev.notifyOnErrors
? utils.createNotifierCallback()
: undefined
}))

resolve(devWebpackConfig)
}
})
})




ort: PORT || config.dev.port,

也是 config 传过来的吧
new SocketJS 时传入的参数?
不太懂
4 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@zhhbstudio 要怎么改呢?

看了日志,是 sockjs-client 这个模块 sockjs.js 文件

try {
self.xhr.send(payload);
} catch (e) {
self.emit('finish', 0, '');
self._cleanup(false);
}

这段代码报的错,注释之后,就没有了。只是注释之后,没有新消息提醒的。。。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2757 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 15:22 · PVG 23:22 · LAX 08:22 · JFK 11:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.