Revision 075ccdfa
b/docs/source/adminguide.rst | ||
---|---|---|
64 | 64 |
CustomLog ${APACHE_LOG_DIR}/pithos.access.log combined |
65 | 65 |
</VirtualHost> |
66 | 66 |
|
67 |
To disable non-SSL connections, ``/etc/apache2/sites-available/pithos`` should be:: |
|
68 |
|
|
69 |
<VirtualHost *:80> |
|
70 |
ServerAdmin webmaster@pithos.dev.grnet.gr |
|
71 |
ServerName pithos.dev.grnet.gr |
|
72 |
|
|
73 |
RewriteEngine On |
|
74 |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} |
|
75 |
</VirtualHost> |
|
76 |
|
|
67 | 77 |
Edit ``/etc/apache2/sites-available/pithos-ssl`` (assuming files in ``/etc/ssl/private/pithos.dev.grnet.gr.key`` and ``/etc/ssl/certs/pithos.dev.grnet.gr.crt`` - change the ``ServerName`` directive):: |
68 | 78 |
|
69 | 79 |
<IfModule mod_ssl.c> |
Also available in: Unified diff