Step 2:- Now if you want to changes in that file you need to open that file in notepad when you open that file in notepad and after changes you want to save that file you see a bellow message as open that file as an Administrator mode, you need to click Yes. Open a file in any editor and after making changes in the file you try to save file you should get a warning message, this message you got because this is a protected file You can set up as many VirtualHosts as you need, so that each website operates. You need to go your Computer drive where you installed Operating System and find the hosts file by following the bellow path XAMPP is running on port 8081 as 80 is being occupied by some Windows process I need to use virtual host for that I configure with following code in C:/xampp/apache/config/extra/nfig (or C:/xampp/apache/conf/extra/nf in newer releases). VirtualHosts allow Apache to map a hostname to a directory on the filesystem. Open hosts file under C:\Windows\System32\drivers\etc and add host for test1 and test2 and save hosts file as a administrator. For example: ServerName arch.elm DocumentRoot c:/xampp/htdocs/archelm .Open nf file under xampp\apache\conf\extra. In Apache httpd (which XAMPP uses), you can configure this by adding a new 'VirtualHost' section corresponding to your new domain name, and by specifying the DocumentRoot that you want. Virtual hosting is a method for hosting multiple domain names. This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same hostname.Īt First, I am going to assume that youâre using a Windows machine and have XAMPP Server installed Steps: Setup multiple virtual hosts on XAMPP. XAMPP use Virtual Host but keep localhost. I set up all of the hosts just as I found on the instructions, and it seems to be working fine. Dear Reader in This Tutorial let us We Know that âHow we can Create Virtual Host in XAMPP Serverâ, So in this Tutorial, We Learn Step By Step Virtual Host Creation Process. I set up a Virtual Host through XAMPP on my Mac Snow Leopard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |