You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by kohanm <ko...@gmail.com> on 2008/09/01 18:18:25 UTC
[users@httpd] How set up the httpd-ssl.conf for htdocs directory
Hi,
I have Apache2.2+Tomcat2.2+SSL works fine with http and https.
How set up the httpd-ssl.conf for htdocs directory when the request is HTTPS?
I have many documents on the htdocs directory
if the program brings the records with links of the documents,the
links opens the document if the request is HTTP and when the request
is HTTPS i get HTTP Error 403 - Forbidden Internet.
and in error_log file:
(13)Permission denied: file permissions deny server access:
/usr/local/apache2.2/htdocs/documents/myfile.pdf
here is httpd-ssl.conf file :
<VirtualHost _default_:443>
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
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache2.2/conf/mydomain.crt
SSLCertificateKeyFile /usr/local/apache2.2/conf/mydomain.key
Alias /List "/usr/local/jakarta-tomcat/webapps/List/"
<Directory "/usr/local/jakarta-tomcat/webapps/List/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
JkMount /List/* example
<Directory "/usr/local/apache2.2/htdocs">
Order allow,deny
Allow from all
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /usr/local/apache2.2/logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
Thanks,
Mk
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] How set up the httpd-ssl.conf for htdocs directory
Posted by kohanm <ko...@gmail.com>.
Thanks for your replay.
The problem is when the request is http the apache can open it.
but when the request is https can not.
mk
On 9/2/08, Krist van Besien <kr...@gmail.com> wrote:
> On Mon, Sep 1, 2008 at 18:18, kohanm <ko...@gmail.com> wrote:
>
> > (13)Permission denied: file permissions deny server access:
> > /usr/local/apache2.2/htdocs/documents/myfile.pdf
>
> Have a look at the error message: It says that "file permission" deny
> server access. In other words, your apache process can't read the
> file. Now check your filesystem and see if myfile.pdf is readable by
> the useruid used by apache.
>
> Krist
>
>
> --
> krist.vanbesien@gmail.com
> krist@vanbesien.org
> Bremgarten b. Bern, Switzerland
> --
> A: It reverses the normal flow of conversation.
> Q: What's wrong with top-posting?
> A: Top-posting.
> Q: What's the biggest scourge on plain text email discussions?
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--
Massoud
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] How set up the httpd-ssl.conf for htdocs directory
Posted by Krist van Besien <kr...@gmail.com>.
On Mon, Sep 1, 2008 at 18:18, kohanm <ko...@gmail.com> wrote:
> (13)Permission denied: file permissions deny server access:
> /usr/local/apache2.2/htdocs/documents/myfile.pdf
Have a look at the error message: It says that "file permission" deny
server access. In other words, your apache process can't read the
file. Now check your filesystem and see if myfile.pdf is readable by
the useruid used by apache.
Krist
--
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org