I am trying to setup apache

John Francis Lee jfl at robinlea.com
Sat Oct 4 06:19:05 UTC 2008


Thanks for the help with
  hg add

I am trying to setup apache. I have tried to follow the advice on the 
mercurial site, with some changes for my particular directory structure. 
Apache is running on FreeBSD. I am having trouble.

[jfl at 28amen ~/www/uspvp.org/hg]$ sudo vi /usr/local/apache2/conf/httpd.conf
...
<VirtualHost 204.3.153.218:80>
     SSLEngine off
     #User           jfl
     #Group          jfl
     ServerName     uspvp.org
     ServerAlias    www.uspvp.org
     ServerAdmin    webmaster at uspvp.org
     DocumentRoot   /home/jfl/www/uspvp.org
     ScriptAlias    /cgi-bin/ "/home/jfl/www/cgi-bin/"
     <Directory /home/jfl/www/cgi-bin>
         AllowOverride None
         Options ExecCGI
         Order allow,deny
         Allow from all
     </Directory>
     CustomLog   /usr/local/apache2/logs/jfl/uspvp.org-access_log combined
     ErrorLog    /usr/local/apache2/logs/jfl/uspvp.org-error_log
     Include     /usr/local/apache2/hg/main.conf
</VirtualHost>
...

[jfl at 28amen ~/www/uspvp.org/hg]$ cat /usr/local/apache2/hg/main.conf
ScriptAliasMatch        ^/hg(.*)        /home/jfl/www/cgi-bin/hgwebdir.cgi$1
<Directory /home/jfl/www/uspvp.org/hg>
   Options ExecCGI FollowSymLinks
   AllowOverride None
</Directory>

[jfl at 28amen ~/www/uspvp.org/hg]$ ls -l ~/www/cgi-bin/
total 2
-rwxr-xr-x  1 jfl  www  1506 Oct  4 04:54 hgwebdir.cgi

[jfl at 28amen ~/www/uspvp.org/hg]$ pwd
/home/jfl/www/uspvp.org/hg

[jfl at 28amen ~/www/uspvp.org/hg]$ ls
hgweb.config    repos

[jfl at 28amen ~/www/uspvp.org/hg]$ ls repos/
Article8        CFA             NI4d

[jfl at 28amen ~/www/uspvp.org/hg]$ ls -al repos/NI4d/
total 19
drwxr-xr-x  3 jfl  www    512 Oct  4 05:14 .
drwxr-xr-x  5 jfl  www    512 Oct  4 05:51 ..
drwxr-xr-x  3 jfl  www    512 Oct  4 05:32 .hg
-rw-r--r--  1 jfl  www  13973 Oct  4 05:10 Act.txt
-rw-r--r--  1 jfl  www   2831 Oct  4 05:10 Amendment.txt

Please see
  http://www.uspvp.org/hg

There are references in the generated .html to a .css in a 'static' 
directory which I cannot find anywhere on the machine.

But nothing shows up from the repos directory itself.

Any help appreciated.

-- 
"This message may have been intercepted and read by U.S. government 
agencies including the FBI, CIA, and NSA without notice or warrant or 
knowledge of sender or recipient."

John Francis Lee
1025/37 Thanon Jet Yod
T.Wiang A.Mueang J.Chiangrai 57000




More information about the Mercurial mailing list