https://github.com/code-egg/ols-proxy
Quick setup for OpenLiteSpeed as a reverse proxy.
https://github.com/code-egg/ols-proxy
apache2 hacktoberfest openlitespeed owasp reverse-proxy
Last synced: about 1 year ago
JSON representation
Quick setup for OpenLiteSpeed as a reverse proxy.
- Host: GitHub
- URL: https://github.com/code-egg/ols-proxy
- Owner: Code-Egg
- License: mit
- Created: 2020-11-17T04:26:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T08:20:24.000Z (over 3 years ago)
- Last Synced: 2025-03-29T10:22:18.259Z (about 1 year ago)
- Topics: apache2, hacktoberfest, openlitespeed, owasp, reverse-proxy
- Language: Shell
- Homepage:
- Size: 41 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
### OpenLiteSpeed as a Reverse Proxy
Environment
```
Port 80 >>> OpenLiteSpeed proxy >>> port 81 Apache
Port 443 >>> OpenLiteSpeed proxy >>> port 444 Apache
```
The script will auto install OpenLiteSpeed, Apache, LSPHP, PHP. Config OLS as a reverse proxy via rewrite rules.
## How to install
Clone the repository
```
git clone https://github.com/Code-Egg/ols-proxy.git
```
Update `ols-proxy/backend-cnf` for backend server IP/Port if needed. If URL is not '127.0.0.1', then the setup script will treat the backend server as remote, and skip apache setup.
```
BACKEND_HTTP_PORT='81'
BACKEND_HTTPS_PORT='444'
BACKEND_IP='127.0.0.1'
BACKEND_DOMAIN='www.example.com'
```
Run the setup script
```
cd ols-proxy; bash setup.sh
```
## Optional Settings
Make sure your OpenLiteSpeed version start from v1.7.6+
Enable OWASP ModSecurity rule set on OLS
```
bash owaspctl.sh --enable
```
Disable OWASP ModSecurity rule set on OLS
```
bash owaspctl.sh --disable
```