Tuesday, March 17, 2020

Apache HTTP Server HTTPD + SpringBoot Application


 (Tested working fine with the following)



Enable the following modules:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so


First we need to add the following to virtual host definition in httpd.conf  of Apache Server

ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/

Example:



<VirtualHost *:8080>
  
    ProxyPass / http://127.0.0.1:8081/example/   # Spring Boot Application URL
    ProxyPassReverse / http://127.0.0.1:8081/example/  # Spring Boot Application URL

</VirtualHost>

No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...