大佬教程收集整理的这篇文章主要介绍了Apache + SSL 代理错误上的 Spring Boot API,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用代理在 Apache Web 服务器上部署 Spring boot API。我设法做到了,它对 http 工作正常。但是,当我开始使用 httpS 时,它停止工作。
我的网站的 apache conf 是:
<VirtualHost *:80>
Serveradmin admin@domain.com
Servername my-site.com
ServerAlias www.my-site.com
documentRoot /var/www/my-site.com
Redirect peRMANent / https://my-site.com/
</VirtualHost>
<VirtualHost *:443>
Servername my-site.com
ServerAlias www.my-site.com
documentRoot /var/www/my-site.com
ProxyPreserveHost On
ProxyPass /API http://localhost:8080/
ProxyPassReverse /API http://localhost:8080/
SSLENGIne on
SSLCertificatefile /etc/ssl/...
SSLCertificateKeyfile /etc/ssl/...
SSLCertificateChainfile /etc/ssl/...
</VirtualHost>
当我向 https://my-site.com/api 发送请求时,我的 jar 日志中出现以下错误:
java.lang.IllegalArgumentexception: InvalID character found in method name. http method names must be tokens
感谢您的帮助。
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的Apache + SSL 代理错误上的 Spring Boot API全部内容,希望文章能够帮你解决Apache + SSL 代理错误上的 Spring Boot API所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。