Re: Domain level subdirectories needed

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

 



There's a lot of overlapping, partial, and unnecessary config here
including nginx config.

If you want to proxy /group1 somewhere, all it takes is the absolute
basics from the manual e.g. ProxyPass /group

Have you tried it without all the extraneous stuff? What happened?
What did the logs say?


On Tue, Apr 17, 2018 at 7:39 AM, 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]
> #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
>



-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux