11/22/2023 0 Comments Localhost xampp mac![]() ![]() # be placed in the first column followed by the corresponding host name. # entry should be kept on an individual line. # This file contains the mappings of IP addresses to host names. # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # Copyright (c) 1993-2009 Microsoft Corp. I then updated my C:\windows\System32\drivers\etc\hosts file like this. # 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 The full contents of my C:\xampp\apache\conf\extra\nf file is below. I wanted to leave the default xampp/htdocs folder in place, be able to access it from locahost and have a Virtual Host to point to my dev area. I'm using XAMPP with Apache2.4, I had this same issue. I'm not sure if it cuts because error messages can only be of a certain length but that's definitely not the path I added in the dev.conf file, I'm hoping this can make this a bit clearer for some because I am getting pretty frustrated and I'm not sure what to try anymore. ![]() Server configuration: C:/Users/my_user/My%20Documents I looked in my log folder and found the following line: I had managed to create one to a different folder and copy pasted the working one and changed the alias and path and it broke so it this tells me it probably has something to do with either. Maybe this is because my path has spaces in it (though some googling told me %20 work). Some say that you have to tell it to have permissions but in my conf file I specified to allow it from 127.0.0.1. I tried googling and I found other similar questions on SO but I can't seem to figure it out. If you think this is a server error, please contact the webmaster. Read-protected or not readable by the server. You don't have permission to access the requested object. Options Indexes FollowSymLinks Includes ExecCGIĪlias /dev "C:\Users\my_user\My%20Documents\Aptana%20Studio%203%20Workspace\project"īut then when I go to "localhost/dev" I get: In there I added dev.conf with the following content: I created an "alias" folder in my "conf" folder of my apache install. So far XAMPP is running and if I go to localhost I get the XAMPP welcome page. I'm not great with the server side of things so I'm having some problems setting up an alias for a project. I'm running windows 7 and recently installed XAMPP to build a dev environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |