Answer the question
In order to leave comments, you need to log in
How to limit a part of the Extranet portal in Bitrix?
Good afternoon! There is a Bitrix portal, its public part (portal.company.ru) should be accessible only via VPN, and the portal.company.ru/extranet section should be accessible to the entire Internet.
By means of nginx I tried to make a restriction for VPN access, it works fine:
location / {
allow <ext_office_IP>;
allow <ext__office_IP>;
deny all;
proxy_pass http://10.16.0.18:80;
proxy_redirect http://10.16.0.18:80 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /bitrix/ {
proxy_pass http://10.16.0.18:80;
proxy_redirect http://10.16.0.18:80 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /extranet/ {
proxy_pass http://10.16.0.18:80;
proxy_redirect http://10.16.0.18:80 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question