ervalerio
06-20-2006, 07:25 AM
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:
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
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:
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