apache tutorial - IP-based Virtual host in apache - apache - apache web server - apache server - apache2

  • In order to setup IP based virtual hosting, you need more than one IP address configured on your server. So, the number of vhost apache will depend onnumber of IP address configured on your server. If your server has 10 IP addresses, you can create 10 IP based virtual hosts.
  • In the above diagram two websites example1.com and example2.com were assigned different IPs and are using IP-based virtual hosting.


ServerAdmin [email protected]

DocumentRoot /var/www/html/example1.com      

ServerName www.example1.com



ServerAdmin [email protected]

DocumentRoot /var/www/html/example2.com

ServerName www.example2.com

click below button to copy the code. By Apache tutorial team

Related Searches to IP based virtual host in apache

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.