快速解决443端口占用 您所在的位置:网站首页 steam++端口被占用 快速解决443端口占用

快速解决443端口占用

2024-01-23 04:41| 来源: 网络整理| 查看: 265

还有一些情况比如电脑里安装了IIS,两者80端口冲突,解决方法也是一样,不过应该打开的配置文件是httpd.conf了。

额外,信孚科技还为我们的用户介绍Apache 配置https及强制使用443端口

iptables配置443端口

vi /etc/sysconfig/iptables

-A INPUT -m state –state NEW -m tcp -p tcp –dport 443 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –sport 443 -j ACCEPT

service iptables restart

配置https

1.向证书机构申请https证书,会得到证书和私钥

2.安装apache的mod_ssl.so模块

yum -y install mod_ssl

3.修改 ssl.conf

vim /etc/httpd/conf.d/ssl.conf

DocumentRoot “/var/www/html”

ServerName wwww.heanny.cn:443

SSLCertificateFile /etc/pki/tls/certs/test.crt

SSLCertificateKeyFile /etc/pki/tls/private/test.key

4.重启httpd

sudo service httpd restart

强制443端口跳转

#

# Possible values for the Options directive are “None”, “All”,

# or any combination of:

# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

#

# Note that “MultiViews” must be named *explicitly* — “Options All”

# doesn”t give it to you.

#

# The Options directive is both complicated and important. Please see

# http://httpd.apache.org/docs/2.2/mod/core.html#options

# for more information.

#

Options Indexes FollowSymLinks

#

# AllowOverride controls what directives may be placed in .htaccess files.

# It can be “All”, “None”, or any combination of the keywords:

# Options FileInfo AuthConfig Limit

#

#改为All

AllowOverride All

#

# Controls who can get stuff from this server.

#

Order allow,deny

Allow from all

#添加三行代码

RewriteEngine on

RewriteCond %{SERVER_PORT} !^443$

RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1 [L,R]

Apache配置https是信孚科技的技术人员部署ssl证书的常见工作,而443端口被占用也是服务器系统常见的问题。面对这些问题,小伙伴可以在线咨询信孚科技的工作人员。信孚科技是以SSL证书及其相关服务为核心、致力于为用户提供全球信任的高品质可信SSL证书、软件代码签名等。

相关搜索

443端口被占用 steam

steam443端口被占用

443端口被占用怎么解决

443端口被占用返回搜狐,查看更多



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有