Changeset 25319 in main


Ignore:
Timestamp:
06/05/22 08:29:22 (3 weeks ago)
Author:
Paul Leo
Message:

Current working proxy configuration

Location:
adopters/nm/trunk/src/main/serverconfigs/dmzr2nmibis001/apache_httpd_reverse_proxy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • adopters/nm/trunk/src/main/serverconfigs/dmzr2nmibis001/apache_httpd_reverse_proxy/extra/httpd-vhosts.conf

    r25246 r25319  
    1717###### VirtualHost ibis.health.state.nm.us  #######
    1818###### redirecting of old DNS name to new DNS name (ibis.doh.nm.gov) ######
    19 ##### Uncomment when have DNS ENTRY
    20 #####   <VirtualHost 10.100.2.16:443>
    21 #####           ServerName ibis.health.state.nm.us
    22 #####           #### use http2, and permit acme to just use 443
    23 #####           #### Protocols h2 http/1.1
    24 #####           Protocols h2 http/1.1 acme-tls/1
    25 #####          
    26 #####           SSLEngine on
    27 #####
    28 #####           ErrorLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/old_ibis_error.log 86400"
    29 #####           CustomLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/old_ibis_access.log 86400" combined
    30 #####
    31 #####           ######## This server is listening for ibis.health.state.nm.us It should redirect to ibis.doh.nm.gov/Alert.html
    32 #####           RedirectMatch ".*" https://ibis.doh.nm.gov/Alert.html
    33 #####           Redirect / https://ibis.doh.nm.gov/Alert.html
    34 #####          
    35 #####   </VirtualHost>
     19
     20<VirtualHost 10.100.2.15:443>
     21        ServerName ibis.health.state.nm.us
     22        #### use http2, and permit acme to just use 443
     23        #### Protocols h2 http/1.1
     24        Protocols h2 http/1.1 acme-tls/1
     25       
     26        SSLEngine on
     27
     28        ErrorLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/old_ibis_error.log 86400"
     29        CustomLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/old_ibis_access.log 86400" combined
     30
     31       
     32        RedirectMatch ".*" https://ibis.doh.nm.gov/Alert.html
     33        Redirect / https://ibis.doh.nm.gov/Alert.html
     34       
     35</VirtualHost>
    3636
    3737###### VirtualHost ibis.doh.nm.gov ######
    3838
    39 ########### CHANGE ServerName BELOW #######
    40 
    4139        <VirtualHost 10.100.2.15:443>
    42                 ServerName ibisnew.health.state.nm.us
    43 ######  ServerName ibis.doh.nm.gov 
     40                ServerName ibis.doh.nm.gov 
    4441                #### use http2, and permit acme to just use 443
    4542                #### Protocols h2 http/1.1
     
    8784               
    8885                #### Next line will eath the /nmibis-view I think, it fixes ibis.doh.nm.gov/nmibis-view/nmibis-view/Login.html error
     86                ProxyPass /ibisph-docs/ https://dohr2simnmibis2/ibisph-docs/
     87                ProxyPassReverse /ibisph-docs/ https://dohr2simnmibis2/ibisph-docs/     
    8988                ProxyPass /nmibis-view/ https://dohr2simnmibis2/nmibis-view/
    9089                ProxyPass / https://dohr2simnmibis2/nmibis-view/
    91                 ProxyPassReverse / https://dohr2simnmibis2/nmibis-view/
    92         ########Uncomment next line and delete 2nd line below prior to going live
    93 ######          ProxyPassReverseCookieDomain dohr2simnmibis2/nmibis-view/ ibis.doh.nm.gov
    94                 ProxyPassReverseCookieDomain dohr2simnmibis2/nmibis-view/ ibisnew.health.state.nm.us
     90                ProxyPassReverse / https://dohr2simnmibis2/nmibis-view/
     91                ProxyPassReverseCookieDomain dohr2simnmibis2/nmibis-view/ ibis.doh.nm.gov
    9592                ProxyPassReverseCookiePath / /
    9693                       
     
    10198###### redirecting of old DNS name to new DNS name (nmtracking.doh.nm.gov) ######
    10299
    103 ######### Uncomment when have DNS ENTRY ########
    104 ####    <VirtualHost 10.100.2.17:443>
    105 ####            ServerName nmtracking.org
    106 ####            #### use http2, and permit acme to just use 443
    107 ####            #### Protocols h2 http/1.1
    108 ####            Protocols h2 http/1.1 acme-tls/1
    109 ####           
    110 ####            SSLEngine on
    111 ####
    112 ####            ErrorLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/old_nmtracking_error.log 86400"
    113 ####            CustomLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/old_nmtracking_access.log 86400" combined
    114 ####
    115 ####            ######## This server is listening for nmtracking.org It should redirect to nmtracking.doh.nm.gov/Alert.html
    116 ####            RedirectMatch "/WildFireSmoke/" "https://nmtracking.doh.nm.gov/WildFireSmoke/"
    117 ####            RedirectMatch  "environment/air/FireAndSmoke.html" "https://nmtracking.doh.nm.gov/environment/air/FireAndSmoke.html"
    118 ####            RedirectMatch  "/environment/air/FireAndSmoke.html" "https://nmtracking.doh.nm.gov/environment/air/FireAndSmoke.html"
    119 ####            RedirectMatch ".*" https://nmtracking.doh.nm.gov/Alert.html
    120 ####            Redirect / https://nmtracking.doh.nm.gov/Alert.html
    121 ####                           
    122 ####    </VirtualHost>
     100        <VirtualHost 10.100.2.17:443>
     101                ServerName nmtracking.org
     102                #### use http2, and permit acme to just use 443
     103                #### Protocols h2 http/1.1
     104                Protocols h2 http/1.1 acme-tls/1
     105               
     106                SSLEngine on
     107
     108                ErrorLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/old_nmtracking_error.log 86400"
     109                CustomLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/old_nmtracking_access.log 86400" combined
     110
     111                ######## This server is listening for nmtracking.org It should redirect to nmtracking.doh.nm.gov/Alert.html
     112                RedirectMatch "/WildFireSmoke/" "https://nmtracking.doh.nm.gov/WildFireSmoke/"
     113                RedirectMatch "/WildFireSmoke" "https://nmtracking.doh.nm.gov/WildFireSmoke/"
     114                RedirectMatch  "environment/air/FireAndSmoke.html" "https://nmtracking.doh.nm.gov/environment/air/FireAndSmoke.html"
     115                RedirectMatch  "/environment/air/FireAndSmoke.html" "https://nmtracking.doh.nm.gov/environment/air/FireAndSmoke.html"
     116                RedirectMatch ".*" https://nmtracking.doh.nm.gov/Alert.html
     117                Redirect / https://nmtracking.doh.nm.gov/Alert.html
     118                               
     119        </VirtualHost>
    123120
    124121
    125 ############### VirtualHost nmtracknew.nmtracking.org #####
    126 ####### CHANGE ServerName BELOW #######
     122############### VirtualHost nmtracking.doh.nm.gov  #####
    127123
    128124        <VirtualHost 10.100.2.17:443>
    129                 ServerName nmtracknew.nmtracking.org
    130 ########                ServerName nmtracking.doh.nm.gov 
     125                ServerName nmtracking.doh.nm.gov 
    131126                #### use http2, and permit acme to just use 443
    132127                ##### turn offf acme Protocols h2 http/1.1 acme-tls/1
     
    152147                ProxyTimeout 300
    153148               
    154 ###########Remove any Auth*, etc and uncomment Require  ##### Password Protect NMEPHT (in this case staging.ibis.dataphilesconsulting.com)
    155                
    156149                <Proxy *>
    157 ######                  Require all granted
    158                         AuthType Basic
    159                         AuthName "Staging, enter username and password for access"
    160                         AuthBasicProvider file
    161                         AuthUserFile "C:\Apache-2.4.53\conf\nmtrackuser.txt"
    162                         Require user nmtracking
     150                        Require all granted
     151######  Remove all down to and including last Require after live for awhil             
     152                        #AuthType Basic
     153                        #AuthName "Staging, enter username and password for access"
     154                        #AuthBasicProvider file
     155                        #AuthUserFile "C:\Apache-2.4.53\conf\nmtrackuser.txt"
     156                        #Require user nmtracking
    163157                </Proxy>
    164158                       
     
    175169        ProxyPass /WildFireSmoke https://dohr2simnmibis2/WildFireSmoke
    176170        ProxyPassReverse /WildFireSmoke https://dohr2simnmibis2/WildFireSmoke
    177 ########Uncomment next line and delete 2nd line below prior to going live
    178 #######         ProxyPassReverseCookieDomain dohr2simnmibis2/WildFireSmoke/ nmtracking.doh.nm.gov/
    179                 ProxyPassReverseCookieDomain dohr2simnmibis2/WildFireSmoke/ nmtracknew.nmtracking.org/
     171                ProxyPassReverseCookieDomain dohr2simnmibis2/WildFireSmoke/ nmtracking.doh.nm.gov/
     172                #ProxyPassReverseCookieDomain dohr2simnmibis2/WildFireSmoke/ nmtracknew.nmtracking.org/
    180173                ProxyPassReverseCookiePath / /
    181174                       
     
    186179                ProxyPass / https://dohr2simnmibis2/nmepht-view/
    187180                ProxyPassReverse / https://dohr2simnmibis2/nmepht-view/
    188 ########Uncomment next line and delete 2nd line below prior to going live       
    189 #####           ProxyPassReverseCookieDomain dohr2simnmibis2/nmepht-view/ nmtracking.doh.nm.gov/
    190                 ProxyPassReverseCookieDomain dohr2simnmibis2/nmepht-view/ nmtracknew.nmtracking.org/
     181                ProxyPassReverseCookieDomain dohr2simnmibis2/nmepht-view/ nmtracking.doh.nm.gov/
    191182                ProxyPassReverseCookiePath / /
    192183                       
  • adopters/nm/trunk/src/main/serverconfigs/dmzr2nmibis001/apache_httpd_reverse_proxy/httpd.conf

    r25246 r25319  
    332332####LogLevel warn proxy:trace5
    333333#####LogLevel warn proxy:debug
    334 #####LogLevel ssl:trace5 proxy:trace5
     334####LogLevel debug ssl:trace5 proxy:trace5
    335335LogLevel warn
    336336
     
    694694
    695695<MDomain ibis.doh.nm.gov>
    696         #### MDRenewWindow Default - renewsl 36 days before it expires
     696        #### MDRenewWindow Default - renewal 36 days before it expires
    697697        MDRenewWindow 36d
    698698</MDomain>
    699 #### Uncomment when we have DNS entry
    700 ####<MDomain ibis.health.state.nm.us>
    701 ####    MDRenewWindow 36d
    702 ####</MDomain>
     699
     700<MDomain ibis.health.state.nm.us>
     701        MDRenewWindow 36d
     702</MDomain>
    703703
    704704<MDomain nmtracking.doh.nm.gov>
    705705        MDRenewWindow 36d
    706706</MDomain>
    707 #### Uncomment when we have DNS entry
    708 ####<MDomain nmtracking.org>
    709 ####    MDRenewWindow 36d
    710 ####</MDomain>
    711 
    712 
    713 
    714 ######## Will want to remove these before we go live #######
    715 
    716 <MDomain ibisnew.health.state.nm.us>
    717         #### MDRenewWindow Default - renewsl 36 days before it expires
     707<MDomain nmtracking.org>
    718708        MDRenewWindow 36d
    719709</MDomain>
    720 
    721 <MDomain nmtracknew.nmtracking.org>
    722         MDRenewWindow 36d
    723 </MDomain>
Note: See TracChangeset for help on using the changeset viewer.