httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Muller <jmul...@ARCcorp.com>
Subject RE: [users@httpd] How to get notify on new releases
Date Fri, 23 Dec 2016 21:45:59 GMT

Happy Holidays !

I am trying to implement an eror page server using mod_rewrite.  The basic premise is that
if the Apache proxies for our application go down, the network load balancer will redirect
traffic to this Apache server.  The server will pop up an application specific message, depending
on the value of %{HTTP_HOST}

So for example, inside our htdocs I may have the follow:

/weberror
                              App1.domain.com/
                                                                           error.html
                                                                           images/
                                                                                         
image.jpg
                                                                                         
style.css
                              App2.domain.com/
                                                                           error.html
                                                                           Images/
                                                                                         
Image.jpg
                                                                                         
Style.css




I receive the error.html in my browser, but the problem is any image or CSS files linked to
and referred from the error.html are not being evaluated and returned.

Any help or advice would be appreciated.  I am fairly new to Apache, and mod_write.  Config
and logs are below:

<VirtualHost A.B.C.D:6443>
ServerName intgerror.domain com
ServerAlias intgsfms.domain.com
Include conf-intgerror-1/extra/httpd-ssl.conf
SSLEngine On

RewriteCond expr "! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'"
RewriteRule ^(.*)$ "%{DOCUMENT_ROOT}/weberror/%{HTTP_HOST}/error.html"

RewriteCond expr "%{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'"
RewriteRule %{REQUEST_URI} "%{DOCUMENT_ROOT}/weberror/%{HTTP_HOST}/%{REQUEST_URI}"

</VirtualHost>


