httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kohanm <>
Subject [users@httpd] Apache2 + Tomcat5 + SSL (13)Permission denied
Date Fri, 29 Aug 2008 21:46:36 GMT

I have installed successfully the Apache2.2+Tomcat5.5+SSL.
The http://domainname/archive/ works fine.

If i changes the HTTP with HTTPS  I get error on browser :
You don't have permission to access /archive/ on this server.Forbiden

I got this error on the Apache error_log:

 [notice] Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a DAV/2
mod_jk/1.2.26 configured -- resuming normal operations
 [error] [client  ...] (13)Permission denied: access to /archive/
denied, referer: https://domainname/archive/

I did not set up the archive web application path in the
httpd-ssl.conf file (to be accessible on port 443).
 should I include Tomcat web application path directory on httpd-ssl.conf?

The httpd.conf (short):

<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 /materials  "/usr/local/jakarta-tomcat/webapps/archive/"

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

 JkMount  /archive/*  example


Include conf/extra/httpd-ssl.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

The httpd-ssl.conf file:

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

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

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

## SSL Virtual Host Context

<VirtualHost _default_:443>

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

SSLEngine on

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

 <FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars

<Directory "/usr/local/apache2.2/cgi-bin">
    SSLOptions +StdEnvVars

CustomLog /usr/local/apache2.2/logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"


Thanks for your help

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message