这两天一直在弄网站的事,先是上一个月的vps挂了网上数据掉半个月的,接着重新买VPS,转移站点到二级域名blog.adophper.com上来.
于是乎在新的vps开始配置php环境:如果不知道如何如何配置php+apache+mysql环境请查看前面有一篇文章专门有配置步骤的;
首先我们先说linux:
编辑:vi /etc/httpd/conf/httpd.conf
在最后的几行可以看到有:
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost con...