Rev 1103 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1103 | Rev 1157 | ||
|---|---|---|---|
| Line 137... | Line 137... | ||
| 137 | <p>The repname part of the URL is the name given to it in the config.php file. |
137 | <p>The repname part of the URL is the name given to it in the config.php file. |
| 138 | For this reason you may wish to avoid putting spaces in the name.</p> |
138 | For this reason you may wish to avoid putting spaces in the name.</p> |
| 139 | 139 | ||
| 140 | <h3><a name="multiviewsexample"></a>Multiviews example</h3> |
140 | <h3><a name="multiviewsexample"></a>Multiviews example</h3> |
| 141 | 141 | ||
| 142 | <p>First, you |
142 | <p>First, Apache needs to know that you want to enable MultiViews for the root directory. You may need to enable the MultiViews option in the Apache configuration, as explained in <a href="http://httpd.apache.org/docs/2.2/content-negotiation.html#multiviews">these Apache docs</a>. For example, if my Apache directory root were set <code>/var/apache/htdocs</code>, the corresponding block in Apache might look something like this:</p> |
| 143 | 143 | ||
| 144 | <pre> |
144 | <pre> |
| 145 |
|
145 | <Directory "/var/apache/htdocs"> |
| - | 146 | Options Indexes FollowSymLinks MultiViews |
|
| - | 147 | AllowOverride None |
|
| - | 148 | Order allow,deny |
|
| - | 149 | Allow from all |
|
| - | 150 | </Directory> |
|
| 146 | </pre> |
151 | </pre> |
| 147 | 152 | ||
| 148 | <p> |
153 | <p>Alternatively, you can include the following line in the directory's <code>.htaccess</code> file, assuming that the appropriate AllowOverrides directive is set up.</p> |
| 149 | - | ||
| 150 | <p>wsvn.php is then copied from the WebSVN installation to the document root directory and the variable at the beginning of the script configured as follows (based on your own directory location, obviously):</p> |
- | |
| 151 | 154 | ||
| 152 | <pre> |
155 | <pre> |
| 153 | // Location of websvn directory via HTTP |
- | |
| 154 | // |
- | |
| 155 | // e.g. For http://example.com/websvn use /websvn |
- | |
| 156 | // |
- | |
| 157 | // Note that wsvn.php need not be in the /websvn directory (and normally isn't). |
- | |
| 158 |
|
156 | Options MultiViews |
| 159 | </pre> |
157 | </pre> |
| 160 | 158 | ||
| 161 | <p> |
159 | <p>Let's suppose that WebSVN is installed in a directory called <code>websvn</code> within the Apache document root directory. Normally, WebSVN would be accessed at <code>http://example.com/websvn/</code>. With MultiViews enabled, the base path for all WebSVN pages would be <code>http://example.com/websvn/wsvn/</code>. (If you would prefer <code>http://example.com/wsvn/</code> instead, move/copy wsvn.php from the WebSVN installation to the document root directory.) You may need to modify the <code>$locwebsvnhttp</code> variable at the beginning of wsvn.pnp to match your directory location.</p> |
| - | 160 | ||
| - | 161 | <p>You must also enable Multiviews in the WebSVN <code>include/config.php</code> file by adding this line:</p> |
|
| 162 | 162 | ||
| 163 | <pre> |
163 | <pre> |
| 164 | $config->useMultiViews(); |
164 | $config->useMultiViews(); |
| 165 | </pre> |
165 | </pre> |
| 166 | 166 | ||
| 167 | <p>Finally, Apache needs to know that you want to enable MultiViews for the root directory. This can be done by including this line in the directory's .htaccess file (assuming that the appropriate AllowOverrides directive is set up):</p> |
- | |
| 168 | - | ||
| 169 | <pre> |
- | |
| 170 | Options MultiViews |
- | |
| 171 | </pre> |
- | |
| 172 | - | ||
| 173 | <p>If all has gone well, repositories should now by accessible at <code>http://example.com/wsvn/ |
167 | <p>If all has gone well, repositories should now by accessible at <code>http://example.com/wsvn/</code>.</p> |
| 174 | 168 | ||
| 175 | <p>Note the index page can be accessed through <code>http://example.com/wsvn</code>. If you want to view the index page at <code>http://example.com/</code>, you need to add another directive to the .htaccess file:</p> |
169 | <p>Note the index page can be accessed through <code>http://example.com/wsvn/</code>. If you want to view the index page at <code>http://example.com/</code>, you need to add another directive to the .htaccess file:</p> |
| 176 | 170 | ||
| 177 | <pre> |
171 | <pre> |
| 178 | DirectoryIndex wsvn.php |
172 | DirectoryIndex wsvn.php |
| 179 | </pre> |
173 | </pre> |
| 180 | 174 | ||