腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9535)
视频
沙龙
1
回答
Nginx
不
设置
server_name
可以吗
?
nginx
如果我在
nginx
中
设置
了
server_name
,当我测试时,它会重定向到
server_name
中指定的url,我
不
希望发生这种情况。此外,我需要有重定向规则,如 server { return 301 $scheme://example.kr$request_uri
浏览 409
提问于2019-09-25
得票数 0
回答已采纳
1
回答
当
server_name
正则表达式
不
匹配时,
nginx
接受尾随点
nginx
Nginx
接受尾随点(例如example.tld.)。regex已经
设置
了
server_name
的开始和结束,请参见下面。
server_name
~^example.tld$;
server_name
正则表达式与example.tld.
不
匹配,但
nginx
与此vhost匹配。我发现了的问题,但这有点像解决办法,不是吗?我想知道为什么
nginx
匹配vhost,而regex
不
匹配?是基于RFC标准的某种内部逻辑吗?
浏览 4
提问于2016-12-20
得票数 2
回答已采纳
3
回答
我正在运行
nginx
,但它不支持我的react构建
reactjs
、
ubuntu
、
nginx
、
npm
、
vps
我的电脑上运行着
nginx
。当我在浏览器中转到我的ip地址时,我看到了
nginx
的欢迎页面,但我看不到我的react应用程序。我只得到了一个404错误,上面写着
nginx
。看起来像是 server { root home/a/Documents/d/dapp1/mainDapp/client/build/sites-available/sdft /et
浏览 40
提问于2020-07-15
得票数 1
1
回答
在一个on地址上支持default_server和多个域的
Nginx
nginx
我刚刚安装了
nginx
并为test.example.com创建了一个新的配置。这是可行的。server {
server_name
test.example.com; rewrite ^ https://test.example.com$request_uri permanent;server {
浏览 3
提问于2013-04-25
得票数 3
回答已采纳
2
回答
nginx
允许任何未指定的子域都没有错误。
ubuntu
、
nginx
、
passenger
我正在运行一个Ubuntu12.04 LTS服务器与乘客和
Nginx
支持。我已经成功地
设置
了我的服务器来从根运行我的Ghost.org博客,但是有一件事我不知道为什么子域是allowed...for示例。如果你去,你会得到我的网站,但如果你进入,你会得到欢迎/成功网页。
浏览 7
提问于2014-01-08
得票数 1
回答已采纳
1
回答
无端口的
Nginx
访问应用程序
nginx
、
reverse-proxy
我在
nginx
上运行了应用程序:最后,我想通过网络中的http://xyz.zyx.de来访问应用程序。IT管理员说,在他在DNS服务器上
设置
配置之前,我首先需要在我的应用服务器上
设置
反向代理。因此,我试图做到这一点,我的应用程序出现时,我只是要求:我怎么才能在
nginx
上做到这一点?我目前的配置是: listen 8080; <em
浏览 0
提问于2020-07-08
得票数 0
3
回答
当通过
nginx
代理时,烧瓶应用程序提供了无处不在的404。
python
、
nginx
、
proxy
、
flask
下面是
nginx
的配置文件: server 127.0.0.1:5000; rewrite然而,当我去http://127.0.0.1/api/me时,我会从烧瓶应用程序(而不是
nginx
)得到一个404。此外,如果这很重要,则将烧瓶
SERVER_NAME
变量
设置
为127.0.0.1:5000。 我真的很感激你的任何建议,我很困惑!如果还有什么需要补充的,请告诉我
浏览 3
提问于2014-01-02
得票数 10
回答已采纳
1
回答
出现
nginx
主页而不是我的应用程序。
docker
、
express
、
nginx
的配置如下: listen 80; gzip_disable: build: ./
nginx
- ./
nginx
/config:/etc/
nginx
/conf.d - ./
浏览 3
提问于2022-07-19
得票数 0
1
回答
Nginx
:如何正确
设置
限速?
nginx
经过谷歌搜索,我找不到好的信息,如何限制
nginx
和debian的速度。limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
server_name
Realesta74.net; limit_req zone=one burst=5;} 这样
可以吗<
浏览 2
提问于2018-05-13
得票数 2
1
回答
Dokku:防止流氓域被
nginx
服务
nginx
、
dokku
我想我可以在server { return 404 }文件中找到类似
nginx
.conf的东西,但我不知道Dokku是如何使用这些
nginx
配置的。
浏览 4
提问于2014-09-07
得票数 0
回答已采纳
1
回答
Nginx
server_name
指令是如何使用CNAME记录的?
dns
、
nginx
场景server {
server_name
myabc.domain.com问题浏览器自动将host头
设置
为我输入的标题。(我猜想) 那么,为什么
nginx</em
浏览 0
提问于2019-12-10
得票数 0
1
回答
处理码头映像中特定环境的静态文件
docker
、
nginx
、
dockerfile
我创建了一个
nginx
码头形象:COPY
nginx
.conf /etc/
nginx
/
nginx
.confhttp {
server_name
www-dev.example.org; } serv
浏览 10
提问于2022-08-31
得票数 0
回答已采纳
2
回答
在同一个域上托管多个Symfony项目
php
、
symfony
、
nginx
我现在的
nginx
conf是:
server_name
domain.fr www.domain.fr; return 404; access_log/var/log/<e
浏览 0
提问于2017-06-06
得票数 2
1
回答
nginx
301重定向不起作用
redirect
、
nginx
下面是我的配置文件: listen 80; access_log /var/log/
nginx
/myvps.com.access.log; client_max_body_sizelocation / { root &
浏览 0
提问于2012-04-28
得票数 0
回答已采纳
2
回答
NGINX
server_name
不
工作
nginx
我在
nginx
中计算了以下关于
server_name
的问题,可能需要你的帮助。这是驻留在/etc/
nginx
/conf.d/中的default.cnf listen 80;
server_name
planner.dev;
浏览 1
提问于2014-05-22
得票数 1
1
回答
NGINX
Proxy_pass :使用proxy_host作为请求头主机
nginx
、
reverse-proxy
、
proxypass
但是当我使用google检查请求主机时,它仍然是我用来
设置
proxy_pass的服务器IP。
浏览 0
提问于2018-05-21
得票数 1
1
回答
虽然
nginx
处理重定向,但我是否应该启用Rails force_ssl?
ruby-on-rails
、
ssl
、
nginx
、
passenger
场景我已经将
nginx
配置为使用SSL并将所有HTTP通信重新路由到HTTPS。server {
server_name
myapp.com rewrite^ https://$
server_name
$request_
浏览 2
提问于2013-08-01
得票数 3
1
回答
Nginx
不是在代理Gunicorn
nginx
、
flask
、
gunicorn
我试图部署我的水瓶项目使用Gunicorn和
Nginx
,但我仍在挣扎。acelerathon-cima-grupo-3 gunicorn[18451]: [2020-01-17 20:25:01 +0000] [18456] [INFO] Booting worker with pid: 18456server {
server_name
127.0.0.1;
浏览 0
提问于2020-01-17
得票数 0
2
回答
Nginx
无法通过gunicorn代理django应用程序
django
、
ubuntu
、
nginx
、
gunicorn
我试图使用
Nginx
和Gunicorn在UbuntuServer18.04中部署Django应用程序。至少从日志和状态的角度来看,每个工具似乎都能正常工作。然而,如果我直接写我的IP,我得到的只是典型的欢迎来到
nginx
主页,并且请求是完全不可见的,所以
nginx
似乎无法找到并将请求传递给gunicorn套接字。这是我的
nginx
配置 listen 80; location /fav
浏览 0
提问于2019-06-02
得票数 0
回答已采纳
2
回答
SERVER_NAME
和proxy_pass的配置方法是什么?
nginx
、
docker
、
flask
、
gunicorn
我使用、gunicorn、
NGINX
和 docker
设置
了对接项目,如果不在Flask的setting.py中添加
SERVER_NAME
,这个项目运行良好。:/code - db restart: always links: expose: ports: - "8880:8080
浏览 2
提问于2017-06-16
得票数 2
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
即时通信 IM
活动推荐
运营活动
广告
关闭
领券