Version Control System
to perform this test.
Steps performed previously;
$ sudo mkdir /var/lib/svn
$ sudo mkdir /var/lib/svn/lamp
svn = repos
lamp = ProjectName
$ sudo svnadmin create /var/lib/svn/lamp
$ svn co file:///var/lib/svn/lamp
Checked out revision 0.
$ svn co file://localhost/var/lib/svn/lamp
svn: 'lamp' is already a working copy for a different URL
In order to make things simple I retain ONE ServerName.
$ sudo /etc/init.d/apache2 force-reload
* Forcing reload of apache 2.0 web server... Apache/2.0.55 mod_ssl/2.0.55 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide us with the pass phrases.
Server lampserver:443 (RSA)
Enter pass phrase:
Ok: Pass Phrase Dialog successful.
[ ok ]
$ svn co http://lampserver/svn
svn: PROPFIND request failed on '/svn'
svn: PROPFIND of '/svn': Could not read status line: connection was closed by server. (http://lampserver)
$ svn co https://lampserver/svn
"https" works but NOT "http". Strange?
Error validating server certificate for 'https://lampserver:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
- The certificate hostname does not match.
- Hostname: Stephen
- Valid: from May 3 03:47:58 2008 GMT until May 3 03:47:58 2009 GMT
- Issuer: IT, Satimis, HK
- Fingerprint: 0c:3a:2f:08:a6:15:ff:24:28:6b:fb:52:7f:5d:6a:28:20:e9:c9:6e
(R)eject, accept (t)emporarily or accept (p)ermanently? svn: PROPFIND request fa
iled on '/svn'
Because I have no idea what to select, just cancel it wiht [Ctrt]+C. It prompts
Please advise how to fix the problem. What shall I select? TIA
PROPFIND request fa
iled on '/svn'
svn: PROPFIND of '/svn': Server certificate verification failed: certificate iss
ued for a different hostname, issuer is not trusted (https://lampserver)
What IP address I have enter on /etc/hosts?
Correct, ServerName has to be resolvable to an IP address.
$ cat /etc/hosts
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
Noted with thanks.
If you have more than one name you want to use to open the same host, you put the primary name inside "ServerName", and the rest of the names inside "ServerAlias". Ex.
ServerAlias lamp www.lamp www.lampserver
Then all 4 lampserver, lamp, www.lamp
will open the virtual host. Note they will only work if each of them can resolve to the server's IP address.
Could you please explain in more detail? Thanks
Also note that the /etc/hosts file will only apply to the local machine. If you want other machines to be able to type "lampserver" to get to your virtual host, you need ot add it to their hosts files, or add it to a DNS server.