apache的虚拟主机加密和apache的网页重写apache的虚拟主机加密和apache的网页重写关闭火墙,配置好加密证书[root@desktopupload]#cd/etc/httpd/conf.d/[root@desktopconf.d]#lsautoindex.confmanual.confphp.confssl.confuserdir.confdefault.confnews.confREADMEtmprequestwel..
分类:
其他好文 时间:
2016-12-16 02:07:00
阅读次数:
267
##1.网页重写 [root@serverconf.d]#mkdir-p/var/www/virtual/music/html [root@serverconf.d]#cp-pnews.confmusic.conf [root@serverconf.d]#vimmusic.conf [root@serverconf.d]#systemctlrestarthttpd.service 测试: 访问music.westos.com或者http://music.westos.com时会..
分类:
Web程序 时间:
2016-12-16 02:02:21
阅读次数:
163
apachq日志类型1.虚拟主机加密和网页重写mkdir/var/www/virtual/news.rito.com/html-pmkdir/var/www/virtual/ent.rito.com/html-pcd/etc/httpd/conf.d/vimdefault.confvimnews.confviment.confcd/var/www/virtual/news.rito.com/htmlvimindex.htmlnews.rito.comcd/var/www/virt..
分类:
Web程序 时间:
2016-12-16 02:02:05
阅读次数:
198
网页重写把所有80端口的请求重定向由https来处理[root@webconf.d]#vimmusic.conf<Virtualhost*:80>ServerNamemusic.westos.comRewriteEngineonRewriteRule^(/.*)$https://%{HTTP_HOST}$1[redirect=301]</Virtualhost><Directory"/var/www/virtual/music/html"&g..
分类:
Web程序 时间:
2016-12-16 01:57:28
阅读次数:
360
#######网页重写########把所有80端口的请求全部重定向由https来处理systemctlstarthttpdfirewalldcd/var/www/html/[root@mailwestoshtml]#firewall-cmd--permanent--add-service=httpsuccess[root@mailwestoshtml]#firewall-cmd--permanent--add-service=httpssuccess[root@ma..
分类:
Web程序 时间:
2016-12-16 01:54:11
阅读次数:
302
{**虚拟主机加密和网页重写apache**}做好https认证以后hostnamectlset-hostnameweb1.example.comlogoutvim/etc/httpd/conf.d/ssl.confcd/etc/httpd/conf.d/vimnews.conf<Virtualhost*:80>Servernamenews.westos.comDocumentroot/var/www/virtual/news.westos.com/htmlCus..
分类:
Web程序 时间:
2016-12-16 01:52:07
阅读次数:
306
####apache服务(二)####1.网页重写与虚拟主机的https[root@web-1html]#cd/etc/httpd/conf.d/[root@web-1conf.d]#firewall-cmd--permanent--add-service=httpsuccess[root@web-1conf.d]#firewall-cmd--permanent--add-service=httpssuccess[root@web-1conf.d]#firewall-cmd--r..
分类:
Web程序 时间:
2016-12-15 18:29:50
阅读次数:
257
apache的虚拟主机加密和apache的网页重写配置基础的虚拟主机获取加密认证(虚拟主机news.westos.com)cd/etc/httpd/conf.dvimnews.conf<Virtualhost*:80>Servernamenews.westos.comDocumentroot/var/www/virtual/news.westos.com/htmlCustomloglogs/news.logcombined<..
分类:
系统相关 时间:
2016-12-15 01:25:02
阅读次数:
289
实验环境:RHEL7.0server1.example.com172.25.254.1实验内容:1.准备2.安装3.配置4.添加https5.虚拟主机6.<<nginx监控小插件>>网站信息统计7.网页重写(自动转换到HTTPS)源码包:nginx-1.9.14.tar.gz1.准备[root@server1~]#yumremovehttpd[root@server1~]#yuminst..
分类:
其他好文 时间:
2016-09-11 15:45:26
阅读次数:
267