Services/Sync/Server/Archived/0.3/Setup: Difference between revisions

apache virtual host config example added
m (→‎Testing the Weave Server: admin interface --> admin server)
(apache virtual host config example added)
Line 166: Line 166:


The load_data.pl script will run a series of tests against your server, creating, modifying, selecting from and deleting a collection. Make sure to change the parameters at the top before running it. Also, the script requires the libwww-perl module and the weave admin server above to be set up. It currently does not work with http-authentication, so also be sure to have your web-directory unprotected during the tests.
The load_data.pl script will run a series of tests against your server, creating, modifying, selecting from and deleting a collection. Make sure to change the parameters at the top before running it. Also, the script requires the libwww-perl module and the weave admin server above to be set up. It currently does not work with http-authentication, so also be sure to have your web-directory unprotected during the tests.
== Sample virtual host config ==
server-config (for debian placed in /etc/apache2/sites-enabled/): ssl enabled, http-login required
<pre>
<VirtualHost *:88 *:89>
ServerName weave.my.domain
DocumentRoot /var/www/weaveserver/server/
ErrorLog /var/log/apache2/weaveserver-error.log
CustomLog /var/log/apache2/weaveserver-access.log combined
SSLENgine on
SSLCertificateKeyFile /etc/apache2/server.cert.key
SSLCertificateFile /etc/apache2/server.cert.crt
<Directory "/var/www/weaveserver/server/">
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
AuthType Basic
AuthName "Weave Server"
AuthUserFile /var/www/pws
require valid-user
</Directory>
Alias /weave/0.3 /var/www/weaveserver/server/index.php
Alias /weave/register /var/www/weaveserver/server/register.php
Alias /weave/admin /var/www/weaveserver/server/admin.php
Alias /0.3/user /var/www/weaveserver/server/index.php
</VirtualHost>
</pre>
14

edits