1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

httpdからTomcatへプロキシした際に503エラーが返って来る

Posted at

前提、事象

  • OSはRHEL9系
  • httpdからTomcat(SpringBoot組み込み)へリクエストをプロキシしようとしたが、503エラーが返って来る
<VirtualHost *:80>
    ServerName xxxx.com
    DocumentRoot /var/www/html
    ProxyPass "/" "http://localhost:8080/"
    ProxyPassReverse "/" "http://localhost:8080/"
    ErrorLog /var/log/httpd/error.log
</VirtualHost>

原因

SELinuxの機能により、httpdプロセスからTomcatへの通信がデフォルトでブロックされていた。

対応

SELinuxの設定を変更することで、Tomcat(外部リソース)への通信を許可する。

setsebool -P httpd_can_network_connect on

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?