我使用NGinx重定向我的JBoss应用程序: http://mywebsite.com:8283 - > http://test.mywebsite.com
此解决方案有效,但有些模块不像jquery那样工作:
控制台错误
POST http://mywebsite.com/SaikuIS/rest/saiku/USER/query/2F70DD1F-3449-…antillon.AllSampleTypes%5D.%5BToutes%20les%20types%20d'%C3%A9chantillon%5D 400 (Illegal character in path at index 152: http://mywebsite.com/SaikuIS/rest/saiku/USER/query/2F70DD1F-3449-574E-9326-26DC27F53E25/axis/COLUMNS/dimension/Type%20d'echantillon/hierarchy/[Type%20d'echantillon.AllSampleTypes]/[Type%20d'echantillon.AllSampleTypes].[Toutes%20les%20types%20d'%c3%a9chantillon])
proxy.conf
server{
listen 80;
server_name test.mywebsite.*;
location / {
proxy_pass http://127.0.0.1:8283/;
}
}
nginx.conf
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
你能帮我解决这个问题吗?