使用PHP - XAMPP使用Apache配置文件为localhost创建别名
I installed XAMPP on my windows machine I changed the DocumentRoot and Directory paths to C:\dev\CustomCloud\prod
Since I did have XAMPP working on windows , I changed to point at code that i need to setup and modify. Localhost I now see tons of 404 errors
This PHP code I am pointing at is trying to resolve an ALIAS of
How can I get the apache /xampp/ php to use an alias ?
This is easy with virtual directory with IIS for MS projects asp.net but I was looking at this article http://httpd.apache.org/docs/2.4/urlmapping.html
So would i do something like
Alias "/docs" "/var/web" ... ScriptAliasMatch "^/~([a-zA-Z0-9]+)/cgi-bin/(.+)" "/home/$1/cgi-bin/$2"
Inside my config
#DocumentRoot "C:/xampp/htdocs" #<Directory "C:/xampp/htdocs"> #"C:/dev/CustomCloud/prod" DocumentRoot "C:/dev/CustomCloud/prod" <Directory "C:/dev/CustomCloud/prod">