Changes between Version 9 and Version 10 of UbuntuConfiguringApache2ServerSSLProxy
- Timestamp:
- 27.09.2013 18:08:29 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UbuntuConfiguringApache2ServerSSLProxy
v9 v10 1 1 [[PageOutline]] 2 2 3 = Configuring Apache2 Server as SSL Proxy with htdigest auth=3 = Configuring Apache2 Server as SSL Proxy = 4 4 5 If you want to secure your DeepaMehta server e.g. on a public webserver, you should definitely consider secure https via SSL and some sort of authentication. As DeepaMehta does not yet support these features natively, you can use an Apache2 Server and run it as an SSL proxy with htdigest authentication. Just follow these steps:5 If you want to secure your DeepaMehta server e.g. on a public webserver, you should definitely consider secure https via SSL. Even though DeepaMehta does support this features natively, you can also use an Apache2 Server and run it as an SSL proxy. Just follow these steps: 6 6 7 7 … … 12 12 0. Load the required modules 13 13 {{{ 14 a2enmod ssl rewrite proxy proxy_http mod_auth_digest14 a2enmod ssl rewrite proxy proxy_http 15 15 }}} 16 0. Create htdigest file with user and password 17 {{{ 18 htdigest -c /etc/apache2/.htdigest deepamehta.yourdomain.tld username 19 }}} 20 0. Create file ''deepamehta'' in ''/etc/apache2/sites-available'': 16 0. Create file ''deepamehta-ssl'' in ''/etc/apache2/sites-available'': 21 17 {{{ 22 18 <VirtualHost *:443> … … 28 24 SSLCertificateFile /etc/apache2/ssl/deepamehta.yourdomain.tld.pem 29 25 30 ErrorLog /var/log/apache2/deepamehta- error.log31 CustomLog /var/log/apache2/deepamehta- access.log combined26 ErrorLog /var/log/apache2/deepamehta-ssl-error.log 27 CustomLog /var/log/apache2/deepamehta-ssl-access.log combined 32 28 29 NameVirtualHost *:443 30 31 DefaultType text/html 32 33 33 RewriteEngine On 34 34 RewriteRule ^/?$ http://localhost:8080/de.deepamehta.webclient [P] … … 46 46 Order allow,deny 47 47 Allow from all 48 AuthType Digest49 AuthName "deepamehta.yourdomain.tld"50 AuthUserFile /etc/apache2/.htdigest51 Require valid-user52 48 ProxyPass http://localhost:8080/ 53 49 ProxyPassReverse http://localhost:8080/ … … 56 52 </VirtualHost> 57 53 }}} 58 0. Create link to ''/etc/apache2/sites-available/deepamehta '' in ''/etc/apache2/sites-enabled'' and restart the webserver ...54 0. Create link to ''/etc/apache2/sites-available/deepamehta-ssl'' in ''/etc/apache2/sites-enabled'' and restart the webserver ... 59 55 60 That's it! You can now securely connect to !https://deepamehta.your.domain.tld and will be asked to identify yourself with a username and password.56 That's it! You can now securely connect to !https://deepamehta.your.domain.tld. 61 57 62 58 ----