Changes between Version 9 and Version 10 of UbuntuConfiguringApache2ServerSSLProxy


Ignore:
Timestamp:
27.09.2013 18:08:29 (7 years ago)
Author:
JuergeN
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UbuntuConfiguringApache2ServerSSLProxy

    v9 v10  
    11[[PageOutline]] 
    22 
    3 = Configuring Apache2 Server as SSL Proxy with htdigest auth = 
     3= Configuring Apache2 Server as SSL Proxy = 
    44 
    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:   
     5If 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:   
    66 
    77 
     
    1212 0. Load the required modules 
    1313 {{{ 
    14  a2enmod ssl rewrite proxy proxy_http mod_auth_digest 
     14 a2enmod ssl rewrite proxy proxy_http 
    1515 }}} 
    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'': 
    2117 {{{ 
    2218 <VirtualHost *:443> 
     
    2824    SSLCertificateFile /etc/apache2/ssl/deepamehta.yourdomain.tld.pem 
    2925 
    30     ErrorLog /var/log/apache2/deepamehta-error.log 
    31     CustomLog /var/log/apache2/deepamehta-access.log combined 
     26    ErrorLog /var/log/apache2/deepamehta-ssl-error.log 
     27    CustomLog /var/log/apache2/deepamehta-ssl-access.log combined 
    3228     
     29    NameVirtualHost *:443 
     30 
     31    DefaultType text/html 
     32 
    3333    RewriteEngine On  
    3434    RewriteRule ^/?$ http://localhost:8080/de.deepamehta.webclient [P]  
     
    4646        Order allow,deny 
    4747        Allow from all 
    48         AuthType Digest 
    49         AuthName "deepamehta.yourdomain.tld" 
    50         AuthUserFile /etc/apache2/.htdigest 
    51         Require valid-user 
    5248        ProxyPass http://localhost:8080/ 
    5349        ProxyPassReverse http://localhost:8080/ 
     
    5652 </VirtualHost> 
    5753 }}} 
    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 ... 
    5955 
    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. 
     56That's it! You can now securely connect to !https://deepamehta.your.domain.tld. 
    6157  
    6258----