查看文章 |
ubuntu 下apache2绑定域名
2010-01-15 17:23
先在本机的C:\WINDOWS\system32\drivers\etc目录下的hosts文件里绑定域名:如, 192.168.1.1 www.xx.com; 然后到在服务器上的/etc/apache2/sites-available目录下,新建一个文件default,文件的内容为:
重启下apache,搞定了! 补充:如果出现apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 解决办法:sudo editor /etc/apache2/apache2.conf, 在文件最后加上 #Server Name ServerName 127.0.0.1 |
最近读者:

