Flex+BlazeDs+Java的教程及Demo
2015-10-27 15:08
399 查看
Apache安装部分:
编译命令:
# ./configure \
"--prefix=/usr/local/apache2" \
"--enable-module=so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--enable-static-support" \
"--enable-static-htpasswd" \
"--enable-static-htdigest" \
"--enable-static-rotatelogs" \
"--enable-static-logresolve" \
"--enable-static-htdbm" \
"--enable-static-ab" \
"--enable-static-checkgid" \
"--enable-ssl" \
"--with-ssl=/usr/local/openssl" \
"--disable-userdir"
打开页面的时候会有mod_ssl的提示。
如果重新编译出错
configure: error: Cannot use an external APR with the bundled APR-utilq错误。
解决办法:安装apr以及apr-util。 #cd /usr/local/httpd-2-2-4/srclib/apr
#./configure --prefix=/usr/local/apr
#make
#make install
安装APR-util
cd srclib/apr-util
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install
编译Apache使用:
./configure --prefix=/usr/local/apache2 --enable-module=so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support --enable-static-htpasswd --enable-static-htdigest --enable-static-rotatelogs --enable-static-logresolve --enable-static-htdbm --enable-static-ab --enable-static-checkgid --enable-ssl --disable-userdir --with-ssl=/usr/local/openssl --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/bin
SSL部分:
实际上在Aache的Menu部分是有这些详细介绍的,参见:
http://bbs.nau.edu.cn/ApacheMenu/ssl/ssl_faq.html
How do I create a real SSL Certificate?
Here is a step-by-step description:
Make sure OpenSSL is installed and in your PATH.
Create a RSA private key for your Apache server (will be Triple-DES encrypted and PEM formatted):
$ openssl genrsa -des3 -out server.key 1024
Please backup this server.key file and the pass-phrase you entered in a secure location. You can see the details of this RSA private key by using the command:
$ openssl rsa -noout -text -in server.key
If necessary, you can also create a decrypted PEM version (not recommended) of this RSA private key with:
$ openssl rsa -in server.key -out server.key.unsecure
Create a Certificate Signing Request (CSR) with the server RSA private key (output will be PEM formatted):
$ openssl req -new -key server.key -out server.csr
Make sure you enter the FQDN ("Fully Qualified Domain Name") of the server when OpenSSL prompts you for the "CommonName", i.e. when you generate a CSR for a website which will be later accessed via https://www.foo.dom/, enter "www.foo.dom" here. You can see the details of this CSR by using
$ openssl req -noout -text -in server.csr
Aache的Vhost配置部分
<VirtualHost 192.168.1.254:443>
ServerName ssl.testmysite.com
DocumentRoot "/web/ssl"
CustomLog logs/ssl-access_log common
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key
<Directory "/web/ssl">
SSLOptions +StdEnvVars
</Directory>
<Directory "/web/ssl">
Options FollowSymLinks MultiViews Includes
AllowOverride None
Allow from all
</Directory>
</VirtualHost>
编译命令:
# ./configure \
"--prefix=/usr/local/apache2" \
"--enable-module=so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--enable-static-support" \
"--enable-static-htpasswd" \
"--enable-static-htdigest" \
"--enable-static-rotatelogs" \
"--enable-static-logresolve" \
"--enable-static-htdbm" \
"--enable-static-ab" \
"--enable-static-checkgid" \
"--enable-ssl" \
"--with-ssl=/usr/local/openssl" \
"--disable-userdir"
打开页面的时候会有mod_ssl的提示。
如果重新编译出错
configure: error: Cannot use an external APR with the bundled APR-utilq错误。
解决办法:安装apr以及apr-util。 #cd /usr/local/httpd-2-2-4/srclib/apr
#./configure --prefix=/usr/local/apr
#make
#make install
安装APR-util
cd srclib/apr-util
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install
编译Apache使用:
./configure --prefix=/usr/local/apache2 --enable-module=so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support --enable-static-htpasswd --enable-static-htdigest --enable-static-rotatelogs --enable-static-logresolve --enable-static-htdbm --enable-static-ab --enable-static-checkgid --enable-ssl --disable-userdir --with-ssl=/usr/local/openssl --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/bin
SSL部分:
实际上在Aache的Menu部分是有这些详细介绍的,参见:
http://bbs.nau.edu.cn/ApacheMenu/ssl/ssl_faq.html
How do I create a real SSL Certificate?
Here is a step-by-step description:
Make sure OpenSSL is installed and in your PATH.
Create a RSA private key for your Apache server (will be Triple-DES encrypted and PEM formatted):
$ openssl genrsa -des3 -out server.key 1024
Please backup this server.key file and the pass-phrase you entered in a secure location. You can see the details of this RSA private key by using the command:
$ openssl rsa -noout -text -in server.key
If necessary, you can also create a decrypted PEM version (not recommended) of this RSA private key with:
$ openssl rsa -in server.key -out server.key.unsecure
Create a Certificate Signing Request (CSR) with the server RSA private key (output will be PEM formatted):
$ openssl req -new -key server.key -out server.csr
Make sure you enter the FQDN ("Fully Qualified Domain Name") of the server when OpenSSL prompts you for the "CommonName", i.e. when you generate a CSR for a website which will be later accessed via https://www.foo.dom/, enter "www.foo.dom" here. You can see the details of this CSR by using
$ openssl req -noout -text -in server.csr
Aache的Vhost配置部分
<VirtualHost 192.168.1.254:443>
ServerName ssl.testmysite.com
DocumentRoot "/web/ssl"
CustomLog logs/ssl-access_log common
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key
<Directory "/web/ssl">
SSLOptions +StdEnvVars
</Directory>
<Directory "/web/ssl">
Options FollowSymLinks MultiViews Includes
AllowOverride None
Allow from all
</Directory>
</VirtualHost>
相关文章推荐
- 安卓开发中用eclipse提交代码到github遇到的rejected-non-fast-forward问题
- Java连接MySQL数据库
- 通过Ajax两种方式讲解Struts2接收数组表单的方法
- Java常见内存溢出异常分析(OutOfMemoryError)
- eclipse导入已有的工程时,在maven dependencies里有项目所需jar,但是启动项目时,报错不能找到jar
- Java IO教程
- spring 下载地址
- JAVA泛型——基本使用
- java日期时间处理工具类
- Spring注解测试
- SSH框架学习总结
- Spring Security教程(14)---- Logout和SessionManager
- Spring MVC兑现QQ第三方登录
- Spring Security教程(12)---- 使用数据库来管理方法
- Spring Security教程(13)---- 验证码功能的实现
- 学生成绩信息的管理(java控制台)
- Spring MVC实现QQ第三方登录 博客分类: spring
- Spring Security教程(11)---- 使用数据库来管理资源
- Spring Security教程(10)---- 自定义登录成功后的处理程序及修改默认验证地址
- Spring Security教程(8)---- 自定义决策管理器及修改权限前缀