Friday, February 19, 2021

How to Configure Virtual Host on Windows 8,8.1 and 10

 

Create the Virtual Host

First, you need to navigate to C:/xampp/apache/conf/extra or wherever your XAMPP files are located.


Then, edit httpd-vhosts.conf with any text editor.


Delete everything in the file and paste the following code:

<VirtualHost 127.0.0.1:80>

DocumentRoot "C:/xampp7.4/htdocs/"

ServerName localhost

ServerAlias localhost

</VirtualHost>

<VirtualHost 127.0.0.2:80>

    DocumentRoot "C:/xampp/htdocs/myproject/public"

    ServerName reuapp.com

</VirtualHost>

<VirtualHost 127.0.0.3:80>

DocumentRoot "C:/xampp/htdocs/drupal8/web/"

ServerName tbknow.com

ServerAlias www.tbknow.loc

</VirtualHost>

C:\Windows\System32\drivers\etc




127.0.0.2 laravel.dev
127.0.0.1 laravel6.test
127.0.0.1 tasksman.test
127.0.0.1 Recruitement-React
127.0.0.1 api.recruitement-react.com
127.0.0.2 reuapp.com
127.0.0.3 tbknow.com


https://www.cloudways.com/blog/configure-virtual-host-on-windows-10-for-wordpress/

No comments:

Post a Comment

If you have any problem please let me know.