Changes between Initial Version and Version 1 of UbuntuConfiguringApache2ServerSSLProxy


Ignore:
Timestamp:
02.09.2011 18:58:36 (10 years ago)
Author:
JuergeN
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UbuntuConfiguringApache2ServerSSLProxy

    v1 v1  
     1[[PageOutline]] 
     2 
     3= Configuring Apache2 Server as SSL Proxy with htdigest auth = 
     4 
     5Load the required modules 
     6{{{ 
     7a2enmod ssl proxy proxy_http 
     8}}} 
     9 
     10Create file ''deepamehta'' in ''/etc/apache2/sites-available'': 
     11 
     12{{{ 
     13<VirtualHost *:443> 
     14     
     15    ServerName deepamehta.yourdomain.tld 
     16    ServerAdmin postmaster@yourdomain.tld 
     17 
     18    SSLEngine On 
     19    SSLCertificateFile /etc/apache2/ssl/deepamehta.yourdomain.tld.pem 
     20 
     21    ErrorLog /var/log/apache2/deepamehta-error.log 
     22    CustomLog /var/log/apache2/deepamehta-access.log combined 
     23     
     24    RewriteEngine On  
     25    RewriteRule ^/?$ http://localhost:8080/index.html [P]  
     26     
     27    ProxyRequests Off 
     28    ProxyPreserveHost Off 
     29    ProxyStatus On 
     30     
     31    <Proxy *> 
     32        Order deny,allow 
     33        Allow from all 
     34    </Proxy> 
     35     
     36    <location /> 
     37        Order allow,deny 
     38        Allow from all 
     39        AuthType Digest 
     40        AuthName "deepamehta.yourdomain.tld" 
     41        AuthUserFile /etc/apache2/.htdigest 
     42        Require valid-user 
     43        ProxyPass http://localhost:8080/ 
     44        ProxyPassReverse http://localhost:8080/ 
     45    </location> 
     46 
     47</VirtualHost> 
     48 
     49}}} 
     50 
     51Create link to ''/etc/apache2/sites-available/deepamehta'' in ''/etc/apache2/sites-enabled'' and restart the webserver ... 
     52