腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(6467)
视频
沙龙
1
回答
Debian
9-
nginx
忽略
位置
块
nginx
、
debian
、
config
下面是我的
nginx
的mydomain.conf文件的内容。fastcgi_split_path_info ^(.+\.php)(/.+)$; } } 我正在尝试配置缓存控制,这时我意识到
nginx
没有读取或认可我的
位置
块
。" "works"; 和 add_header "hello" "word"; 当我使用curl进行测试时,我可以看到"thi
浏览 26
提问于2019-05-05
得票数 1
回答已采纳
1
回答
使用IP地址为两个应用程序创建测试服务器
nginx
、
nginx-location
、
nginx-reverse-proxy
; index index.html index.htm index.
nginx
-
debian
.html;listen [::]:80; index index.html index.htm index.
nginx
-
debian
.html:警告冲突的服务器
浏览 1
提问于2020-03-19
得票数 0
回答已采纳
1
回答
Nginx
反向代理重新打包分组响应
nginx
、
reverse-proxy
、
chunked
-1.1.19/
debian
/modules/
nginx
-auth-pam --add-module=/build/buildd/
nginx
-1.1.19/
debian
/modules/
nginx
-echo--add-module=/build/buildd/
nginx
-1.1.19/
debian
/modules/
浏览 0
提问于2014-04-25
得票数 0
1
回答
当删除
NGINX
配置中的服务器{..}
块
时,浏览器报告了SSL错误
nginx
、
ssl
、
lets-encrypt
在从
NGINX
配置中删除server {..}
块
并保留另外两个server {..}
块
之后,奇怪的SSL错误开始显示在浏览器上:火狐报道--add-module=/build/
nginx
-1.14.0/
debian
/modules/
nginx
-cache-purge --add-module=/build/
nginx
-1.14.0
浏览 0
提问于2020-06-11
得票数 0
2
回答
Basic_auth已设置并工作,但所有受保护的页面都返回404
nginx
、
http-basic-authentication
但是,服务器日志显示,一旦我登录到所有受保护的页面,身份验证就会运行,返回404错误--而不是我的实际404页,而是通用的
Nginx
404页。daemon off;worker_processes <%= ENV['
NGINX
_WORKERSoctet-stream;
浏览 0
提问于2018-06-19
得票数 1
2
回答
如何避免在
nginx
中重复add_header指令?
nginx
、
http-headers
我的问题是,我有几个想要缓存的location
块
,如下所示:add_header Strict-Transport-Security(png|jpg|jpeg|gif|bmp)$ { add_header Cache-Control public;但这将使我失去在
块
之外声明的所有标头。因此,显然唯一的方法是在每个location
块
上复制这些标头,例如: add_header X-Frame-Options SAMEO
浏览 0
提问于2015-02-23
得票数 4
1
回答
在ubuntu 18.x上编译
nginx
和naxsi
linux
、
ubuntu
、
firewall
、
nginx
/
nginx
-1.14.0/
debian
/modules/http-headers-more-filter \--add-dynamic-module=/build/
nginx
-mcUg8N/
浏览 0
提问于2018-06-01
得票数 0
回答已采纳
1
回答
nginx
位置
没有根目录就无法工作,尽管根位于服务器中。
nginx
、
nginx-location
我有一个
nginx
配置,其中包含服务器
块
中指定的根。根据这样的页面(),这应该足够了,而不需要在
位置
/
块
中放置相同的根。但是,除非我在
位置
/
块
中放置了根指令,否则我会得到404错误。这里是我的服务器区: listen 80; root /usr/local/
nginx
/sites/mys
浏览 1
提问于2016-04-29
得票数 0
回答已采纳
1
回答
Nginx
ssl服务不同的索引文件
ssl
、
nginx
# Add index.php to the list if you are using PHP在更改之后,我尝试搜索文件显示的
位置
。sudo grep 'Welcome
浏览 11
提问于2016-09-19
得票数 0
1
回答
Nginx
无法处理文件10+ mb文件上传
javascript
、
nginx
、
google-cloud-platform
/client-body-buffer-size: 1000m
nginx
.ingress.kubernetes.io/fastcgi-read-timeout: "600"
nginx
.in
浏览 102
提问于2021-11-11
得票数 0
1
回答
尊重
nginx
配置中的两个
位置
指令
nginx
、
configuration
、
webserver
以下内容使
nginx
无法传递到PHP快速not服务器,因为我创建了一个
位置
块
: auth_basic "Nope.fastcgi_keep_conn on; fastcgi_pass 127.0.0.1:4623;方法:如果第一个
位置
块
匹配,则似乎
忽略
了第二个
位置
块
。有没有任何解决方案,而不复制从第二个<em
浏览 2
提问于2014-03-29
得票数 3
回答已采纳
1
回答
在
位置
{}
块
中指定
nginx
的ssl_certificate
nginx
、
ssl
、
ssl-certificate
目前,我必须定义两个服务器
块
,每个服务器
块
指向同一个根。唯一的区别是ssl_certificate指令,但是这个指令只能在http或服务器级别上声明。 但是,是否有办法避免服务器
块
中的复制/粘贴?-1.2.7/
debian
/modules/
nginx
-auth-pam --add-module=/build/buildd/
nginx
-1.2.7/
debian
/modules
浏览 0
提问于2014-02-17
得票数 3
1
回答
无法在
nginx
中找到
位置
块
configuration
、
nginx
很难想出
nginx
配置中的
位置
块
。这就是我所拥有的: listen 80; fastcgi_pass 127.0.0.1:9000;} 按预期浏览/工作,并在/var/www/root中显示网站,但如果
浏览 0
提问于2012-05-01
得票数 7
回答已采纳
1
回答
停止
nginx
忽略
服务器
块
中的特定子域
nginx-config
在/sites_available中名为alpha的文件中有一个服务器
块
。服务器
块
使用文档根= /var/www/alpha设置server_name alpha.example.com。在/sites_available中名为beta的文件中有一个服务器
块
。服务器
块
使用文档根= /var/www/beta设置server_name beta.example.com。我想要的行为是让每个服务器
块
将单个子域路由到特定的文档根,而
浏览 11
提问于2021-12-24
得票数 0
1
回答
NginX
“定位”
块
选择算法
nginx
因为可以用不同的模式定义多个
位置
块
,所以当
Nginx
收到请求时,它会搜索与请求的URI最匹配的
位置
块
。
位置
块
(带有=修饰符):如果指定的字符串与请求的URI完全匹配,则
Nginx
保留
位置
块
。没有修饰符的
位置
块
:如果指定的字符串与请求的URI完全
浏览 2
提问于2015-05-05
得票数 0
回答已采纳
1
回答
在Ubuntu 18.04上运行多个站点
Nginx
server
、
php
、
nginx
、
localhost
我是
Nginx
的初学者(也使用PHP7.2),我不知道如何使用分隔的文件夹访问多个站点。因此,作为默认文件夹,我设置了/home/user/php;。问题是,当我输入浏览器localhost:8000/site1/时,它会显示index.php文件中的内容,但会干扰该
位置
的其他文件。比如照片。下面是我的/etc/
nginx
/sites/available/default配置:https://pastebin.com
浏览 0
提问于2018-08-26
得票数 1
回答已采纳
1
回答
不能使用
NGINX
和数字海洋提供静力学文件
node.js
、
performance
、
nginx
、
digital-ocean
NGINX
为我的HTML文件提供服务,但它不服务于我的css或java文件。我尝试为公用文件夹添加
位置
块
,这是我的样式表、图像和java文件所在的地方。https://www.
nginx
.com/resources/wiki/start/topics/tutorials/config_pitfalls/ # https://wiki.
debian
.org# See: https:/
浏览 1
提问于2020-09-03
得票数 0
1
回答
Nginx
公然
忽略
位置
块
,即使它匹配。
nginx
为了达到上述效果,下面是我的
Nginx
conf。但是,根据日志,当出现像website.com/assets/admin/css/base.css这样的请求时,
Nginx
会查看/home/user/project/frontend文件夹,这不是配置所要求的GET /assets/admin/css/base.css HTTP/1.1", host: "website.com" 在不同的服务器上,我有
浏览 2
提问于2022-08-24
得票数 0
1
回答
从1.6升级到
Nginx
1.11?
nginx
在
Debian
8Jessie上升级
nginx
1.6 -> 1.11遇到了非常奇怪的事情。启动
nginx
时,所有/etc/
nginx
/站点启用配置都被
忽略
。我所有的内容都包含在/etc/
nginx
/
nginx
.conf中,我的所有路径都很好。理性想要这样做- http2支持,但最终回到1.6。 有人看到类似的情况我做错了什么?
浏览 1
提问于2016-09-05
得票数 0
回答已采纳
2
回答
如何在
nginx
nodejs服务器上配置ws websocket?
node.js
、
nginx
、
websocket
我目前正在尝试将我的NODEJS应用程序部署到
nginx
debian
远程服务器上。它在localhost中工作得很好。但是我在远程
nginx
服务器上做websocket有一些困难。Server({port: 40510});var ws = new WebSocket('ws://localhost:40510'); 我知道我必须在我的
Nginx
VPS上配置/etc/
Nginx
/site
浏览 3
提问于2018-11-26
得票数 2
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券