httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kohanm <>
Subject [users@httpd] Virtual Host Set UP for Apache 2.2+SSL+Tomcat 5.5 + mod_Jk
Date Wed, 23 Jul 2008 01:54:03 GMT

I set up the * Apache 2.2+SSL+Tomcat 5.5 + mod_Jk*  it works fine with http.
when I use https I get Forbidden errors.

How to configure the Apache2.2 virtual Host  to be accessible the whole
application with https and http the same time(the login link needs to be
implemented with HTTPS for external authentication server which belongs to
another organization)

here are the *httpd.conf* and *httpd-ssl.conf* files.

*httpd.conf file(short describtion):*

 Listen  mydomainIP:80

 LoadModule jk_module modules/

<IfModule mod_jk.c>

JkWorkersFile conf/
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

 Alias /list  "/usr/local/jakarta-tomcat/webapps/list/"

 <Directory "/usr/local/jakarta-tomcat/webapps/list/">
        Options Indexes +FollowSymLinks
        AllowOverride None
        Allow from all

Alias /example  "/usr/local/jakarta-tomcat/webapps/example/"

 <Directory "/usr/local/jakarta-tomcat/webapps/example/">
        Options Indexes +FollowSymLinks
        AllowOverride None
        Allow from all

    <Location "/*/WEB-INF/*">
        AllowOverride None
        deny from all
 JkMount  /list/*  example
 JkMount /example/* example


# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

*httpd-ssl.conf *

* *

Listen 443

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

SSLPassPhraseDialog  builtin
SSLSessionCache        shmcb:/usr/local/apache2.2/logs/ssl_scache(512000)
SSLSessionCacheTimeout  300

SSLMutex  file:/usr/local/apache2.2/logs/ssl_mutex

<VirtualHost _default_:443>

#   General setup for the virtual host
DocumentRoot "/usr/local/apache2.2/htdocs"
ServerName mydomain:443
ErrorLog /usr/local/apache2.2/logs/error_log
TransferLog /usr/local/apache2.2/logs/access_log

SSLEngine on


SSLCertificateFile /usr/local/apache2.2/conf/server.crt
SSLCertificateKeyFile /usr/local/apache2.2/conf/server.key

#   Server Private Key:
<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
<Directory "/usr/local/apache2.2/cgi-bin">
    SSLOptions +StdEnvVars
BrowserMatch ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

#   Per-Server Logging:
#   The home of a custom SSL log file. Use this when you want a
#   compact non-error SSL logfile on a virtual host basis.
CustomLog /usr/local/apache2.2/logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"


Thanks for your help.



View raw message