当前位置: 首页 > news >正文

网站制作服务合同快速提升网站关键词排名

网站制作服务合同,快速提升网站关键词排名,武汉网站程序,现在病毒最严重的地方文章目录 1、搭建一个网络yum源2、基于域名访问的虚拟主机3、基于端口来访问域名4、搭建个人网站5、加密访问显示自定义网页内容 1、搭建一个网络yum源 [roottest01 conf.d]# cat repo.conf <virtualhost *:80>documentroot /var/www/html/ServerName 10.104.43.154ali…

文章目录

      • 1、搭建一个网络yum源
      • 2、基于域名访问的虚拟主机
      • 3、基于端口来访问+域名
      • 4、搭建个人网站
      • 5、加密访问+显示自定义网页内容

1、搭建一个网络yum源

[root@test01 conf.d]# cat repo.conf 
<virtualhost *:80>documentroot /var/www/html/ServerName 10.104.43.154alias /repo /var/www/html/repo  # 使用alias指令来进行指定访问repo的时候访问到/var/www/html/repo这个里面
</virtualhost>
<directory /var/www/html/repo>require all grantedOptions Indexes FollowSymLinks
</directory>
<FilesMatch "\.(iso|img)$">Require all denied
</FilesMatch>

2、基于域名访问的虚拟主机

  • 通过访问域名来访问对应的内容
# 创建访问网页的内容
[root@test01 share]# tree ./apache
./apache
├── a
└── b2 directories, 0 files[root@test01 apache]# echo "welcome a.com" > a/index.html
[root@test01 apache]# echo "welcome b.com" > b/index.html# 编写配置文件
[root@test01 conf.d]# cat a.conf b.conf 
<Virtualhost *:80>Documentroot /share/apache/aServerName www.a.com
</virtualhost>
<Directory /share/apache/a>require all granted
</Directory>
<Virtualhost *:80>Documentroot /share/apache/bServerName www.b.com
</virtualhost>
<Directory /share/apache/b>require all granted
</Directory># 安全放行
[root@test01 /]# firewall-cmd --permanent --add-service=http
[root@test01 /]# firewall-cmd --reload 
success# 自定义的目录需要给予上下文
[root@test01 share]# semanage fcontext -a -t httpd_sys_content_t './apache(/.*)?'
[root@test01 share]# restorecon -RFv ./apache/
restorecon reset /share/apache context unconfined_u:object_r:default_t:s0->system_u:object_r:default_t:s0
restorecon reset /share/apache/a context unconfined_u:object_r:default_t:s0->system_u:object_r:default_t:s0
restorecon reset /share/apache/a/index.html context unconfined_u:object_r:default_t:s0->system_u:object_r:default_t:s0
restorecon reset /share/apache/b context unconfined_u:object_r:default_t:s0->system_u:object_r:default_t:s0
restorecon reset /share/apache/b/index.html context unconfined_u:object_r:default_t:s0->system_u:object_r:default_t:s0# 进行访问
# 重启服务
[root@test01 conf.d]# systemctl restart httpd[root@test02 ~]# curl www.a.com
welcome a.com
[root@test02 ~]# curl www.b.com
welcome b.com

3、基于端口来访问+域名

# 配置文件
[root@test01 conf.d]# cat a.conf 
Listen 8088
<Virtualhost *:8088>Documentroot /share/apache/aServerName www.a.com
</virtualhost>
<Directory /share/apache/a>require all granted
</Directory># 添加端口
[root@test01 conf.d]# semanage port -a 8088 -t http_port_t -p tcp
[root@test01 conf.d]# semanage port -l | grep 8088
http_port_t                    tcp      8088, 80, 81, 443, 488, 8008, 8009, 8443, 9000
# 重启服务
[root@test01 conf.d]# systemctl restart httpd# 安全放行
[root@test01 conf.d]# firewall-cmd --permanent --add-port=8088/tcp
success
[root@test01 conf.d]# firewall-cmd --reload
success# 访问
[root@test02 ~]# curl www.a.com:8088
welcome a.com
[root@test02 ~]# curl www.b.com:8089
welcome b.com

4、搭建个人网站

# 修改user.conf文件 
UserDir enabled
UserDir public_html# 创建个人网站文件
[root@test01 q7]# tree public_html/
public_html/
└── index.html0 directories, 1 file
[root@test01 q7]# ll -Z public_html/
-rw-r--r--. root root unconfined_u:object_r:httpd_user_content_t:s0 index.html# 安全放行
[root@test01 q7]# setsebool -P httpd_enable_homedirs on
# 权限放行
[root@test01 q7]# ll -d
drwx--x--x. 3 q7 q7 81 Sep 27 11:35 .# 访问
http://10.104.43.154/~q7/

5、加密访问+显示自定义网页内容

# 安装加密的包
[root@test01 q7]# yum -y install mod_ssl# 生成私钥
openssl genrsa > tlsweb.key# 生成一个证书请求文件
openssl req -new -key tlsweb.key > tlsweb.csr#  生成一个证书文件
openssl req -x509 -days 365 -in tlsweb.csr -key tlsweb.key > tlsweb.crt# 将生成的私钥和证书文件移动到指定的路径
[root@test01 tls]# pwd
/etc/pki/tls
cp /root/tlsweb.key ./private/
cp /root/tlsweb.crt certs/firewall-cmd --permanent --add-port=443/tcp
firewall-cmd --reload# 网页内容
[root@test01 conf.d]# cat a.conf 
<Virtualhost *:443>Documentroot /share/apache/aServerName www.a.comSSLEngine onSSLCertificateFile /etc/pki/tls/certs/tlsweb.crtSSLCertificateKeyFile /etc/pki/tls/private/tlsweb.key
</virtualhost>
<Directory /share/apache/a>require all granted
</Directory>[root@test01 conf.d]# systemctl restart httpd
# https访问
http://www.khdw.cn/news/40073.html

相关文章:

  • 如何做百度网站推广一个新公众号怎么吸粉
  • 德州做网站的windows优化大师软件介绍
  • 做网站广告哪家好百度教育小程序
  • 自己做网站开店百度seo流量
  • 到那个网站做翻译接单球队排名世界
  • 外国网站建设营销网络的建设
  • 用html做的生日祝福网站全网推广网站
  • 网站公司谁跟客户客户沟通永久免费自助建站系统
  • 搜索自定义关键词优化推广优化方案
  • 杭州网站制作多少钱西安seo整站优化
  • 建设网站个人网上银行360搜索首页
  • 国内现货正规交易平台seo是什么意思如何实现
  • 做练习题的网站东莞seo建站投放
  • 哈尔滨网络建设网络优化常用的seo查询工具
  • 自己做网站多少钱网站推广优化方法
  • 免费静态网站托管平台seo 优化 服务
  • 网站服务器怎么做的信息流广告优化师
  • 西部数码网站打不开新闻软文自助发布平台
  • 做电影网站模板教学seo管理系统培训运营
  • 外贸做的社交网站有哪些关键字排名软件官网
  • 公众号做电影网站论坛推广软件
  • 如何发布自己做的网站sem推广优化
  • 上海网站建设中关键词歌词含义
  • 建一个网页网站谷歌搜索网页版入口
  • wordpress 搬家 问题上海百度seo公司
  • 移动网络服务商seo网站优化培
  • 网站流量超了软文自动发布软件
  • 东莞公共资源交易中心seo公司厦门
  • 响应式网站开发视频青岛网站推广公司排名
  • 重庆专门做网站的公司最新网域查询入口