The first thing you need to do is add the alias directory to your XAMPP installation:
C:\xampp\apache\conf\alias
Next, you need to modify the Apache configuration file . You can find it under
C:\xampp\apache\conf\httpd.conf
Once you have opened httpd.conf , add the following to the end and save it.
Include "conf/alias/*"
Now for each alias you want to create, you need to create one file as follows:
<directory "c:\users\foo\programming\dev"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks Includes ExecCGI # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> Alias /dev "C:\users\foo\programming\dev"
In this example, the alias is called "dev" and it points to "C: \ users \ foo \ programming \ dev"
Finally, you need to restart the Apache server and it.
Pedro loureiro
source share