我在httpd.conf文件中添加了一个别名来访问我的文件夹localhost/projects:
<IfModule alias_module>
Alias /projects "C:/Users/Ben/Google Drive/Projects"
<Directory "C:/Users/Ben/Google Drive/Projects">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
</IfModule>
Run Code Online (Sandbox Code Playgroud)
当我尝试在XAMPP 3.2.1中启动Apache时,没有任何内容写入error.log并且Apache无法启动.
小智 6
文件:httpd.conf(原创)
之后:
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
Run Code Online (Sandbox Code Playgroud)
放:
<Directory "C:/Users/Ben/Google Drive/Projects">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
Alias /projects "C:/Users/Ben/Google Drive/Projects"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4022 次 |
| 最近记录: |