You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Pankaj Singh <pa...@gmail.com> on 2018/04/17 11:40:09 UTC

[users@httpd] Re: Domain level subdirectories needed

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 <pa...@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
>
>