The ServerName entry specifies which domain to associate with your project (in this example: projectname.stage). Paste the following at the bottom of the nf file.ĭocumentRoot “F:/xampp/htdocs/pixelative/projectname/public” # match a #ServerName or #ServerAlias in any block. # The first VirtualHost section is used for all requests that do not # Almost any Apache directive may go into a VirtualHost container. # You may use the command line option ‘-S’ to verify your virtual host # for further details before you try to setup virtual hosts. This is indicated by the asterisks in the directives below. # use only name-based virtual hosts so the server doesn’t need to worry about # machine you can setup VirtualHost containers for them. # If you want to maintain multiple domains/hostnames on your Open the following file in any text editor.į:\xampp\apache\conf\extra\nf In order to do that, there are 2 main steps which are: Step 1 It’s fairly easy to get this working using XAMPP in Windows. To setup apache virtual hosts using XAMPP in windows when working in local environment, I like to setup my projects with separate domain names like projectname.stage to keep them isolated from each other.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |