使用PHP-XAMPP使用Apache配置文件为localhost创建别名
因为我确实让XAMPP在windows上工作,所以我改为指向需要设置和修改的代码。Localhost我现在看到大量404错误 我指的这段PHP代码试图解析一个别名使用PHP-XAMPP使用Apache配置文件为localhost创建别名,php,apache,Php,Apache,因为我确实让XAMPP在windows上工作,所以我改为指向需要设置和修改的代码。Localhost我现在看到大量404错误 我指的这段PHP代码试图解析一个别名localhost/matchmaking/ 例如: I installed XAMPP on my windows machine I changed the DocumentRoot and Directory paths to C:\dev\CustomCloud\prod 是 如何让apache/xampp/php使用别名
localhost/matchmaking/
例如:
I installed XAMPP on my windows machine
I changed the DocumentRoot and Directory paths to
C:\dev\CustomCloud\prod
是
如何让apache/xampp/php使用别名
使用IIS for MS Project asp.net的虚拟目录很容易,但我正在看这篇文章
那么我会做类似于Alias
或ScriptAliasMatch
的事情吗
http://localhost/matchmaking/assets/
在我的配置中
Alias "/docs" "/var/web" ...
ScriptAliasMatch "^/~([a-zA-Z0-9]+)/cgi-bin/(.+)" "/home/$1/cgi-bin/$2"
#DocumentRoot“C:/xampp/htdocs”
#
#“C:/dev/CustomCloud/prod”
DocumentRoot“C:/dev/CustomCloud/prod”
尝试将其添加到配置中,然后重新加载/重新启动服务
#DocumentRoot "C:/xampp/htdocs"
#<Directory "C:/xampp/htdocs">
#"C:/dev/CustomCloud/prod"
DocumentRoot "C:/dev/CustomCloud/prod"
<Directory "C:/dev/CustomCloud/prod">
请粘贴您的配置。如果可能,您可以对windows主机@CalosKao进行更改,apache中只有我修改的部分config@kumarsher45不,那不好!那么,我是否真的不想要
资产
,而是在比赛中提升一个级别?e、 g.“/matchmaking/”c:\dev\CustomCloud\prod“@JeremyMiller是的。
#DocumentRoot "C:/xampp/htdocs"
#<Directory "C:/xampp/htdocs">
#"C:/dev/CustomCloud/prod"
DocumentRoot "C:/dev/CustomCloud/prod"
<Directory "C:/dev/CustomCloud/prod">
Alias "/matchmaking/assets" "C:\dev\CustomCloud\prod\assets"