Creating Virtual Directory in Apache

Usually, I write about robotics, computer vision and machine learning in this website but today I decided to make back of my website in my PC and I felt it’s not bad ti know a bit about XAMPP and especially Apache.
1) First, download and install XAMPP

2) Then edit “/opt/lampp/etc/httpd.conf” and uncomment the line:

3) Then edit “/opt/lampp/etc/extra/httpd-vhosts.conf” and add add the followings:

4) Then edit “/etc/hosts” and add:

5) Now create the index.php file inside “/home/behnam/” and put the following inside:

6) Run:


0 0 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x