httpd request redirection
Hello my self sernnivass
i am testing proxy on centos 7, i have made configurations like this browsing from windows . webserver configured on centos(192.*.**146) and owncloud installed on ubuntu 16 (192*.*.172) . i have configured proxy on centos to ubuntu as below <VirtualHost *:80> ProxyPreserveHost On ProxyPass /owncloud http://192.*.*.172/owncloud ProxyPassReverse /owncloud http://192.*.*.172/owncloud </VirtualHost> i have configured hosts in my windows as 192.168.1.172 testsql.com 192.168.1.146 testcen.com 192.168.1.146 local.owncloud.com when i hit testcen.com it's going to apache of centos but when i hit local.owncloud.com it's directly going to owncloud folder of ubuntu .both have same configuration then why request is going directly to owncloud instead of centos. Is there any redirection happening could you please clarify me on this. plzzzz. |
Quote:
See basic example in: https://httpd.apache.org/docs/2.4/en/mod/mod_proxy.html |
It's doing what you told it to do.
You told Apache to redirect those requests to your local network's (Ubuntu) /owncloud folder. I suspect that you want to aim it at data instead. I'd also check the owncloud security settings on the Ubuntu machine because it should have errored out instead of allowing you to see it's installation folder. |
I did proper configuration but i'm doubting " . " in name ??
Quote:
Could you please help me with this to go further. |
Quote:
|
It's not clarifying my doubt
Quote:
|
Quote:
Quote:
|
Windows is my pc and i have configured host names for respective ips.
Quote:
1.Windows is my pc and i have configured host names for respective IPs.In order to reach server just by hitting the domain names. 2.I have pointed two domains to the same IP address , and my worry is that both are not going to same place.i.e testcen.com going to proxy server's apache page and can be understood as working properly but local.owncloud.com is forwarding through proxy server and reaching the owncloud application i.e ubuntu's /owncloud folder. both are pointed to same ip i.e proxy server's apache page . 3.Until unless i give local.owncloud.com/owncloud it should not go to ubuntu's /owncloud but it's going how ??? and Why ??? |
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 02:49 AM. |