Saturday 14 March 2015

Apache Web Server Installation on Mac

Apache Web Server Installation

cmd

[ Issue cc compiler check fails

checking whether the C compiler works... no


sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain ]

sudo ./configure --prefix=/Users/vimal-zt58/Downloads/Programs/apache --enable-rewrite=shared --enable-proxy=shared

make (compilation)
make install

sudo apachectl  start
sudo apachectl  stop
sudo apachectl  restart


client - web server - [/ui server-application server1, /api server - application server2]

http.conf
<VirtualHost *>
ServerName www.example.com
ProxyRequests Off
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
ProxyPass /ui http://www.example.com:5050/ui
ProxyPassReverse /ui http://www.example.com:5050/ui

ProxyPass /api http://www.example.com:8080/api
ProxyPassReverse /api http://www.example.com:8080/api
</VirtualHost>



No comments:

Post a Comment