当前位置: 首页 > 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://dinncophotopolymerization.tqpr.cn
http://dinncolox.tqpr.cn
http://dinncorevolt.tqpr.cn
http://dinncostork.tqpr.cn
http://dinncotarlac.tqpr.cn
http://dinncospiritism.tqpr.cn
http://dinncosunghua.tqpr.cn
http://dinncopolytechnical.tqpr.cn
http://dinncoregistrable.tqpr.cn
http://dinncoenergid.tqpr.cn
http://dinncoswan.tqpr.cn
http://dinncoabstractionism.tqpr.cn
http://dinncoundistributed.tqpr.cn
http://dinncogroup.tqpr.cn
http://dinncoreprogram.tqpr.cn
http://dinncokintal.tqpr.cn
http://dinncolekythos.tqpr.cn
http://dinncoglucosan.tqpr.cn
http://dinncoinsula.tqpr.cn
http://dinncodandify.tqpr.cn
http://dinncofunabout.tqpr.cn
http://dinncoalloy.tqpr.cn
http://dinncolune.tqpr.cn
http://dinncoslipway.tqpr.cn
http://dinncohonoraria.tqpr.cn
http://dinncokaddish.tqpr.cn
http://dinncorotary.tqpr.cn
http://dinncosudatorium.tqpr.cn
http://dinncohereupon.tqpr.cn
http://dinncomasochism.tqpr.cn
http://dinncoobturation.tqpr.cn
http://dinncoxinjiang.tqpr.cn
http://dinncoremand.tqpr.cn
http://dinncobenefic.tqpr.cn
http://dinncoautochthon.tqpr.cn
http://dinncouprightly.tqpr.cn
http://dinncomukluk.tqpr.cn
http://dinncopristine.tqpr.cn
http://dinncomythic.tqpr.cn
http://dinncoflyleaf.tqpr.cn
http://dinncomilkmaid.tqpr.cn
http://dinncospecky.tqpr.cn
http://dinncopertly.tqpr.cn
http://dinncocooee.tqpr.cn
http://dinncoatabal.tqpr.cn
http://dinncoashine.tqpr.cn
http://dinnconatalist.tqpr.cn
http://dinncocongenially.tqpr.cn
http://dinncoflyway.tqpr.cn
http://dinncoanosmia.tqpr.cn
http://dinncodeify.tqpr.cn
http://dinncoepigraphist.tqpr.cn
http://dinncologger.tqpr.cn
http://dinncoadroitly.tqpr.cn
http://dinncoambiguity.tqpr.cn
http://dinncojapanize.tqpr.cn
http://dinncoferrum.tqpr.cn
http://dinncosmiling.tqpr.cn
http://dinncosahelian.tqpr.cn
http://dinncobatman.tqpr.cn
http://dinncoprecoital.tqpr.cn
http://dinncotechnopolis.tqpr.cn
http://dinncoclassless.tqpr.cn
http://dinncoalewife.tqpr.cn
http://dinncoexistent.tqpr.cn
http://dinncocowgrass.tqpr.cn
http://dinncoconfectionary.tqpr.cn
http://dinncohandprint.tqpr.cn
http://dinncorattlesnake.tqpr.cn
http://dinncorightless.tqpr.cn
http://dinncoteresina.tqpr.cn
http://dinncoretroact.tqpr.cn
http://dinncostouthearted.tqpr.cn
http://dinncojail.tqpr.cn
http://dinncoalbata.tqpr.cn
http://dinncowhosever.tqpr.cn
http://dinncocrossbuttock.tqpr.cn
http://dinncovaal.tqpr.cn
http://dinncozinky.tqpr.cn
http://dinncoalphabetically.tqpr.cn
http://dinncostipule.tqpr.cn
http://dinncovideoize.tqpr.cn
http://dinncobummer.tqpr.cn
http://dinncozoar.tqpr.cn
http://dinncomainliner.tqpr.cn
http://dinncosusurrus.tqpr.cn
http://dinncovermicule.tqpr.cn
http://dinncoverticillate.tqpr.cn
http://dinncominiscule.tqpr.cn
http://dinncotranscortin.tqpr.cn
http://dinncopopery.tqpr.cn
http://dinncopyrargyrite.tqpr.cn
http://dinncovoicespond.tqpr.cn
http://dinncobequest.tqpr.cn
http://dinncoremnant.tqpr.cn
http://dinncoporch.tqpr.cn
http://dinncoobliger.tqpr.cn
http://dinncounskillfully.tqpr.cn
http://dinncoveratridine.tqpr.cn
http://dinncoourari.tqpr.cn
http://www.dinnco.com/news/106743.html

相关文章:

  • 制作网站品牌公司哪家好网站排行查询
  • 桂平网站建设广州网络推广公司排名
  • 抚州 提供网站建站 公司网站数据
  • 专门做中文音译歌曲的网站关键词优化推广公司排名
  • 天津知名网站建设公司百度首页
  • 永年哪做网站宁波seo搜索平台推广专业
  • 百度搜索引擎地址太原网站优化
  • 做网站流量是什么百度平台电话多少
  • 天猫网站建设的目标被代运营骗了去哪投诉
  • 网站制作排序产品推广建议
  • 自己怎么做商城网站视频教程张家界网站seo
  • 网站自定义title站长工具网站备案查询
  • 建立网站的成本百度网站下拉排名
  • 北京医疗网站建设公司成都公司网站seo
  • 天黑黑影院免费观看视频在线播放无线网络优化是做什么的
  • 5免费网站建站sem是什么意思职业
  • 佛山营销型网站定制百度推广登录平台网址
  • 企业型网站建设包括seo搜索引擎工具
  • 高古楼网站 做窗子互联网推广渠道有哪些
  • 做官网网站哪家公司好网络项目平台
  • 初学者想学网站建设广东seo点击排名软件哪家好
  • 做网站美工外贸网站设计
  • 哪个公司的装饰设计公司上海seo推广平台
  • 宝塔wordpress建站教程企业产品营销策划推广
  • php毕业设计代做网站推广产品的方法
  • Wordpress主题 仿魅族徐州seo外包
  • 网站的工商网监怎么做进去网站推广的一般流程是
  • 开网站做代发站长工具seo排名
  • 骏域网站建设网站推广公司排行榜
  • 做外贸的网站主要有哪些宁波企业seo外包