Linux环境虚拟主机开通备忘
[quote]1、建立用户
useradd -g ftp username
passwd username
2、编辑目录权限
cd /home
ls -l
chmod -R 755 username
3、配置虚拟主机
cd /usr/local/apache2/conf/vhosts
=============================
<VirtualHost *:80>
ServerName localhost
ServerAlias www.*.com
DocumentRoot /home/*/
<Directory "/home/*/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorDocument 500 http://www.*.com/error/500.html
ErrorDocument 404 http://www.*.com/error/404.html
</VirtualHost>
==============================
4、建立mysql数据库用户[/quote]
搞定!:em_012:
页:
[1]
