腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Nginx
geoip
重定向
,
但
排除
URL
nginx
、
url-rewriting
、
geoip
目前,我在
Nginx
中有以下
GeoIP
重定向
的设置:set $isAUuri 0;if ( $
geoip
_country_code =但有一个小问题:domain.com/usa-can/wp-admin ->按预期工作 domain.com/australia/wp-admin ->
重定向
到/usa-ca
浏览 13
提问于2019-07-17
得票数 0
1
回答
按地理位置更改域名,保持
URL
不变
php
、
redirect
、
geoip
我正在使用这个脚本来
重定向
用户根据他们的IP。
但
问题是它
重定向
到主页或仅
重定向
到我在脚本中指定的
URL
。我怎样才能改变域名而保持
URL
不变呢?例如,site.com/whateverpage
重定向
到site.au/whateverpage。$
geoip
= Net_
GeoIP
::getInstance('/home/your-domain/php&
浏览 0
提问于2013-06-06
得票数 0
回答已采纳
1
回答
在自定义设置的HTTP报头上进行可变的清漆缓存
http
、
caching
、
varnish
、
vary
所以我的计划是:有人有这样的设置经验吗?
浏览 6
提问于2011-11-29
得票数 2
1
回答
根据用户的ip地址位置,将用户
重定向
到同一web应用程序的不同域。
php
、
laravel
、
nginx
、
docker
我必须将我的web应用程序国际化到不同的国家,我有4个与每个国家对应的域,如何使用
nginx
来检测访问者的ip地址,并通过他们的ip将它们
重定向
到正确的域,如果它们从另一个国家加入,而我不支持将它们
重定向
到我的notice; worker_connections/usr/local/
nginx
/<em
浏览 1
提问于2016-02-04
得票数 2
回答已采纳
2
回答
重定向
国家脚本不起作用
php
、
redirect
、
geo
我想要你帮个忙然后我从这里下载了
geoip
.increquire_once('
geoip
.inc'); $country =
geoip
_country_code_by_addr
但
我
浏览 1
提问于2014-02-15
得票数 0
3
回答
nginx
/1.10.1上未知的指令"
geoip
_country“
nginx
、
geoip
我只是安装了
geoip
模块
nginx
version:
nginx
/1.10.1 built by gcc 4.8.5 20150623 (Redwith-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic **--with-http_
geoip
_modulefexceptions
浏览 0
提问于2016-08-19
得票数 6
回答已采纳
1
回答
如何安装ngx_http_
geoip
2_module模块?论Centos
nginx
、
geoip
我使用yum安装了
GeoIP
包。我在
geoIP
文件夹中找到了/usr/share/
GeoIP
/文件。我需要在:/etc/
nginx
/
nginx
.conf中添加一些关于某些国家的规则,为此,我需要加载模块,比如:load_module modules/ngx_http_
geoip
2_module.so;请参见:
geoip
_country /usr/share/<
浏览 0
提问于2020-02-04
得票数 2
1
回答
如何在没有if的情况下阻止某些国家(
geoip
2)的页面?
nginx
、
ip
、
centos7
、
geoip
、
geoip2
set $allowed_country yes; return 503;
但
如果没有如果Centos 7load_module modules/ngx_http_
geoip
2_module.so;
geo
浏览 9
提问于2020-09-25
得票数 1
回答已采纳
1
回答
在ubuntu16.04
nginx
版本1.12.1中未知的指令"
geoip
_country“
16.04
、
server
、
nginx
、
geolocation
、
geoip
我用厨师安装了
geoip
_country。手动尝试相同,
但
结果是相同的。获取错误:
nginx
: [emerg] unknown directive "
geoip
_country" in /etc/
nginx
/
nginx
.conf:12events {
浏览 0
提问于2017-09-27
得票数 0
2
回答
使用map指令使用
nginx
检查HTTP值
nginx
、
cookies
、
http-cookie
我需要根据客户端的IP和WPML Wordpress插件在cookie中设置的值执行
重定向
。
geoip
_country /usr/local/share/
GeoIP
/maxmind_countries.dat; m
浏览 0
提问于2022-07-16
得票数 1
回答已采纳
2
回答
Javascript,
重定向
到函数检索到的链接?
javascript
、
geolocation
现在我正在显示一个
重定向
到某个位置的href,我想自动
重定向
到相同的链接,但不知道如何
重定向
。<script></script> 我尝试使用window.location,但不知何故搞砸了,因为我从字面上讲到了函数的名称。
浏览 0
提问于2011-07-13
得票数 0
回答已采纳
1
回答
管理员页面显示为空
php
、
database
页面成功加载,并显示成功
重定向
到您,
但
仪表板或管理面板显示空白屏幕。查看下面的错误日志 2019/05/04 02:21:52 [emerg] 16768#16768: unexpected end of file, expecting "}" in /etc/
nginx
:572#0 /var/www/html/core/library/
geoip
.inc(464): _<em
浏览 13
提问于2019-05-04
得票数 2
1
回答
Nginx
用麋鹿堆+ Kafka制作圆柱形木材
elasticsearch
、
logstash
、
kibana
、
filebeat
'"xff":"$http_x_forwarded_for","domain":"$host",' codec => json}
geoip
{ remove_field => [ "[
geoip</e
浏览 0
提问于2021-01-19
得票数 0
回答已采纳
1
回答
如何编程查询
NGINX
中的
GeoIP
nginx
、
geoip
、
maxmind
我成功地使用参数"--with-http-
geoip
-module“和
geoip
模块完成了
NGINX
的编译。http{ ....一切看起来都很好,并且这个模块是没有错误加载的。 我在
NGINX
中添加了我自己的模块。并尝试从geo模块中查询
geoip</e
浏览 4
提问于2013-07-03
得票数 1
回答已采纳
1
回答
regex
nginx
删除尾随斜杠不适用于2个文件夹?
regex
、
nginx
、
url-rewriting
我们希望
nginx
永久地将
url
重定向
到非斜杠
url
。我们发现:rewrite ^/(.*)/$ /$ permanent;但是服务器不会启动: invalid number of arguments in "rewrite" directive in /opt/www/folder
浏览 1
提问于2018-05-11
得票数 0
回答已采纳
1
回答
更新站点包后启动
nginx
的问题
nginx
、
redhat
Dec 17 12:14:26 mnmmoweb01p.jkhy.com systemd[1]: Unit
nginx
.service entered failed state.Dec 17 12:14:26 mnmmoweb01p.jkhy.com systemd[1]:
nginx
.service failed.12:14:26 mnmmoweb01p.jkhy.com sudo[15175]: pam_unix(sudo:session): session closed for user root 不确定如何
排除
编辑:
ngi
浏览 0
提问于2019-12-17
得票数 0
1
回答
Nginx
geoip
环境变量未定义
nginx
、
environment-variables
、
geoip
:worker_processes auto;
geoip
_city /etc/
nginx</e
浏览 1
提问于2017-10-16
得票数 0
1
回答
目录位置不工作的
GeoIP
2 |没有目录位置工作
nginx
、
directory
、
location
、
geoip2
如果我指定了一个目录的位置,
但
还没有指定位置,则
GeoIP
2不起作用。if ($allowed_country = no) {} 我的
geoip
2的
nginx
设置 http { $
geoip
2_data_country_code country iso_code; $
g
浏览 17
提问于2019-02-28
得票数 0
3
回答
使用php地理
重定向
用户只需一次
php
、
redirect
、
geoip
我可以很容易地使用这个脚本,当用户登陆site.com/redirect.php时,他们会根据地理IP被
重定向
到适当的TLD,但是当我将这个代码添加到'index.php‘中时,它会创建一个
重定向
循环。HostGator$
geoip
= Net_
GeoIP
::getInstance('
GeoIP
.dat'); $country$
ur
浏览 0
提问于2013-06-04
得票数 2
回答已采纳
2
回答
在更新
GeoIP
.dat时,
nginx
重新加载是否足够
nginx
、
geoip
、
maxmind
我在MaxMind
GeoIP
付费数据库中使用
nginx
和geo_module。我放了一个cron脚本,它每周下载一个新的MaxMind
GeoIP
付费数据库,并用新的
GeoIP
.dat文件替换旧的cron文件。 在替换后重新加载服务就足够了吗?还是需要重新启动它?
浏览 0
提问于2015-11-13
得票数 5
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券