This is a very simple HTTP server for Unix, using fork(). It's very easy to use
- include header
httpd.h
- write your route method, handling requests.
- call
serve_forever("12913")
to start serving on port 12913
Open apache httpd.conf file | |
Enable the following Modules by removing the # at the front of the line. | |
- LoadModule rewrite_module modules/mod_rewrite.so | |
- LoadModule proxy_module modules/mod_proxy.so | |
- LoadModule proxy_http_module modules/mod_proxy_http.so | |
- LoadModule proxy_connect_module modules/mod_proxy_connect.so | |
Open apache httpd-vhosts.conf | |
<VirtualHost *:80> | |
ProxyRequests On |