电脑安全

您当前的位置:主页 > 电脑安全 >

Ubuntu 7.1 server从无到有搭建jsp/php/rails全能WEB生产

来源:[db:来源]标题:   配置文件    编辑:电脑技术全能网 时间:2019-09-22 06:21

原标题:Ubuntu 7.1 server从无到有搭建jsp/php/rails全能WEB生产
   作为出产情况,常常须要应用SSL来支撑https协定,这局部重要为Apache增添SSL支撑。6、设置apache支撑ssl:1、修正Apache设置文件:vi /usr/local/apache/conf/httpd.conf确保两面这行没有被解释:LoadModule ssl_module modules/mod_ssl.soInclude conf/extra/httpd-ssl.conf再设置一个虚构主机(可设置成xxx.dingl.com,依据购置的SSL证书设置):<VirtualHost *:80>ServerName www.dingl.comDocumentRoot /home/dingl/jsp-webResinConfigServer localhost 6800AddHandler caucho-request jspAddHandler caucho-request xtpAddHandler caucho-request vm</VirtualHost>2、修正ssl设置文件:vi /usr/local/apache/conf/extra/httpd-ssl.confdingl.com修正成以下情势:Listen 443AddType application/x-x509-ca-cert .crtAddType application/x-pkcs7-crl .crlSSLPassPhraseDialog builtinSSLSessionCache “shmcb:/usr/local/apache/logs/ssl_scache(512000)”SSLSessionCacheTimeout 300SSLMutex “file:/usr/local/apache/logs/ssl_mutex”#### SSL Virtual Host Context##<VirtualHost _default_:443># General setup for the virtual hostDocumentRoot “/home/dingl/jsp-web”ServerName www.dingl.com:443ServerAdmin you@example.comErrorLog “/usr/local/apache/logs/error_log”TransferLog “/usr/local/apache/logs/access_log”# SSL Engine Switch:# Enable/Disable SSL for this virtual host.SSLEngine onSSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULLSSLCertificateFile “/usr/local/apache/conf/dingl.com.crt”#SSLCertificateFile “/usr/local/apache/conf/server-dsa.crt”SSLCertificateKeyFile “/usr/local/apache/conf/dingl.com.key”

上一篇:php 保存数据代码-网络编程

下一篇:没有了