【发布时间】:2017-04-22 09:54:32
【问题描述】:
我坚持在 AWS 上配置一个简单的反向代理。 由于我们有一台主机(反向代理 nginx)服务于公共访问,我决定遵循规则并创建以下配置。
server {
listen 9990;
server_name project-wildfly.domain.me;
access_log /var/log/nginx/wildfly.access.log;
error_log /var/log/nginx/wildfly.error.log;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
root /var/www/;
index index.html index.htm;
location /console {
proxy_set_header Host $server_addr:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Cache-Control "no-cache, no-store";
proxy_pass http://10.124.1.120:9990/console;
}
location /management {
proxy_set_header Host $server_addr:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Cache-Control "no-cache, no-store";
proxy_pass http://10.124.1.120:9990/management;
}
}
这将为管理控制台提供服务,我可以使用该用户登录。然后出现这条消息:
访问被拒绝
访问此界面的权限不足。
错误日志中没有任何内容。感谢您的任何提示!
【问题讨论】:
标签: nginx wildfly wildfly-10