欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Apache HTTP Server
来自开放百科 - 灰狐
(版本间的差异)
第69行: | 第69行: | ||
# /etc/init.d/apache2 restart | # /etc/init.d/apache2 restart | ||
https://demo.huihoo.com:443/ | https://demo.huihoo.com:443/ | ||
+ | |||
+ | [[Category:Apache Software Foundation projects]] |
2006年10月12日 (四) 10:08的版本
Apache HTTP Server(也被称为Apache httpd)是Apache软件基金会的一个创建健壮的、工业级的、功能强大的、开放源代码的HTTP(Web)服务器的项目。欲知详情,请查看About Apache页面。
目录 |
什么是 Apache HTTP Server
- 一个强大的、灵活的、兼容HTTP/1.1规范的web服务器
- 实现了最新的协议,包括HTTP/1.1(RFC2616)
- 具有高度的可配置性和使用第三方模块的可扩展性
- 可以通过使用Apache模块API编写自己的模块进行定制
- 在非限制性许可证下提供所有的源代码
- 可以运行在 Windows 2003/XP/2000/NT/9x 、Netware 5.x 及以上版本、OS/2 、大多数Unix版本以及其它操作系统上
- 被非常活跃的进行开发
- 鼓励用户反馈新想法、bug报告、补丁程序
相关链接
- http://httpd.apache.org/
- Apache HTTP Server Version 2.2 中文文档 - http://www.huihoo.com/apache/httpd/2.2-cn/
- Apache HTTP Server Version 2.0 中文文档 - http://www.huihoo.com/apache/httpd/2.0-cn/
安装指南
- 在 Debian3.1 上安装 Apache 2 + PHP5 + MySQL5 debian3.1_apache2_php5_mysql5
- 在 Debian 上安装 Apache2 + MySQL5 + PHP5 + GD + Zlib + libpng + Jpeg v6b + FreeType2
- Install Apache2 On Debian with PHP,Python,Ruby,Perl,MySQL,PostgreSQL
启用SSL
#apt-get install apache-ssl or /etc/apache2# a2enmod ssl /etc/apache2# apache2-ssl-certificate
creating selfsigned certificate replace it with one signed by a certification authority (CA)
enter your ServerName at the Common Name prompt
If you want your certificate to expire after x days call this programm with -days x Generating a 1024 bit RSA private key ...............................................................++++++ ....++++++ writing new private key to '/etc/apache2/ssl/apache.pem' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [GB]: State or Province Name (full name) [Some-State]:GZ Locality Name (eg, city) []:SZ Organization Name (eg, company; recommended) []:huihoo Organizational Unit Name (eg, section) []:debian server name (eg. ssl.domain.tld; required!!!) []:demo.huihoo.com Email Address []:[email protected]
#/etc/apache2/sites-available/ cp default ssl_site 在/etc/apache2/ports.conf 中添加 Listen 443 修改/etc/apache2/sites-available/ssl_site, 将监听端口 改为 443 在配置文件中加入 SSLEngine On SSLCertificateFile /etc/apache2/ssl/apache.pem
<VirtualHost 192.168.1.22:443> ServerAdmin [email protected] ServerName www.mysite.com:443 DocumentRoot /var/www/mysite
# /etc/init.d/apache2 restart https://demo.huihoo.com:443/
分享您的观点