-
[SOLVED]apache ssl not responding
hello,
i'm quite new to apache config issues, and I came out with a bad one for me: i need to setup it to setup so that it can serve svn repositories through https. I followed many tutorials, specific for my distribution (ubuntu/breezy).
I ended up with the following configuration for the site-available/ssl:
Code:
NameVirtualHost *:443
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName localhost.localdomain
DocumentRoot /var/www/ssl
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
CustomLog /var/log/apache2/access.log combined
ServerSignature On
<location /svn>
DAV svn
SVNParentPath /var/lib/svn
AuthType Basic
AuthName "Svn Repositories"
AuthUserFile /var/www/trac/.htpasswd
Require valid-user
</location>
</VirtualHost>
something must be wrong because the machine is not responding.
I added Listen 443 to posts.conf
I created a self-signed certifate, as explained here: https://wiki.ubuntu.com/forum/server/apache2/SSL
Also, to test that Apache is actually working with https, if I connect to https://localhost
i get the right page I'm expecting.
As second proof, I also tried logging through openssl, and i can see the correct handshaking messages as shown here: http://rafb.net/paste/results/JY7UYI83.html
So, i don't reallly know where to look at..probably this has something to do with basic apache setup, but my knowledge doesn't help me much.
Any help will very appreciated!
Valerio
-
ipv6 causing troubles
i just discovered this:
Code:
sudo netstat -atunl | grep ':443'
tcp6 0 0 :::443 :::* LISTEN
so the problem comes from the IPv6 protocol being used...
-
Did you solve this? It sounds to me like Apache is properly configured if you get the appropriate page at https://localhost. Are you having trouble connecting from the local machine or from a remote one? If it's a remote one can you get to https://ServerIP and get the right page or is that not working from remote machines either. Or is it just SVN that can't connect. I guess I'm not clear on exactly what isn't working.
-
i solved the problem.
the apache conf was fine.
it was a problem with iptables, where a missing ACCEPT for port 443 was apparetly missing :-)
-
Thanks for the update. Glad to hear you got it working.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|