Restrict access by IP

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Restrict access by IP

Postby widerow » 12. September 2014 18:13

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.
widerow
 
Posts: 1
Joined: 12. September 2014 18:00
Operating System: Ubuntu 14.04 64BIT

Re: Restrict access by IP

Postby Nobbie » 12. September 2014 21:31

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.
Nobbie
 
Posts: 8761
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests