20
rated 0 times
[
20]
[
0]
/ answers: 1 / hits: 27639
/ 3 Years ago, mon, august 23, 2021, 3:19:25
I'm making an advertisement blocking DNS server that redirects all the advertisement domains to an instance of Apache. So something like
www.addomain.com
gets redirected to
dnsserver.localnetwork
However, occasionally I come across links more like
www.addomain.com/some_ad
which gets redirected to
dnsserver.localnetwork/some_ad
which doesn't even exist and hence raises a 404
error.
I was hoping that there would be some way to make Apache serve index.html
, regardless of the actual request. Otherwise, if you have an alternate solution that does not involve Apache, I'm up for that too.
More From » apache2