Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
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:
Originally Posted by scott_R
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 wrote rule to redirect request came for /owncloud to ubuntu's owncloud folder. but not / to ubuntu's owncloud folder. I tested with three names localowncloud.com points to / of proxy server and it's working fine and showing apache page of proxy server whereas with same i configured local.owncloud.com and it's going to /owncloud of ubuntu . Is this " . " making much difference im confused here . As per my configuration local.owncloud.com also shoud hit only proxy server's / folder but it's not happening.
I wrote rule to redirect request came for /owncloud to ubuntu's owncloud folder. but not / to ubuntu's owncloud folder. I tested with three names localowncloud.com points to / of proxy server and it's working fine and showing apache page of proxy server whereas with same i configured local.owncloud.com and it's going to /owncloud of ubuntu . Is this " . " making much difference im confused here . As per my configuration local.owncloud.com also shoud hit only proxy server's / folder but it's not happening.
Could you please help me with this to go further.
See post #2, where you were pointed to the example in the documentation; read and follow that.
See post #2, where you were pointed to the example in the documentation; read and follow that.
Hello Thanks for your answers , but i'm not able to find is it redirection or my mistake , because same rule working differently to other domain name with same settings. i even tried with clearing caches and cookies of my browser.Could you help me in finding the issue.
Hello Thanks for your answers , but i'm not able to find is it redirection or my mistake , because same rule working differently to other domain name with same settings. i even tried with clearing caches and cookies of my browser.Could you help me in finding the issue.
No, because it's pretty clear you haven't read the documentation. Did you read/think about what you posted initially??
Quote:
Originally Posted by srennivass
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.
I have bolded four things above for emphasis and for you to re-read.
Where does Windows enter into this??
You have TWO different domains, that are POINTED TO THE SAME ADDRESS, and you're surprised that they both go to the same place?
Where did you think it was going to go? You explicitly TOLD Apache to redirect both of those domains to that one address.
Read the LQ Rules about text-speak, and not using it.
Windows is my pc and i have configured host names for respective ips.
Quote:
Originally Posted by TB0ne
No, because it's pretty clear you haven't read the documentation. Did you read/think about what you posted initially??
I have bolded four things above for emphasis and for you to re-read.
Where does Windows enter into this??
You have TWO different domains, that are POINTED TO THE SAME ADDRESS, and you're surprised that they both go to the same place?
Where did you think it was going to go? You explicitly TOLD Apache to redirect both of those domains to that one address.
Read the LQ Rules about text-speak, and not using it.
I want to clear you my configuration.
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 ???
I want to clear you my configuration.
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.
...so unless you enter these things into the actual Apache SERVER, any virtual domain stuff you do won't be effective.
Quote:
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 .
Then you need to straighten out your virtual host configuration, and follow the examples. What you posted here had one definition, not multiples, which is exactly what virtual domains are. Again, read/follow the documentation. You have errors in your configuration, and since you have posted one very small section of it, how do you think we'll be able to give you more guidance, other than telling you where an example is?
Quote:
3.Until unless i give local.owncloud.com/owncloud it should not go to ubuntu's /owncloud but it's going how ??? and Why ???
Because you, again, haven't defined your virtual hosts correctly, and cannot/should not have two domains pointing to the exact same address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.