1.网络服务,Apache ,nginx
apche:美国
Nginx:俄罗斯
静态资源:html 图片
动态:php脚本,数据库,java
2.apache 网站数据目录
/var/www/http
3.学习更换目录,通过修改配置文件
SElinux 域
semanage fcontext -a -t httpd_sys_content_t /home/www/*
restorecon -Rv /home/www/
setsepool -P httpd_enable_homedirs=on
htpasswd -c /etc/httpd/passwd bael 用户账户和密码
开启文档加密
4.虚拟主机
<virtualhost 192.168.10.10>
documentroot /usr/apache/html10
servername www.linuxcool.com
<directory /usr/apache/html10>
allowoverwrite none
require all granted
semanage fcontext -a -t httpd_sys_content_t /home/wwwroot
开启selinux的权限
作业:基于端口号的虚拟主机作业,apache ,不要关闭SElinux
预习:11,12章节