+ -
当前位置:首页 → 问答吧 → 服务器配置

服务器配置

时间:2008-06-24

来源:互联网

我现在用apache做了一台独立的服务器,在网站的根目录下建立了一个文件夹aaa,在aaa下建立了一个网站,现在访问网站都是通过http;//***.*****.****.**/aaa来访问。现在马上要上线了,需要配置那些东西,就可以通过域名直接访问了?

作者: sugaofeng   发布时间: 2008-06-24

改写 httpd.conf 文件

作者: yhttech   发布时间: 2008-06-24

<VirtualHost 192.168.1.110>
ServerAdmin [email protected]
DocumentRoot "/web/blog"
ServerName blog.china.com
CustomLog "|/usr/local/apache2/bin/rotatelogs /usr/local/apache2/logs/blog.china.com-access_log-%m-%d 86400" common
Errorlog "|/usr/local/apache2/bin/rotatelogs /usr/local/apache2/logs/blog.china.com-Error_log-%m-%d 86400"
</VirtualHost>

作者: chaizhiyong   发布时间: 2008-07-01

热门下载

更多