Sunday, 9 July 2017

How to create virtual host for in xampp

Step1:
In your C:\xampp\apache\conf\extra. Open httpd-vhosts.conf and below lines.

<VirtualHost jayesh.shah:80> 
    DocumentRoot "D:/xampp/htdocs/jayesh/public"
    ServerName jayesh.shah
ServerAlias www.jayesh.shah
<Directory "D:/xampp/htdocs/jayesh/public">
Options +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Step2:
In your C:\Windows\System32\drivers\etc\
Open hosts file and add below line
                  192.168.10.106 jayesh.shah
                  192.168.10.106 www.jayesh.shah

Step3: Restart apache

No comments:

Post a Comment

Machine Learning - Potato Leaf Disease Prediction

Step 1: import numpy as np import pandas as pd import splitfolders import matplotlib.pyplot as plt import tensorflow as tf from tensorflow i...