B
B
blackfox9902016-10-25 08:09:04
Apache HTTP Server
blackfox990, 2016-10-25 08:09:04

Need help organizing a redirect to a site from a local network?

Greetings. The point is the following. The management wanted to organize the Internet for visitors in the reception, but with the condition that for any request from any device, a specific company website should be displayed. The option with ready-made hotspot solutions, such as opnsense and pfsense, did not suit them.
A computer was assembled on centos, with Apache on the port where the page with a redirect to the resource we needed was spinning and the rule in iptables did not work) There was a cyclic redirect. The second option was to install a squid, with a redirect to its port and use the squid to make the direction. I end up with an err_ssl_protocol error. As I understand it, the squid does not know how to work with https, you need to rebuild it from the sorts with the necessary option and put a certificate, well, plus maybe crooked rules. I considered the option of stupidly downloading the site and making a mirror. Tell me damn, how best to do this, maybe I'm digging in the wrong direction?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2016-10-25
@Zarom

It will be difficult to make a redirect to https without a hook, I think. In any case, you will need to generate a certificate that will not be trusted.
Try the
nginx redirect from http to https solution described here

A
Alexander, 2016-10-25
@ferrum90

squid + squidguard proxy traffic when requesting certain resources using a template or randomly redirect to the page you need.
squid
url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
squidGuard
users_HTTPS_LIM { pass sites_1 sites_1 sites_3 none redirect smotri-suda.ru }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question