V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  aaabababa  ›  全部回复第 1 页 / 共 2 页
回复总数  28
1  2  
3 天前
回复了 aaabababa 创建的主题 PHP PHP Warning: Declaration of table_forum_thread
@via 改成兼容,代码改动量大?
3 天前
回复了 aaabababa 创建的主题 PHP PHP Warning: Declaration of table_forum_thread
@BeijingBaby 屏蔽感觉有点不好
4 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@Belmode 是只要有重定向,nginx 都会有这个问题?
4 天前
回复了 aaabababa 创建的主题 NGINX nginx 子域名访问 subdomain 问题。
set $subdomain_root /www/test.net/$subdomain;

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

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

root /www/test.net/$subdomain;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

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

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

不只这一个项目呢,还需要 nginx 代理其他的。。。
5 天前
回复了 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 时传入的参数?
不太懂
6 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@zhhbstudio 要怎么改呢?

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

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

这段代码报的错,注释之后,就没有了。只是注释之后,没有新消息提醒的。。。
6 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@YellowDog7

server {
listen 443;
server_name chat.test.net;
ssl_certificate /etc/letsencrypt/live/test.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/test.net/privkey.pem;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_prefer_server_ciphers on;
set $oldclient 0;
root /www/test/chat;
index index.php index.html;
include /etc/nginx/ext/*.conf;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
7 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@HHsunday 原来就上有的,还是一样域名后有 8080 端口
8 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@br_wang 不太懂,用的 npm 启动项目
8 天前
回复了 aaabababa 创建的主题 Node.js nginx 代理访问 nodejs 问题
@andyskaura 服务是 8080 , nginx 监听 80 443 ,反向代理到 proxy_pass http://127.0.0.1:8080;
9 天前
回复了 heyao114 创建的主题 酷工作 有没有想做远程的运维工程师啊?
有的,还在招么?
2018-12-08 23:16:08 +08:00
回复了 aaabababa 创建的主题 微信 手机装有 xposed,注册 wechat。。。
@mario85 代码真的没法破解?唉。。。
2018-12-08 23:15:11 +08:00
回复了 aaabababa 创建的主题 微信 手机装有 xposed,注册 wechat。。。
@wtdd 用的老手机,android 5.1 微信 GG 版 6.7.3。
2018-12-07 17:51:15 +08:00
回复了 aaabababa 创建的主题 微信 手机装有 xposed,注册 wechat。。。
@mario85 都有,一样死。。。
2018-12-07 17:50:44 +08:00
回复了 aaabababa 创建的主题 微信 手机装有 xposed,注册 wechat。。。
@C2G 用了 xposedhide 无效。。。
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3345 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 11:19 · PVG 19:19 · LAX 04:19 · JFK 07:19
Developed with CodeLauncher
♥ Do have faith in what you're doing.