日期:2014-05-17  浏览次数:20906 次

Apache 映射jetty访问地址配置文件
1.在Apache服务器配置路径:/opt/apache/conf 比如:/opt/apache/conf/efs.conf(efs.conf 就是配置文件)
2.如果存在https的访问方式,上传证书到Apache服务器地址:如:/ks
3.efs.conf 配置文件详细内容:
NameVirtualHost *:443
NameVirtualHost *:80

<VirtualHost *:443>   ----443端口
DocumentRoot "/opt/apache2/htdocs"
ServerName localhost
ServerAdmin oapdmin@99bill.com
ErrorLog "/opt/apache2/logs/oap_error_log"
TransferLog "/opt/apache2/logs/oap_access_log"

SSLEngine on
SSLCipherSuite ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
SSLCertificateFile "/root/ks/srv/server.crt"  ----(证书路径)
SSLCertificateKeyFile "/root/ks/srv/server.key"
SSLCertificateChainFile "/root/ks/srv/versignprimaryCA.cer"
SSLCACertificateFile "/root/ks/trust/org_ca.crt"
SSLVerifyClient require
SSLVerifyDepth  10
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire

<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/opt/apache2/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog "/opt/apache2/logs/ssl_request_log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

JkMount /Atf* atf
</VirtualHost>

<VirtualHost *:80>  ---80端口
DocumentRoot "/opt/apache2/htdocs"
ServerName localhost
ServerAdmin oapAdmin@99bill.com
ErrorLog "/opt/apache2/logs/oap_error_log"
TransferLog "/opt/apache2/logs/oap_access_log"

JkMountFile /opt/apache2/conf/uriworkermap.properties
</VirtualHost>