1. 编辑 /opt/lampp/etc/httpd.conf
a.
<Directory />
Options FollowSymLinks
AllowOverride all
#XAMPP
#Order deny,allow
#Deny from all
</Directory>
b.
添加如下信息:
<VirtualHost *:80>
ServerName www.localhost.com
DocumentRoot "/var/www"
DirectoryIndex index.php
<Directory "/var/www">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
2. 编辑 /etc/host
添加这行:
127.0.0.1 www.localhost.com
ok,搞定
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)