摘要: 1.。。基于ip vi /etc/httpd/conf/httpd.conf <VirtualHost 192.168.1.142:80> ServerName 192.168.1.142:80 DocumentRoot /web/upload <Directory "/web/upload"> O 阅读全文
posted @ 2017-02-05 16:52 *奥特* 阅读(568) 评论(0) 推荐(0)
摘要: 301 mkdir /ggg 302 echo "<h1>gggggggg</h1>" > /ggg/index.html 303 cat /ggg/index.html 304 ll -d -Z /web/ 305 ll -d -Z /web/upload/ 306 chcon -R -t htt 阅读全文
posted @ 2017-02-05 16:31 *奥特* 阅读(159) 评论(0) 推荐(0)
摘要: 1基于ip的 vi /etc/httpd/conf/httpd.conf #改配置文件最好在最后写。。 <Directory "/web/upload"> AllowOverride None # Allow open access: Require all granted Order deny,a 阅读全文
posted @ 2017-02-05 15:26 *奥特* 阅读(151) 评论(0) 推荐(0)
摘要: Apache配置负载均衡和集群使用mod_jk的方式比较多。但是mod_jk已经停止更新,并且配置相对复杂。Apache2.2以后,提供了一种原生的方式配置负载均衡和集群,比mod_jk简单很多。1.Apache配置反向代理 正向代理一般是指PC连接到代理服务器,由代理服务器转发请求到网站。而反向代 阅读全文
posted @ 2017-02-05 11:37 *奥特* 阅读(3573) 评论(0) 推荐(0)
摘要: vi /etc/httpd/conf.d/userdir.conf mkdir public_html echo "<h1>iamaaaa</h1>" >/home/aaa/public_html/index.html chmod o+x aaa/ systemctl restart httpd.s 阅读全文
posted @ 2017-02-05 11:35 *奥特* 阅读(96) 评论(0) 推荐(0)
摘要: 切换不同网站 yum install -y lrzsz.x86_64 #安装懒人方便传输文件 unzip phpwind_UTF8_8.7.1.zip #解压新网站框架 cp upload/ /web/ -Rf chown apache:apache upload/ -Rf chcon -R -t 阅读全文
posted @ 2017-02-05 10:00 *奥特* 阅读(211) 评论(0) 推荐(0)