I am using Apache/2.4.29 (Ubuntu) and need to configure it as reverse proxy server for internal web server. my virtual host configuration in like below.
<VirtualHost *:80>
ServerName web.example.com
ServerAlias web.example.com
ProxyRequests off
ProxyPreserveHost On
ProxyPass / http://192.168.1.15/web/public/
ProxyPassReverse / http://192.168.1.15/web/public/
ProxyPassReverseCookiePath / /
<Location "/">
Order allow,deny
Allow from all
</Location>
ErrorLog ${APACHE_LOG_DIR}/web-error.log
CustomLog ${APACHE_LOG_DIR}/web-access.log combined
Expected result: http://web.example.com and Actual result: http://web.example.com/web/public/
Aucun commentaire:
Enregistrer un commentaire