You are not logged in.

#1 2011-04-03 23:31:28

pylexy
Member
Registered: 2011-03-13
Posts: 15

Error 403 in Apache server with SSL and non default document root

I followed the instructions in the wiki to setup Apache on Arch Linux, and created SSL certificates server.key, server.crt per the instructions.

I also added "httpd: ALL" to /etc/hosts.allow, "Listen 80" and "Listen 443" in /etc/httpd/conf/httpd.conf.

Then, I modified my /etc/httpd/conf/extra/httpd-ssl.conf to be this.

However, I keep getting 403 errors when accessing the site via HTTPS. So I checked the directory permissions for my non-default /srv/ssl_html/ folder for HTTPS:

ls -l /srv
total 12
dr-xr-xr-x 2 root ftp  4096 Dec 14 02:09 ftp
drwxr-xr-x 2 root root 4096 Apr  3 18:11 http
drwxr-xr-x 2 root root 4096 Apr  3 19:03 ssl_html

I do have a test index.html inside ssl_html, but of course I couldn't even get far enough to see it in my browser.

What did I do wrong? And what should I do to only allow HTTPS access to my server? Thanks.

BTW, I hope to eventually set up WebDAV access via HTTPS. If you can point me to directions for that, that's great, too.

Last edited by pylexy (2011-04-03 23:33:15)

Offline

Board footer

Powered by FluxBB