Page 1 of 1

Restrict access by IP

PostPosted: 12. September 2014 18:13
by widerow
Hi everyone,

I want to host 2 domains on my vps. IP address should not load any page if someone try to open my website thru IP address. I dont want to show a 404 or access denied page.
I want to show it like this.

http://i.imgur.com/Rcorujf.jpg
http://i.imgur.com/tqZKQjd.jpg

I have no idea how to do this, because I'm new to this subject. I highly appreciate your help.

Thanks for reading.

Re: Restrict access by IP

PostPosted: 12. September 2014 21:31
by Nobbie
You have to create different VirtualHosts and for plain IP assign the behaviour you like. Google for "VirtualHost" and/or read the Apache documentation about VirtualHost.