Introduction

GitHub Repo stars
GitHub commit activity
GitHub forks
GitHub contributors

Introduction

Sproxy is a reverse proxy that acts as a proxy server in the edge section close to the user on behalf of various web servers.

How to RUN

package required for build

Only CentOS 6 is supported

  • install epel repo

  • install rpm

    • db4 db4-utils db4-devel db4-cxx

    • libaio libaio-devel

    • curl libcurl libcurl-devel

    • gdb bison flex zlib-devel

    • openssl-devel libxml2-devel libuuid-devel.x86_64 sqlite-devel.x86_64 sqlite.x86_64

    • libgcrypt-devel GeoIP-devel gnutls-devel.x86_64

    • ffmpeg-devel.x86_64 libjpeg-turbo-devel.x86_64 fdk-aac-devel

    • tcl.x86_64 tcl-devel.x86_64 rpm-build.x86_64 gcc-c++

    • gnutls30.x86_64 gnutls30-devel GeoIP

Building solproxy

Move to source directory

  • Build netcache

    • ./netcache_build.sh

  • Build solproxy

    • ./solproxy_build.sh

Environment

  • make directory

    • mkdir -p /usr/service/etc/solproxy

    • mkdir -p /usr/service/sbin

  • copy binary

    • cp solproxy_build/solproxy /usr/service/sbin/

    • cp solproxy_build/MHD/0.9.73/src/microhttpd/.libs/libmicrohttpd.so* /usr/lib64/

    • cp libnetcache/lib/libnc.so* /usr/lib64/

    • cp libnetcache/lib/libhttpn_driver.so* /usr/lib64/

  • set env

Example configuration

  • /usr/service/etc/solproxy/default.conf

  • /usr/service/etc/solproxy/service.conf

How to run

  • export CSA_PIDFILE=/var/run/solproxy.pid

  • export CSA_CONFPATH=/usr/service/etc/solproxy

  • solproxy_build/solproxy

License

solproxy is is dual-licensed under the GNU General PublicLicense (GPLv2.0) or commercial license

Last updated