You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Directory /var/www/>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Remove apache version
vim /etc/apache2/apache2.conf
Header unset Server
ServerSignature Off
ServerTokens Prod
Install PHP
apt-get install apache2 php libapache2-mod-php
Disable CORS
a2enmod headers
vim /etc/apache2/apache2.conf
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
Header set Access-Control-Allow-Headers "Content-Type"
</IfModule>
Load Balancer
a2ensite forward_proxy.conf
vim /etc/apache2/mods-enabled/proxy.conf
ProxyRequests On
<Proxy *>
AddDefaultCharset off
Require all denied
#Require local
</Proxy>
vim /etc/apache2/sites-available/forward_proxy.conf
<VirtualHost *:80>
<Proxy balancer://someName>
BalancerMember http://<rhost>:8080 route=worker1
BalancerMember http://<rhost>:8080 route=worker2
</Proxy>
ProxyRequests On
ProxyVia On
<Proxy "*">
Require ip 192.168
</Proxy>
ErrorLog ${APACHE_LOG_DIR}/error_forward_proxy.log
CustomLog ${APACHE_LOG_DIR}/access_forward_proxy.log combined
</VirtualHost>