Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 29th, 2008, 08:24 PM
Registered User
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache2 + Tomcat5 + SSL (13)Permission denied

Hi,

I have installed successfully the Apache2.2+Tomcat5.5+SSL.
The http://domainname/archive/welcome.do 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/welcome.do


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?
 How?





The httpd.conf (short):

<IfModule mod_jk.c>

JkWorkersFile conf/workers.properties
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
   </Directory>

 JkMount /archive/* example

 </IfModule>

Include conf/extra/httpd-ssl.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>







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"
ServerName www.sei.ubc.ca:443
ServerAdmin massoud.kohan@ubc.ca
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
</FilesMatch>

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

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

</VirtualHost>




Thanks
MK







Similar Threads
Thread Thread Starter Forum Replies Last Post
(0x800A0046) Permission denied,not IIS permission! David Hay Classic ASP Basics 3 April 30th, 2006 10:47 PM
Permission denied zah_amir Classic ASP Databases 1 January 24th, 2006 11:45 PM
Permission denied tksarun Classic ASP Components 0 March 11th, 2005 03:01 AM
Permission Denied hamidmq Javascript How-To 2 March 10th, 2005 09:41 AM
Permission Denied einstein Linux 1 December 10th, 2003 09:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.