Setting Apache as web server for Liferay front is so easy. Thanks Alpesh Sir ji for help.
Once Apache is installed, open httpd.conf and add the lines like below-
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName liferay62.local | |
ProxyPass / http://localhost:4000/ | |
ProxyPassReverse / http://localhost:4000/ | |
ProxyPreserveHost On | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerName liferay61.local | |
ProxyPreserveHost On | |
ProxyPass / http://localhost:3128/ | |
ProxyPassReverse / http://localhost:3128/ | |
</VirtualHost> |
Make sure you enable mod_proxy and mod_proxy_http before starting apache.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so |
Until next time.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.