[Fri Dec 23 16:29:59.191819 2016] [rewrite:trace1] [pid 27994:tid 140330801940224] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c011bc0/initial]
go-ahead with /usr/local/apache2/htdocs/weberror/app1.domain.com/error.html [OK], referer:
https://
portal.domain.com/PortalApp/ARCGateway.portal?_nfpb=true&_st=&_pageLabel=ARC_Home&_nfls=false
[Fri Dec 23 16:29:59.318682 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): GET /css/sims_error.css
HTTP/1.1\r\n
[Fri Dec 23 16:29:59.318694 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Host: app1.domain.com\r\n
[Fri Dec 23 16:29:59.318703 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Connection: keep-alive\r\n
[Fri Dec 23 16:29:59.318730 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): User-Agent: Mozilla/5.0
(Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36\r\n
[Fri Dec 23 16:29:59.318739 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Accept: text/css,*/*;q=0.1\r\n
[Fri Dec 23 16:29:59.318747 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Referer: https://app1.domain.com/\r\n
[Fri Dec 23 16:29:59.318755 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Accept-Encoding: gzip,
deflate, sdch, br\r\n
[Fri Dec 23 16:29:59.318764 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Accept-Language: en-US,en;q=0.8\r\n
[Fri Dec 23 16:29:59.318772 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Cookie: TLTSID=960CFC0EC95510C9DDE995BA901729C4;
TLTUID=960CFC0EC95510C9DDE995BA901729C4; __utmt=1; CTSESSION=AAAAAgABAEAGphwMwZFX7
W4v5oAerrHpWuAW7j7Z1Ka3drxzNI1ozEFQf8UV31sK05Bfn0V4iB%2BaRuYPG0JTkELaZZGFUEcg; TLTHID=F4303DD6C95610C99701AD5111D360B7;
__utma=239853532.1552551237.1482528011.1482528011.1482528011.1; __utmb=239853532.10.10.1482528011;
__utmc=239853532; __utmz=239853532.1482528011.1.1.utmcsr=(direct)|utmccn=(direct)
|utmcmd=(none)\r\n
[Fri Dec 23 16:29:59.318785 2016] [dumpio:trace7] [pid 27994:tid 140330803525376] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): \r\n
[Fri Dec 23 16:29:59.318806 2016] [rewrite:trace2] [pid 27994:tid 140330803525376] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c00e150/initial]
init rewrite engine with requested uri /css/sims_error.css, referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.318815 2016] [rewrite:trace3] [pid 27994:tid 140330803525376] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c00e150/initial]
applying pattern '^(.*)$' to uri '/css/sims_error.css', referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.318823 2016] [rewrite:trace4] [pid 27994:tid 140330803525376] util_expr_eval.c(860):
[client 192.168.1.2:16136] Evaluation of expression from /usr/local/apache2/conf-intgerror-1/httpd.conf:548
gave: 1, referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.318829 2016] [rewrite:trace4] [pid 27994:tid 140330803525376] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c00e150/initial]
RewriteCond: input='(null)' pattern='! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'' =>
not-match
ed, referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.318833 2016] [rewrite:trace3] [pid 27994:tid 140330803525376] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c00e150/initial]
applying pattern '%{REQUEST_URI}' to uri '/css/sims_error.css', referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.318838 2016] [rewrite:trace1] [pid 27994:tid 140330803525376] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c00e150/initial]
pass through /css/sims_error.css, referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.324066 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): GET /img/ARC_logo.gif
HTTP/1.1\r\n
[Fri Dec 23 16:29:59.324077 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Host: app1.domain.com\r\n
[Fri Dec 23 16:29:59.324090 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Connection: keep-alive\r\n
[Fri Dec 23 16:29:59.324099 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): User-Agent: Mozilla/5.0
(Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36\r\n
[Fri Dec 23 16:29:59.324108 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Accept: image/webp,image/*,*/*;q=0.8\r\n
[Fri Dec 23 16:29:59.324116 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Referer: https://app1.domain.com/\r\n
[Fri Dec 23 16:29:59.324124 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Accept-Encoding: gzip,
deflate, sdch, br\r\n
[Fri Dec 23 16:29:59.324133 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Accept-Language: en-US,en;q=0.8\r\n
[Fri Dec 23 16:29:59.324141 2016] [dumpio:trace7] [pid 27994:tid 140330804053760] mod_dumpio.c(103):
[client 192.168.1.2:16136] mod_dumpio:  dumpio_in (data-TRANSIENT): Cookie: TLTSID=960CFC0EC95510C9DDE995BA901729C4;
TLTUID=960CFC0EC95510C9DDE995BA901729C4; __utmt=1; CTSESSION=AAAAAgABAEAGphwMwZFX7
W4v5oAerrHpWuAW7j7Z1Ka3drxzNI1ozEFQf8UV31sK05Bfn0V4iB%2BaRuYPG0JTkELaZZGFUEcg; TLTHID=F4303DD6C95610C99701AD5111D360B7;
__utma=239853532.1552551237.1482528011.1482528011.1482528011.1; __utmb=239853532.10.10.1482528011;
__utmc=239853532; __utmz=239853532.1482528011.1.1.utmcsr=(direct)|utmccn=(direct)
|utmcmd=(none)\r\n
[Fri Dec 23 16:29:59.324168 2016] [rewrite:trace2] [pid 27994:tid 140330804053760] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c011bc0/initial]
init rewrite engine with requested uri /img/ARC_logo.gif, referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.324173 2016] [rewrite:trace3] [pid 27994:tid 140330804053760] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c011bc0/initial]
applying pattern '^(.*)$' to uri '/img/ARC_logo.gif', referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.324179 2016] [rewrite:trace4] [pid 27994:tid 140330804053760] util_expr_eval.c(860):
[client 192.168.1.2:16136] Evaluation of expression from /usr/local/apache2/conf-intgerror-1/httpd.conf:548
gave: 1, referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.324184 2016] [rewrite:trace4] [pid 27994:tid 140330804053760] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c011bc0/initial]
RewriteCond: input='(null)' pattern='! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'' =>
not-match
ed, referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.324188 2016] [rewrite:trace3] [pid 27994:tid 140330804053760] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c011bc0/initial]
applying pattern '%{REQUEST_URI}' to uri '/img/ARC_logo.gif', referer: https://app1.domain.com/
[Fri Dec 23 16:29:59.324192 2016] [rewrite:trace1] [pid 27994:tid 140330804053760] mod_rewrite.c(476):
[client 192.168.1.2:16136] 192.168.1.2 - - [app1.domain.com/sid#be22d0][rid#7fa13c011bc0/initial]
pass through /img/ARC_logo.gif, referer: https://app1.domain.com/


Mime
View raw message