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

Jump to navigation Jump to search
→‎Sample virtual host config: remove some abnormal configuration, add some hints
(apache virtual host config example added)
(→‎Sample virtual host config: remove some abnormal configuration, add some hints)
Line 169: Line 169:


== Sample virtual host config ==
== Sample virtual host config ==
server-config (for debian placed in /etc/apache2/sites-enabled/): ssl enabled, http-login required
Sample Virtual host config for a server having SSL enabled and requiring http authentication. For debian placed in /etc/apache2/sites-enabled/, weave server directory located at /var/www/weaveserver/server/.
<pre>
<pre>
<VirtualHost *:88 *:89>
<VirtualHost weave.my.domain:80>


ServerName weave.my.domain
ServerName weave.my.domain
Line 180: Line 180:


SSLENgine on
SSLENgine on
SSLCertificateKeyFile /etc/apache2/server.cert.key
SSLCertificateKeyFile /path/to/server.cert.key
SSLCertificateFile /etc/apache2/server.cert.crt
SSLCertificateFile /path/to/server.cert.crt


<Directory "/var/www/weaveserver/server/">
<Directory "/var/www/weaveserver/server/">


Options Indexes FollowSymLinks
Options Indexes FollowSymLinks
Line 192: Line 191:
AuthType Basic
AuthType Basic
AuthName "Weave Server"
AuthName "Weave Server"
AuthUserFile /var/www/pws
AuthUserFile /path/to/auth/file
require valid-user
require valid-user


</Directory>
</Directory>


Alias /weave/0.3 /var/www/weaveserver/server/index.php
Alias /weave/register /var/www/weaveserver/server/register.php
Alias /weave/register /var/www/weaveserver/server/register.php
Alias /weave/admin /var/www/weaveserver/server/admin.php
Alias /weave/admin /var/www/weaveserver/server/admin.php
Line 205: Line 203:
</VirtualHost>
</VirtualHost>
</pre>
</pre>
In your weave-clients only enter https://weave.my.domain as server location.
Some hints:
* the username/password of the http-authentication must be the same as the one for the weave-user, or else it won't work
* if you have a self-signed certificate for SSL (or it is not valid because of any other reason) you have to visit your server once manually and accept the certificate permanently
15

edits

Navigation menu