In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
It is believed that many inexperienced people have no idea about how to configure apache to support ssl in the Linux server. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Apache supports ssl
1. Check whether the ssl module is installed, and if not, install it
[root@localhost cgi-bin] # rpm-qa | grep mod_ssl / / check whether to install ssl module
[root@localhost cgi-bin] # yum install-y mod_ssl / / install ssl
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Complete!
[root@localhost cgi-bin] #
2. Modify the configuration file "/ etc/httpd/conf.d/ssl.conf" of ssl as follows. Open ssl and set the listening port.
[root@localhost ~] # gedit / etc/httpd/conf.d/ssl.conf
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
LoadModule ssl_module modules/mod_ssl.so / / enable ssl function
# When we also provide SSL we have to listen to the
# the HTTPS port in addition.
Listen 443 / / listening port
3. Modify the firewall configuration to enable the support for port 443 above
1) enter the command "setup" in the terminal, select "Firewall" in the pop-up box, and then select "Custom"
2) use the spacebar to select "https", and then select "forward"
3) Select "add"
4) add port 443, protocol tcp, and then determine
5) go back to the original interface and "OK"
6) restart the firewall
[root@localhost ~] # service iptables restart
Iptables: set chain to policy ACCEPT:filter nat [OK]
Iptables: clear firewall rules: [OK]
Iptables: uninstalling module: [OK]
Iptables: apply firewall rules: [OK]
[root@localhost ~] #
7) restart apache
[root@localhost ~] # service httpd restart
Stop httpd: [OK]
Starting httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[OK]
[root@localhost ~] #
4. Test
1) enter https://127.0.0.1 in the browser, note that it must be "https", and see the following result
2) Select "I have fully understood", pop up the following dialog box, and select "confirm Security exception" to access it normally.
A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.
Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk
After reading the above, have you mastered how to configure apache to support ssl in the Linux server? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.