# yum install httpd默认的httpd的基本配置是如下。
Configuration file: /etc/httpd/conf/httpd.conf Port: 80 Document root: /var/www/html Log file location: /var/log/httpd在httpd的配置文件中设置虚拟主机下面附加的httpd中的配置文件设置
<VirtualHost *:80> ServerName www.youcl.com ServerAdmin support@youcl.com DocumentRoot /var/www/html </VirtualHost>启动httpd服务
# service httpd startConfugure的httpd启动在系统启动。
chkconfig httpd on