Skip to content

Commit

Permalink
Apache Reverse Proxy is added.
Browse files Browse the repository at this point in the history
  • Loading branch information
EmreOvunc committed Nov 19, 2021
1 parent 441759d commit 78d2e67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Linux System Administrator & Engineer Certification Tricks Management Script
+ [x] [apache vhost](https://github.com/EmreOvunc/Linux-System-Management-Scripts-Tricks/blob/master/http-servers/apache-vhost)
+ [x] [apache basic authentication](https://github.com/EmreOvunc/Linux-System-Management-Scripts-Tricks/blob/master/http-servers/apache-basic-authentication)
+ [x] [apache restrict extensions](https://github.com/EmreOvunc/Linux-System-Management-Scripts-Tricks/blob/master/http-servers/apache-restrict-extensions)
+ [x] [apache reverse proxy](https://github.com/EmreOvunc/Linux-System-Management-Scripts-Tricks/blob/master/http-servers/apache-reverse-proxy)
+ [x] [nginx reverse proxy](https://github.com/EmreOvunc/Linux-System-Management-Scripts-Tricks/blob/master/http-servers/nginx-reverse-proxy)
+ [x] [nginx reverse proxy body](https://github.com/EmreOvunc/Linux-System-Management-Scripts-Tricks/blob/master/http-servers/nginx-reverse-proxy-body)
+ [x] [htaccess](https://github.com/EmreOvunc/Linux-System-Management-Scripts-Tricks/blob/master/http-servers/htaccess)
Expand Down
15 changes: 15 additions & 0 deletions http-servers/apache-reverse-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#sudo a2enmod proxy
#sudo a2enmod proxy_http
#nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ProxyPreserveHost On

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

LogLevel error
<Location "/">
ProxyPass http://10.0.0.1/
ProxyPassReverse http://10.0.0.1/
</Location>
</VirtualHost>

0 comments on commit 78d2e67

Please sign in to comment.