如何使用 Zend Community CE 在 Windows 计算机上正确设置虚拟主机?
我已经在 Windows 计算机上设置了 Zend Server CE,并且在设置虚拟主机时遇到了最困难的时刻。无论我做什么,本地计算机上的链接在路径中显示“localhost”,导致所有图像和链接无法正常工作。
我的虚拟主机文件中有以下内容,当站点加载时,大多数链接显示“其中的本地主机”。请帮忙。
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot D:\zend_server_ce\Apache2\htdocs\domain.dev
ServerName www.domain.dev
ServerAlias www.domain.dev *.domain.dev domain.dev
<Directory D:\zend_server_ce\Apache2\htdocs\domain.dev\>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I have set up Zend Server CE on a windows machine and am having the hardest time setting up virtual hosts. No matter what I do, links on my local machine are showing "localhost" in the path causing all images and links to not work properly.
I have the following in my vhosts file and while the site loads up, most links show "local host in them". Please help.
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot D:\zend_server_ce\Apache2\htdocs\domain.dev
ServerName www.domain.dev
ServerAlias www.domain.dev *.domain.dev domain.dev
<Directory D:\zend_server_ce\Apache2\htdocs\domain.dev\>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论