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
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.