Веб-страница по умолчанию ни для какой установки прокси

for i in $(ls -1 directory1); do if (test -f directory2/$i) then echo $i; fi; done

1
задан 26 July 2012 в 15:40
2 ответа

Вам необходимо настроить брандмауэр на DNAT для всех исходящих подключений к порту 80 (за исключением подключений от прокси-сервера) к веб-серверу. Веб-сервер должен отвечать на все запросы (т. Е. Все имена хостов и все пути URL) со страницей, которую вы хотите отобразить.

0
ответ дан 4 December 2019 в 09:55

You can always configure proxy server to pass additional parameter in headers indicating what is the orginal client ip address that is sending this request. If the parameter will be missing in the request header you will know that the request is direct and you can generate HTTP 400 Bad request Error code, or if you prefer you can generate with php custom page with redirect in meta tag, which will redirect the connection to specific URL.

Here you have a SQUID config for the mentioned additional Header: http://www.squid-cache.org/Doc/config/forwarded_for/

0
ответ дан 4 December 2019 в 09:55

Теги

Похожие вопросы