[*]Block access to all files/folder by default
[*]Make /myfolder/ accessible to everyone
Allow a specific IP to access Alles < /p>
< /li>
< /ol>
Das habe ich versucht, < /p>
Code: Select all
Order Deny,Allow
Deny from all
Allow from x.x.x.x
Allow from all
< /code>
Mein apache.conf < /p>
ServerName www.example.com
ServerAlias example.com
DocumentRoot /var/www/example/example.jp/
ProxyRequests off
ProxyPreserveHost on
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
ProxyPass /ws !
alias /ws /var/www/example/example.jp/ws
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
< /code>
MyFolder existiert in WS < /code>. < /p>
Problem wird blockiert. Ich habe Reverse Proxy verwendet, also musste ich
verwendenSetEnvIf X-Forwarded-For "^myip" ALLOWED_IP