腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
nginx
location
指令
被
放在
url
path
前面
nginx
、
nginx-location
我在位置
指令
"/folder“中设置了一个别名。别名指向"/my/ alias /
path
“。当我导航到位置中的
URL
时,例如"mydomain.com/folder/destination",
指令
名称
被
放在
请求的
前面
,它解析为"/my/alias/
path
/folder/destination
浏览 8
提问于2019-06-03
得票数 1
回答已采纳
1
回答
nginx
位置块中的负向回看
regex
、
nginx
我有两个位置块,用于/virtual目录的一个使用别名,而用于/的位置块具有自己的根
指令
。这个根
指令
被
虚拟文件夹继承,弄乱了路径。有没有办法从继承/
location
块的根
指令
中排除/virtual中的urls?以下是我的服务器配置的摘录: root /
path
/to; alias /
浏览 2
提问于2017-05-25
得票数 0
3
回答
Django -在子路径中运行静态文件的问题
python
、
django
、
nginx
我的堆栈是
nginx
+ Django 2.0.5,运行在docker容器中。
Nginx
配置: proxy_pass http://localhost:8000/; proxy_set_header Proxy "";当涉及到Django时,STATIC_
浏览 0
提问于2018-07-04
得票数 5
1
回答
Nginx
的Dockerfile
node.js
、
reactjs
、
nginx
、
dockerfile
、
packer
/conf/
nginx
.conf", "echo \"server {
location
/ {# Set
path
root /var/www/; try_files $uri /index.html; } } \" >> /usr/local/openresty/
nginx
/conf/
nginx
.conf
浏览 14
提问于2019-09-30
得票数 0
1
回答
在apache前使用
Nginx
重写
url
apache
、
nginx
、
url-rewriting
、
friendly-url
、
prestashop-1.6
我正在尝试弄清楚如何在apache面前使用
nginx
重写urls。对于这样的设置,我还是个新手,经过广泛的研究后,我无法弄明白。
浏览 0
提问于2014-04-15
得票数 0
1
回答
在
NGINX
上设置noindex一些页面
nginx
、
configuration
、
seo
我想设置一些
URL
的索引。如果任何
URL
包含?lang= \>(开始时) /plugin \\(开始) /account,则应该通过在
NGINX
配置中添加HTTP报头而不是索引。我以前试过下面的代码, add_header X-Robots-Tag "noindex, follow" always; 我为我的网站使用的其他
NGINX
位置
指令
:(我的脚本的这些默认<
浏览 0
提问于2019-08-03
得票数 1
回答已采纳
1
回答
Nginx
-无法使用htaccess
nginx
保护目录
.htaccess
、
nginx
、
ubuntu-12.04
、
password-protection
、
.htpasswd
我需要在运行
Nginx
的Ubuntu Server 12.04中保护一个特定的文件夹。然后转到配置文件中的服务器块,并将 auth_basic "R
浏览 0
提问于2014-11-09
得票数 1
2
回答
nginx
重写文件存在,但
被
重写。
url-rewriting
、
nginx
、
rewrite
我在/
path
/下有一个php应用程序if (!.eg /
path
/CSS/style.css修正了rewrite ^/
path
/(.+)/$ /
path
/index.php last;,因为我所有需要用尾随斜杠重写的urls,但仍然令人困惑
nginx
.conf http {
浏览 4
提问于2011-05-04
得票数 0
回答已采纳
2
回答
为
nginx
安装laravel (权限
被
拒绝的错误)
php
、
laravel
、
nginx
我试着把我的龙舌兰调到
nginx
。_
url
=/$1; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_nameclient: 127.
浏览 4
提问于2014-11-24
得票数 1
回答已采纳
1
回答
uwsgi_pass不转发SCRIPT_NAME头
django
、
docker
、
nginx
、
uwsgi
我使用docker作为我的应用程序和静态文件,所以我的服务器上有主
nginx
作为反向代理,另一个
nginx
在"
nginx
“容器中为我的应用程序路由内容,uWSGI在第二个容器中提供实际的Django数据通常,SCRIPT_NAME头用于这种类型的内容,因此在主机上有
nginx
配置: listen 80; # Just for sake of simplicity, of coursein production it's 443 with SSL
location</em
浏览 0
提问于2019-07-12
得票数 2
回答已采纳
1
回答
Nginx
重写,防止PHP文件直接访问
nginx
、
url-rewriting
test_com/public_html; index index.html index.php index.htm; fastcgi_param
PATH
_INFO$2; }
浏览 0
提问于2018-02-17
得票数 1
2
回答
如何将代理从/传递到/index.html
nginx
、
nginx-location
、
nginx-reverse-proxy
我目前正在开发一个使用
url
路径的JS项目。documentation
location
= /50x.html {} 我试过的东西:listen 80;2G;
locatio
浏览 3
提问于2017-09-08
得票数 8
回答已采纳
3
回答
Nginx
Basic Auth不工作
authentication
、
nginx
、
configuration
我正在尝试密码保护我的
Nginx
配置中的默认服务器。但是,当我访问该站点时,不会显示用户名/密码对话框。
Nginx
像往常一样返回内容。tcp_nopush on; tcp_nodelay on; error_log /var/log/
nginx
/sub.domain.com.error de
浏览 9
提问于2015-10-14
得票数 3
1
回答
nginx
位置
指令
不返回http状态。
nginx
、
configuration
、
ubuntu-20.04
使用基本的
nginx
(v1.18)配置运行AWS ec2 Ubuntu (v20.04) web服务器。但是,用于返回http状态代码200的
location
指令
从未被处理和/或
被
处理和忽略。'; return 412;
location
/a-custom-
path
永远不会返回200我尝
浏览 0
提问于2021-10-08
得票数 0
回答已采纳
1
回答
WordPress不支持
nginx
头文件
php
、
wordpress
、
nginx
、
header
静态网站(静态PHP页面)“尊重”我在
nginx
conf,http部分中设置的头文件。31536000; includeSubdomains;";标题:Server:
nginx
当然有liste、server_name、索引ecc..然后是位置: try_files $uri $uri/ /index.php?$args; <e
浏览 0
提问于2014-09-17
得票数 0
1
回答
NGINX
-基于构建参数启用/禁用位置
指令
docker
、
nginx
我目前正在尝试构建一个
NGINX
Docker容器,它将与Jupyter容器一起运行。在Jupyter中,有一个我希望在
NGINX
容器构建过程中禁用或启用的下载功能。目前,我正在通过Dockerfile文件传递一个构建参数,该参数将作为环境变量读取到
nginx
.conf文件中。然而,似乎在Jupyter中控制下载的
location
指令
不能
放在
一个条件中。如果我理解正确的话,
location
指令
必须始终位于server
指令
下。 env
浏览 1
提问于2020-05-27
得票数 0
1
回答
webdevops从
url
删除.php要求
docker
、
nginx
、
nginx-location
、
nginx-config
我有一个基于webdevops/php-
nginx
:7.2的对接程序,我正在尝试配置
nginx
来将带有或没有.php扩展名的请求路由到适当的文件中。Dockerfile包含COPY docker/opt/docker/etc /opt/docker/etc/ opt/docker/etc/
nginx
/conf.d/10-
lo
浏览 9
提问于2020-10-19
得票数 0
回答已采纳
3
回答
如何排除Apache Mod_proxy的
URL
?
linux
、
apache-2.2
、
tomcat
、
mod-rewrite
、
mod-proxy
我们有两个Apache服务器作为前端,4个tomcat服务器作为后端配置,使用mod_proxy模块作为负载均衡器。现在,我们希望从mod_proxy负载均衡器中排除一个tomcat。有什么方法或规则可以排除吗?<Proxy balancer://backend-cluster1> BalancerMember http://10.0.0.2:8080 loadfactor=1 route=test2 retry
浏览 0
提问于2013-06-25
得票数 36
1
回答
任意域名的
Nginx
匹配路径
nginx
、
lets-encrypt
我想配置
nginx
,以便每个域名上的特定路径路由到某个位置。用例是,我希望能够指出,让加密在这个位置,以删除验证文件,并让它工作在每个领域。我知道
nginx
有可以在服务器块中使用的
location
块,但我不知道如何让服务器块在路径正确时接受所有域名,即使其他服务器块指定要侦听的域。
浏览 0
提问于2020-04-11
得票数 1
回答已采纳
1
回答
nginx
:如何在多个位置使用多个根,包括/?(我的路径配置有什么问题?)
nginx
我正在尝试为第一次测试使用设置
nginx
,还没有域。“某些页面”目前只是默认的/var/www/html/index.
nginx
-debian.html。在/etc/
nginx
/sites-available/中,我创建了一个projectname配置,并设置了一个指向启用站点的链接: root
浏览 11
提问于2021-12-14
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
你需要知道的Nginx配置二三事
前置缓存-NGINX Content Caching
你真的了解 Nginx rewrite 么?
玩转 Nginx 之:使用 Lua 扩展 Nginx 功能
Nginx反向代理
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券