Changes between Version 3 and Version 4 of TracOnArchLinux
- Timestamp:
- Jun 26, 2007, 8:23:16 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnArchLinux
v3 v4 47 47 }}} 48 48 49 == configure mod_python ==49 == configure mod_python and svn_dav == 50 50 edit /etc/httpd/conf/httpd.conf, append following line 51 51 {{{ 52 LoadModule python_module modules/mod_python.so 52 LoadModule python_module modules/mod_python.so 53 LoadModule dav_svn_module modules/mod_dav_svn.so 54 LoadModule authz_svn_module modules/mod_authz_svn.so 53 55 }}} 54 56 … … 92 94 {{{ 93 95 [header_logo] 94 link = http://your_server_ip/ prjs96 link = http://your_server_ip/trac 95 97 [logging] 96 98 log_type = file <-- we need check log to figure out problems 97 99 [project] 98 url = http://your_server_ip/ prjs/project1 <-- change to $PRJ100 url = http://your_server_ip/trac/project1 <-- change to $PRJ 99 101 }}} 102 == authentication == 103 === create password file === 104 {{{ 105 htpasswd -c /home/trac/.htpasswd admin # create 'admin' account 106 htpasswd /home/trac/.htpasswd new_user # append a 'new_user' account 107 }}} 108 === create access file === 109 sample /home/svn/.svn.access 110 {{{ 111 [/] 112 * = r 113 114 [project1:/] 115 admin = rw 116 }}} 117 100 118 == configure apache == 101 119 {{{ … … 110 128 DocumentRoot /home/trac/ # <- change to $TROOT 111 129 ServerName your_server_ip 112 ErrorLog /var/log/httpd/trac.error_log 113 CustomLog /var/log/httpd/trac.access_log common 114 <Location /prjs> #set up Trac handling 130 ErrorLog /var/log/httpd/trac.error.log 131 CustomLog /var/log/httpd/trac.access.log combined 132 <Location /> 133 Order deny,allow 134 Deny from all 135 Allow from 192.168.0.0/16 127.0.0.1 # <- allow local network only 136 </Location> 137 <Location /trac> #set up Trac handling 138 Order deny,allow 139 Deny from all 140 Allow from 192.168.0.0/16 127.0.0.1 # <- allow local network only 141 AuthName "Trac Projects" 142 AuthType Basic 143 AuthUserFile /home/trac/.htpasswd # <- place to put password by htpasswd2 144 Satisfy Any 145 Require valid-user 115 146 SetHandler mod_python 116 147 PythonHandler trac.web.modpython_frontend 117 PythonOption TracEnvParentDir /home/trac <-- change to $TROOT value118 PythonOption TracUriRoot / prjs148 PythonOption TracEnvParentDir /home/trac # <-- change to $TROOT value 149 PythonOption TracUriRoot /trac 119 150 </Location> 151 <Location /svn> 152 DAV svn 153 SVNParentPath /home/svn/ # <- change to $SROOT 154 AuthzSVNAccessFile /home/svn/.svn.access # <- place to put access file 155 AuthName "SVN Repo" 156 AuthType Basic 157 AuthUserFile /home/trac/.htpasswd # <- place to put password by htpasswd2 158 Satisfy Any 159 Require valid-user 160 </Location> 161 120 162 </VirtualHost> 121 163 }}} 122 164 123 to be continue... 165 {{{ 166 /etc/rc.d/httpd restart 167 # if failed, manual start up httpd by following command, and check the information 168 apachectl -k start 169 }}} 170 Now, you should be able to access Trac at http://you_server_ip/trac/$PRJ 171 172 == access via https(optional) == 173 via https will more safer, but it may be slower. 174 {{{ 175 cd /etc/httpd/conf # must change to this directory before doing the mod_ssl.txt 176 more mod_ssl.txt 177 }}} 178 1. following the instructions in mod_ssl.txt to generate key files. 179 1. Add the the lines of httpd-vhosts.conf to /etc/httpd/conf/extra/httpd-ssl.conf. 180 1. uncomment the include /etc/httpd/conf/extra/httpd-ssl.conf in /etc/httpd/conf/httpd.conf 181 1. restart apache by /etc/rc.d/httpd restart