Changeset 25290 in main


Ignore:
Timestamp:
05/25/22 17:54:25 (5 weeks ago)
Author:
Paul Leo
Message:

Adding a www.hhdw.org host to port 80, which will redirect to https://hhdw.org

File:
1 edited

Legend:

Unmodified
Added
Removed
  • adopters/hi/trunk/src/main/apache_httpd_configs/proxy_external/extra/httpd-vhosts.conf

    r25279 r25290  
    3434<VirtualHost 10.0.0.231:80>
    3535        ServerName hhdw.org
    36         ServerAlias www.hhdw.org
    3736        ####Protocols h2 http/1.1
    3837        Protocols http/1.1
     
    4443        ErrorLog "|bin/rotatelogs.exe -l -v -n 14 logs/hhdw_80_error.log 86400"
    4544        CustomLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/hhdw_80_access.log 86400" combined
     45</VirtualHost>
    4646
    47 #####   #### Reverse proxy for this virtual host ####
    48 #####           
    49 #####   ProxyPreserveHost on
    50 #####   ProxyRequests off
    51 #####   
    52 #####   ##### Password Protect hhdw.org (in this case staging.ibis.dataphilesconsulting.com)
    53 #####   ##### Password is HHDWtest2022
    54 #####   
    55 #####   <Proxy *>
    56 #####           Require all granted
    57 #####           ####AuthType Basic
    58 #####           ####AuthName "Test, enter username and password for access"
    59 #####           ####AuthBasicProvider file
    60 #####           ####AuthUserFile "C:\Apache-2.4.53\conf\testhhdw.txt"
    61 #####           ####Require user hhdw
    62 #####           #####Require not ip 20.122.59.58
    63 #####   </Proxy>
    64 #####   RequestHeader set X-Forwarded-Proto "https"
    65 #####   RequestHeader set X-Forwarded-Port "443"               
    66 #####   #### do not proxy the following, but let httpd respond, these directories are Apache httpd related
    67 #####   #### they are also restricted to certain hosts at bottom of http.conf file
    68 #####   
    69 #####   ProxyPass "/server-status" "!"
    70 #####   ProxyPass "/md-status" "!"
    71 #####   ProxyPass "/.svn" "!"
    72 #####   ProxyPass "/nmibis-admin" "!"
    73 #####   ProxyPass "/xmlrpc.php" "!"
    74 #####   ProxyPass "/wp-cron.php" "!"
    75 #####   ###ProxyPass "/wp-login.php" "!"
    76 #####   
    77 #####   ####
    78 #####   ProxyPass /report/ http://10.0.1.108/report/
    79 #####   ProxyPassReverse /report/ http://10.0.1.108/report/
    80 #####   ProxyPassReverseCookieDomain 10.0.1.108/report/ /report/
    81 #####   ProxyPassReverseCookiePath "/report/" "/report/"
    82 #####   
    83 #####   ProxyPass / http://10.0.1.108/
    84 #####   ProxyPassReverse / http://10.0.1.108/
    85 #####   ProxyPassReverseCookiePath "/" "/"
    86 #####                   
     47############### PORT 80 VirtualHost http://www.hhdw.org #####
     48<VirtualHost 10.0.0.231:80>
     49        ServerName www.hhdw.org
     50        ####Protocols h2 http/1.1
     51        Protocols http/1.1
     52###### Redirecting to https:
     53        Redirect / https://hhdw.org/
     54        RewriteCond %{SERVER_NAME} =www.hhdw.org
     55    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE]
     56       
     57        ErrorLog "|bin/rotatelogs.exe -l -v -n 14 logs/hhdw_www_80_error.log 86400"
     58        CustomLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/hhdw_www_80_access.log 86400" combined
    8759</VirtualHost>
     60
    8861       
    8962############### VirtualHost https://hhdw.org ###############
Note: See TracChangeset for help on using the changeset viewer.