# HG changeset patch # User Bryan O'Sullivan # Date 1240373240 25200 # Node ID 06458701453cb358d2f45d54b6edcdd16b6c2b1d # Parent 743dc55775fef62bd87e178f3bb9de980fbc5027 Fix up some links to example URLs that aren't actually real. diff -r 743dc55775fe -r 06458701453c en/ch05-collab.xml --- a/en/ch05-collab.xml Sat Apr 18 17:45:54 2009 +0200 +++ b/en/ch05-collab.xml Tue Apr 21 21:07:20 2009 -0700 @@ -1033,18 +1033,17 @@ wrong? Once you've copied the CGI script into place, - go into a web browser, and try to open the URL http://myhostname/myuser/hgweb.cgi, - but brace - yourself for instant failure. There's a high probability - that trying to visit this URL will fail, and there are many - possible reasons for this. In fact, you're likely to - stumble over almost every one of the possible errors below, - so please read carefully. The following are all of the - problems I ran into on a system running Fedora 7, with a - fresh installation of Apache, and a user account that I - created specially to perform this exercise. + go into a web browser, and try to open the URL + http://myhostname/~myuser/hgweb.cgi, + but brace yourself for instant failure. + There's a high probability that trying to visit this URL + will fail, and there are many possible reasons for this. In + fact, you're likely to stumble over almost every one of the + possible errors below, so please read carefully. The + following are all of the problems I ran into on a system + running Fedora 7, with a fresh installation of Apache, and a + user account that I created specially to perform this + exercise. Your web server may have per-user directories disabled. If you're using Apache, search your config file for a @@ -1187,9 +1186,7 @@ chmod 755 ~/public_html ~/public_html/hgwebdir.cgi With basic configuration out of the way, try to - visit http://myhostname/ myuser/hgwebdir.cgi + visit http://myhostname/~myuser/hgwebdir.cgi in your browser. It should display an empty list of repositories. If you get a blank window or error message, try walking through the list of @@ -1223,19 +1220,17 @@ remaining component of a path after this stripping has occurred is called a virtual path. - Given the example above, if we have a repository whose - local path is Given the example above, if we have a + repository whose local path is /my/root/this/repo, the CGI script will strip the leading /my/root from the name, and publish the repository with a virtual path of this/repo. If the base URL for - our CGI script is http://myhostname/myuser/hgwebdir.cgi, the complete URL - for that repository will be http://myhostname/myuser/hgwebdir.cgi/this/repo. + our CGI script is + http://myhostname/~myuser/hgwebdir.cgi, the + complete URL for that repository will be + http://myhostname/~myuser/hgwebdir.cgi/this/repo. If we replace /my/root on the left hand side