![]() ![]() ![]() Create a custom domain in the hosts file of your system Proceed to modify the line uncommenting that line: # Virtual hostsĪnd you're ready to configure your custom vhost. Now locate yourself in (about) the line 487 where you probably will find the following lines: # Virtual hostsĪs you can see, the Include statement that includes the nf file is commented. Open with your favorite code editor the nf file located tipically in /opt/lampp/etc or just execute the following command in your terminal to open a simple editor: sudo gedit /opt/lampp/etc/nf Allow the usage of custom virtual hostsīy default, xampp in ubuntu won't use the nf file (the location of the virtual hosts), therefore we need to indicate that this file will be included during the runtime of apache. Now create a custom domain in the hosts file of the system ( /etc/hosts).Allow the usage of the nf file editing the nf file.To setup a custom virtual, we need to follow these steps: This practice using XAMPP comes in handy when you want to simulate a production environment (however working in dev environment) locally accessing to your project by a normal URL in the browser. Virtual hosts are IP-based, meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The usage of virtual hosts in xampp is the practice of running more than one web site (that targets local resources) on a single machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |