再次问高手 linux下apache配置ssl后为何https和http都可以访问等有关问题 100分
再次问高手 linux下apache配置ssl后为何https和http都可以访问等问题 100分
我在网上看了很多资料 由于水平有限
所以就没有看的明白
是不是部分网页用https,部分网页用http 就必须两中方式都可以访问某个网页
1.
其中有openssl用命令生成证书的
有用另外一个用ssl.ca-0.1.tar.gz 这个东西生成证书的 这两个有什么区别
2.
装openssl的目的是什么
--with-ssl=/usr/local/ssl 指定的作用是什么
然而我装好ssl后(https和http都可以访问) 删除ssl这个目录也是有效的 为何
3.
有下面一种方法加载ssl
将#Include conf/extra/httpd-ssl.conf 的#去掉 启用ssl
还有就是 ./bin/apachectl startssl
这个好像是版本的问题 不是很明确
4.
有的配置说需要什么ssl的so模块 这个又是什么
在win32下是需要的 我也搞过(不过那时所有的网页都要以https访问 我只想部分用https)
网上的说法不一 我快崩溃了 高手指教
------解决方案--------------------
1. 证书应该是生成二个,一个是发放给用户的,一个是服务器端的. 具体的也不太清楚
2. openssl 是一个安全机制吧,也就是通过openssl生成证书。 可能是通 RSA,或者是其它加密算法,然后生成 公钥和密钥
3. ssl是协议,在客户端和服务器端之间建立安全通道的协议
4. 就不太清楚了..
------解决方案--------------------
用https访问的时候是经过ssl加密的,用http则是未加密的正常访问。具体可以看右下角IE显示出的加密符号。
------解决方案--------------------
http://topic.csdn.net/u/20090203/09/0b08ddec-fcd7-4558-ace9-c9c844cd74c2.html
看看吧,当个参考
------解决方案--------------------
1.没区别。就像tcl电视与康佳电视一样,他们都是电视。
2.目的就是让apache支持ssl。 --with-ssl的目的,就是让c编译器知道,编译apache的时候,需要用到ssl库的时候,在那个地方能找到ssl库
3.不明白需要问的问题!老版本通常都是用apachectl startssl来启动的,新版本就是include那个ssl的配置文件
4.so只是让ssl以apache的模块形式运行(支持)。需要部分网页支持ssl不清楚你需要是部分域名还是部分目录?部分域名就是配置虚拟主机时候加上支持ssl目录嘛,没有尝试过,不过应该和主机差不多!
------解决方案--------------------
你的https是直接从根目录开始的还是写的alias 或者virtualHost?
如果是直接放在/var/www 下边,那么你要修改http的conf 禁止http访问/var/www/
如果写的alias 或者virtualHost 那么你只要去掉http conf 里边的这个alias 或者virtualHost 就ok了
------解决方案--------------------
帮顶!
4.类似是配置 LoadModule ssl_module modules/mod_ssl.so ,顾名思义是要加载ssl模块
3.Include conf/extra/httpd-ssl.conf (用了xampp?)是针对ssl的配置
就好象要做菜,4是准备做菜工具,3是配菜
Listen 指令应该可以指定ip和端口
------解决方案--------------------
ssl是协议,在客户端和服务器端之间建立安全通道的协议
openSSL是一种工具,分客户端和服务器端
服务器端的可以模块方式运行
------解决方案--------------------
没有加载mod_ssl.so,配置 conf/extra/httpd-ssl.conf 应该不行吧,apache都启动会出错
------解决方案--------------------
学习了。。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

HTTP status code 520 means that the server encountered an unknown error while processing the request and cannot provide more specific information. Used to indicate that an unknown error occurred when the server was processing the request, which may be caused by server configuration problems, network problems, or other unknown reasons. This is usually caused by server configuration issues, network issues, server overload, or coding errors. If you encounter a status code 520 error, it is best to contact the website administrator or technical support team for more information and assistance.

Keeping web servers load balanced is one of the key measures to prevent downtime. Using a load balancer is a reliable approach, with HAProxy being a highly regarded choice. Using HAProxy, you can accurately configure the load balancing method and support SSL passthrough to ensure the security of communication between the client and the server. It starts by exploring the importance of implementing SSL passthrough in HAProxy, followed by a detailed discussion of the steps required to implement this feature and an example for better understanding. What is SSL passthrough? Why is it important? As a load balancer, HAProxy accepts and distributes the load flowing to your web servers across configured servers. Load distribution is targeted to client devices and

HTTP status code 403 means that the server rejected the client's request. The solution to http status code 403 is: 1. Check the authentication credentials. If the server requires authentication, ensure that the correct credentials are provided; 2. Check the IP address restrictions. If the server has restricted the IP address, ensure that the client's IP address is restricted. Whitelisted or not blacklisted; 3. Check the file permission settings. If the 403 status code is related to the permission settings of the file or directory, ensure that the client has sufficient permissions to access these files or directories, etc.

Understand the meaning of HTTP 301 status code: common application scenarios of web page redirection. With the rapid development of the Internet, people's requirements for web page interaction are becoming higher and higher. In the field of web design, web page redirection is a common and important technology, implemented through the HTTP 301 status code. This article will explore the meaning of HTTP 301 status code and common application scenarios in web page redirection. HTTP301 status code refers to permanent redirect (PermanentRedirect). When the server receives the client's

Installing an SSL certificate on SharePoint is a critical step in securing your website and providing an encrypted connection. By following the correct installation steps, you can ensure the security of your website data, improve your ranking in search engines, and provide a better user experience for your visitors. Get an SSL Certificate Contact a trusted Certificate Authority (CA) to purchase an SSL certificate. Provide the required authentication and domain ownership verification information. After completing the verification process, you will receive the SSL certificate file. Prepare the Certificate File Open your SSL certificate file using a text editor. Copy the certificate contents to a new text file. Save the file as yourdomain.cer, making sure to change "yourdomain”

HTTP Status Code 200: Explore the Meaning and Purpose of Successful Responses HTTP status codes are numeric codes used to indicate the status of a server's response. Among them, status code 200 indicates that the request has been successfully processed by the server. This article will explore the specific meaning and use of HTTP status code 200. First, let us understand the classification of HTTP status codes. Status codes are divided into five categories, namely 1xx, 2xx, 3xx, 4xx and 5xx. Among them, 2xx indicates a successful response. And 200 is the most common status code in 2xx

Common network communication and security problems and solutions in C# In today's Internet era, network communication has become an indispensable part of software development. In C#, we usually encounter some network communication problems, such as data transmission security, network connection stability, etc. This article will discuss in detail common network communication and security issues in C# and provide corresponding solutions and code examples. 1. Network communication problems Network connection interruption: During the network communication process, the network connection may be interrupted, which may cause

Solution: 1. Check the Content-Type in the request header; 2. Check the data format in the request body; 3. Use the appropriate encoding format; 4. Use the appropriate request method; 5. Check the server-side support.
