阿里云主机怎么绑定域名
1、 登录您的Linux云主机,进入WEB服务器配置文件夹; 运行命令:cd /aliyun/webserver/apache2.2.15/conf 2、 备份WEB服务器配置文件; 运行命令:cp httpd.conf httpd.conf.bak 3、 修改WEB服务器配置文件; 运行命令:vi + httpd.conf 4、 添加网站配置信息; 1) 按字母i键,进入编辑模式; 2) 在配置文件末尾,添加 ServerAdmin admin@domain(您的邮箱) DocumentRoot /alidata/www/wwwroot/phpwind (网站存放路径) ServerName test.com (网站域名) ServerAlias www.test.com(网站别名) ErrorDocument 404 /404.php DirectoryIndex index.html index.php index.htm (网站存放路径) Options +Includes AllowOverride None Order allow,deny Allow from all 3) 保存修改。按ESC键,输入”:wq”后回车; 4) 使配置生效。运行命令:../bin/apachectl graceful 5) 测试网站。请在浏览器中输入域名,测试设置。