【发布时间】:2020-08-12 06:05:47
【问题描述】:
我正在尝试在 MAMP Windows 上设置 VitualHost,但它不起作用。它正在加载 2-3 秒,然后显示 Can't access this website。
这是我的配置:
- httpd.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
- httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot C:\MAMP\htdocs\website
ServerName project.local
ServerAlias www.project.local
<Directory "C:\MAMP\htdocs\website">
Allow from All
AllowOverride all
Options -Indexes +FollowSymlinks
</Directory>
UseCanonicalName on
</VirtualHost>
Apache 在 80 端口上。
这里有什么问题?
谢谢!
【问题讨论】:
-
检查错误日志,把它们贴在这里。
-
没有错误日志。我检查了它们:/ @PuneetChandhok
-
你能访问localhost/website吗?
-
是的@PuneetChandhok
标签: apache mamp virtualhost