主题 : 1.7版本,发布的资源 和页面不在一个域名下 |
级别: 白丁
![]() |
1# 发表于:2021-01-23 14:16:21 IP:121.41.*.*
|
||||
---|---|---|---|---|---|
级别: 管理员
![]() |
3# 发表于:2021-01-23 14:24:36 IP:111.200.*.*
您资源放在ftp服务器上,您域名配的本地ip,怎么会是一样的域名呢?
|
||
---|---|---|---|
级别: 举人
![]() |
4# 发表于:2021-01-25 10:47:29 IP:121.41.*.*
请问为什么这样配了,通过nginx访问监听端口,反而打不开项目了?
|
||
---|---|---|---|
级别: 举人
![]() |
6# 发表于:2021-01-25 10:58:28 IP:121.41.*.*
看下图片
|
||
---|---|---|---|
级别: 举人
![]() |
7# 发表于:2021-01-25 10:59:18 IP:121.41.*.*
server {
listen 9994; server_name 127.0.0.1; #charset koi8-r; access_log logs/host.access.log main; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://192.168.116.16:8080; } location ~ .*\.(html|htm|gif|jpg|jpeg|bmg|png|ico|txt|js|css)$ { alias /data/upoms/ctwingcms/; expires 1d; } } |
||
---|---|---|---|
级别: 举人
![]() |
9# 发表于:2021-01-25 11:07:35 IP:121.41.*.*
是的,设置了 ftp,如果我关闭了ftp,为什么还一直从ftp去取?比如说404页面,不是应该从本地去拿吗
|
||
---|---|---|---|