Edgewall Software

Changes between Version 5 and Version 6 of ApacheSuexec


Ignore:
Timestamp:
Mar 9, 2005, 9:36:55 AM (19 years ago)
Author:
torgny@…
Comment:

Fixed typos and sloppy errors made in haste when posting addition.

Legend:

Unmodified
Added
Removed
Modified
  • ApacheSuexec

    v5 v6  
    5050
    5151The above script works well if you want to have a Trac
    52 instance for each user, but it does not really help if you have
    53 several projects under the same site. In order to solve this under
    54 Linux Red Hat with Plesk, I did the following:
     52instance for each user, but it doesn't really help if you have
     53several projects under the same site, !SourceForge style. In order to
     54solve this under Linux Red Hat with Plesk, I did the following:
    5555
    5656First, from the Apache configuration ('''vhost.conf''' in this case),
     
    8888}}}
    8989
    90 And after that, add the folder to '''~/httpdocs/projects'''.
     90Now add the folder '''~/httpdocs/projects'''.
    9191
    92 In that folder, either symlink '''trac.cgi''' or place a copy, and add '''index.html'''.
     92In that folder, either symlink '''trac.cgi''' or place a copy, and add '''index.php'''.
    9393
    9494Index.php acts as the default page when a project without an existing
     
    9797Now, for the wrap.cgi bash script:
    9898{{{
    99 #!/bin/bash
    100 project="${SCRIPT_NAME#/projects/}"
    101 export TRAC_ENV="/home/httpd/vhosts/DOMAIN/private/tracs/${project}"
    102 export SCRIPT_NAME="/projects/${project}"
    103 export PATH_INFO="${PATH_INFO#/${SCRIPT_NAME}}"
    104 exec ./trac.cgi
     99
     100 #!/bin/bash
     101 DOMAIN="trac.edgewall.com"
     102 project="${SCRIPT_NAME#/projects/}"
     103 export TRAC_ENV="/home/httpd/vhosts/${DOMAIN}/private/tracs/${project}"
     104 export SCRIPT_NAME="/projects/${project}"
     105 export PATH_INFO="${PATH_INFO#/${SCRIPT_NAME}}"
     106 exec ./trac.cgi
    105107}}}
    106108