![]() ![]() Save the file, and now the domain myawesomeproject is an alias for the local address 127.0.0.5. # The following lines are desirable for IPv6 capable hosts ![]() So finally, our hosts file will look like: 127.0.0.1 localhost In this example, our ip will be 127.0.0.3 and the domain myawesomeproject. To start, edit the hosts file located in /etc using your favorite code editor, or just by executing the following command in the terminal: sudo gedit /etc/hostsĪnd proceed to add your custom host. ![]() This domain will be normally an ip (127.0.0.xx based) and a custom name. You need to create a custom domain where our apache virtual host will point to. 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.
0 Comments
Leave a Reply. |