OSDir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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 <panks00@xxxxxxxxx> 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]
#</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:2995610.224.222.15:29957 and  10.224.222.15:29958


The domain name should be same for all of them.

Thanks
Pankaj