Apache URL redirect? - Raspberry Pi Forums
hi guys.
i'm trying reflect custom url on clients browser no matter url type on browser. have http requests coming pi going directly apache server ip 192.168.1.88 using dnsmasq.
think might have found way canonical hostnames explained here http://httpd.apache.org/docs/2.4/rewrite/remapping.html how redirect wildcard url display http://www.mycustomurl.com/ on client browser?
raspberry pi 2 model b
apache 2.2
dnsmasq
date raspbian
thanks!
i'm trying reflect custom url on clients browser no matter url type on browser. have http requests coming pi going directly apache server ip 192.168.1.88 using dnsmasq.
think might have found way canonical hostnames explained here http://httpd.apache.org/docs/2.4/rewrite/remapping.html
code: select all
<virtualhost *:80> servername undesired.example.com serveralias example.com notthis.example.com redirect "/" "http://www.example.com/" </virtualhost> <virtualhost *:80> servername www.example.com </virtualhost>
raspberry pi 2 model b
apache 2.2
dnsmasq
date raspbian
thanks!
raspberrypi
Comments
Post a Comment