canmove, Confirmed users
1,173
edits
Adm.Wiggin (talk | contribs) m (→Sample virtual host config: this "hint" about http authentication doesn't apply anymore because weave handles auth by itself now) |
No edit summary |
||
| Line 25: | Line 25: | ||
Don't forget to set up the weave directory in a virtual-host-directive (or similar), or else php will not work. (See sample virtual host config below) | Don't forget to set up the weave directory in a virtual-host-directive (or similar), or else php will not work. (See sample virtual host config below) | ||
3) Copy | 3) Copy 1.0/default_constants.php.dist to 1.0/default_constants.php and edit it as described below. If you have mutiple hostnames, you can put override constant files into {HOST_NAME}_constants.php | ||
== Setting up Weave Authentication == | == Setting up Weave Authentication == | ||
| Line 32: | Line 32: | ||
<pre> | <pre> | ||
define('WEAVE_AUTH_ENGINE', '[ | define('WEAVE_AUTH_ENGINE', '[mysql|ldap|none]'); | ||
</pre> | </pre> | ||
| Line 42: | Line 42: | ||
For more information on the auth store, see the user setup | For more information on the auth store, see the user setup | ||
=== Mysql === | === Mysql === | ||
| Line 64: | Line 57: | ||
<pre> | <pre> | ||
define('WEAVE_STORAGE_ENGINE', ' | define('WEAVE_STORAGE_ENGINE', 'mysql'); | ||
</pre> | </pre> | ||
=== Mysql === | === Mysql === | ||
| Line 132: | Line 115: | ||
Caps the size (in bytes - watch out for large unicode characters!) of a payload. | Caps the size (in bytes - watch out for large unicode characters!) of a payload. | ||
== Sample virtual host config == | == Sample virtual host config == | ||
Sample Virtual host config for a server having SSL. For debian placed in /etc/apache2/sites-enabled/, weave server directory located at /var/www/weaveserver | Sample Virtual host config for a server having SSL. For debian placed in /etc/apache2/sites-enabled/, weave server directory located at /var/www/weaveserver-sync. | ||
<pre> | <pre> | ||
<VirtualHost weave.my.domain:443> | <VirtualHost weave.my.domain:443> | ||
ServerName weave.my.domain | ServerName weave.my.domain | ||
DocumentRoot /var/www/weaveserver | DocumentRoot /var/www/weaveserver-sync/ | ||
ErrorLog /var/log/apache2/weaveserver-error.log | ErrorLog /var/log/apache2/weaveserver-error.log | ||
| Line 153: | Line 131: | ||
SSLCertificateFile /path/to/server.cert.crt | SSLCertificateFile /path/to/server.cert.crt | ||
<Directory "/var/www/weaveserver | <Directory "/var/www/weaveserver-sync/"> | ||
Options Indexes FollowSymLinks | Options Indexes FollowSymLinks | ||
| Line 161: | Line 139: | ||
</Directory> | </Directory> | ||
Alias /1.0 /var/www/weaveserver | Alias /1.0 /var/www/weaveserver-sync/1.0/index.php | ||
</VirtualHost> | </VirtualHost> | ||