I am using Apache Virtual Hosts to run multiple websites. I am using apache in Front and this apache is redirecting the url request to the wildfly Server.
My Apache Configuration is working fine for http request using below code
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName mysitedemo.com
ServerAlias www.mysitedemo.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ErrorLog "logs/mysitedemo-error_log"
CustomLog "logs/mysitedemo-access_log" common
</VirtualHost>
Now I also want to handle Https Request for that i have added below code in vhosts file
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName mysitedemo.com
ServerAlias www.mysitedemo.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / https://localhost:8443/
ProxyPassReverse / https://localhost:8443/
ErrorLog "logs/mysitedemo-error_log"
CustomLog "logs/mysitedemo-access_log" common
</VirtualHost>
But it is not working properly giving me, the following error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I have setup the SSL on Wildfly server. Do I need to buy separate SSL for Apache as well or can I use the same SSL on Apache? If yes, then please explain how I can do that?