[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: [users@httpd] Re: Domain level subdirectories needed
From: Pankaj Singh <panks00 () gmail ! com>
Date: 2018-04-17 11:52:09
Message-ID: CAN1SbprSH-YRT9w9scOeumNVL3eoV36Crvd9yDGZULMwxwiFXQ () mail ! gmail ! com
[Download RAW message or body]
Currently the requests are not passing through, hence would request your
help on this.
Please suggest.
Thanks
Pankaj
On Tue, Apr 17, 2018 at 5:09 PM, Pankaj Singh <panks00@gmail.com> wrote:
> Hi Team,
>
> We need to append multiple subdirectories and the content should be serve
> from some other container where we proxied the request.
>
> <VirtualHost *:80>
> <Proxy *>
> Order deny,allow
> Allow from all
> RewriteEngine On
> RewriteRule ^(.*)$ https://domain.example.com [R=301,L]
> </Proxy>
>
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName domain.example.com
>
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
>
> SSLEngine On
> SSLProxyEngine On
> SSLCertificateFile /etc/apache2/ssl/speedy.marriott.com.crt
> SSLCertificateKeyFile /etc/apache2/ssl/speedy.marriott.com.key
> <Location "/groups/">
> #RewriteRule ^/groups/(.*) /$1 [P,R]
> #ProxyPass http://10.224.222.15:29956/
> #</Location>
> RewriteCond %{REQUEST_URI} ^/groups/index.html
> RewriteRule ^/groups/?$ http://10.224.222.15:29956/ [P,L]
>
> ProxyRequests Off
> ProxyPreserveHost On
> ProxyPass / http://10.224.222.15:29956/
> ProxyPassReverse / http://10.224.222.15:29956/
> </Location>
> </VirtualHost>
>
> RewriteCond https://speedy.marriott.com:29290 !^/aries/
> RewriteRule ^(.*)$ /$1 [L]
>
> location /webinterface {
> rewrite ^/webinterface(/.*)$ $1 break;
> proxy_pass https://XXXXXXXX:XXXXX;
>
>
> The request doesn't seems to passthrough.to the destination container on
> 10.224.222.15:29956, 10.224.222.15:29957 and 10.224.222.15:29958
>
> URL: http://domain.example.com/group1
> http://domain.example.com/group2
> http://domain.example.com/group3
>
> The domain name should be same for all of them.
>
> Thanks
> Pankaj
>
>
[Attachment #3 (text/html)]
<div dir="ltr">Currently the requests are not passing through, hence would request \
your help on this.<div><br></div><div>Please \
suggest.</div><div><br></div><div>Thanks</div><div>Pankaj<br><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 17, 2018 at 5:09 PM, \
Pankaj Singh <span dir="ltr"><<a href="mailto:panks00@gmail.com" \
target="_blank">panks00@gmail.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Team,<div><br></div><div>We need to append \
multiple subdirectories and the content should be serve from some other container \
where we proxied the request.</div><div><br></div><div><div><VirtualHost \
*:80></div><div> <Proxy *></div><div> Order \
deny,allow</div><div> Allow from all</div><div> RewriteEngine \
On</div><div> RewriteRule ^(.*)$ <a href="https://domain.example.com" \
target="_blank">https://domain.example.com</a> [R=301,L]</div><div> \
</Proxy></div><div><br></div><div></VirtualHost></div><div><br></div><div><VirtualHost \
*:443></div><div> ServerName <a href="http://domain.example.com" \
target="_blank">domain.example.com</a></div><div><br></div><div> <Proxy \
*></div><div> Order deny,allow</div><div> Allow from \
all</div><div> </Proxy></div><div><br></div><div> SSLEngine \
On</div><div> SSLProxyEngine On</div><div> SSLCertificateFile \
/etc/apache2/ssl/speedy.<wbr>marriott.com.crt</div><div> SSLCertificateKeyFile \
/etc/apache2/ssl/speedy.<wbr>marriott.com.key</div><div><Location \
"/groups/"></div><div>#RewriteRule ^/groups/(.*) /$1 \
[P,R]</div><div>#ProxyPass <a href="http://10.224.222.15:29956/" \
target="_blank">http://10.224.222.15:29956/</a></div><div>#</Location></div><div>RewriteCond \
%{REQUEST_URI} ^/groups/index.html</div><div>RewriteRule ^/groups/?$ <a \
href="http://10.224.222.15:29956/" target="_blank">http://10.224.222.15:29956/</a> \
[P,L]</div><div><br></div><div> ProxyRequests Off</div><div> \
ProxyPreserveHost On</div><div> ProxyPass / <a \
href="http://10.224.222.15:29956/" \
target="_blank">http://10.224.222.15:29956/</a></div><div> ProxyPassReverse / <a \
href="http://10.224.222.15:29956/" \
target="_blank">http://10.224.222.15:29956/</a></div><div></Location></div><div></VirtualHost></div><div><br></div><div>RewriteCond \
<a href="https://speedy.marriott.com:29290" \
target="_blank">https://speedy.marriott.com:<wbr>29290</a> \
!^/aries/</div><div>RewriteRule ^(.*)$ /$1 [L]</div><div><br></div><div>location \
/webinterface {</div><div> rewrite ^/webinterface(/.*)$ $1 break;</div><div> \
proxy_pass https://XXXXXXXX:XXXXX;</div></div><div><br></div><div><br></div><div>The \
request doesn't seems to <a href="http://passthrough.to" \
target="_blank">passthrough.to</a> the destination container on <span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a \
href="http://10.224.222.15:29956" target="_blank">10.224.222.15:29956</a>,
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-sty \
le:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;lette \
r-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:norm \
al;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a \
href="http://10.224.222.15:29957" target="_blank">10.224.222.15:29957</a> and
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-sty \
le:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;lette \
r-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:norm \
al;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a \
href="http://10.224.222.15:29958" \
target="_blank">10.224.222.15:29958</a></span></span></span></div><div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">URL: \
<a href="http://domain.example.com/group1" \
target="_blank">http://domain.example.com/<wbr>group1</a></span></div><div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a \
href="http://domain.example.com/group2" \
target="_blank">http://domain.example.com/<wbr>group2</a></span></div><div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a \
href="http://domain.example.com/group3" \
target="_blank">http://domain.example.com/<wbr>group3</a></span></div><div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div>The \
domain name should be same for all of \
them.</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font \
color="#888888"><div>Pankaj</div><div><br></div></font></span></div> \
</blockquote></div><br></div></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic