[Owncloud] A little Problem
Eugene Agafonov
e.a.agafonov at gmail.com
Tue Jul 10 10:05:00 UTC 2012
Hi!
Here is my 5 cents...
I've faced the same issue and it is solved by passing original 'Host'
HTTP header from client to backend server.
I'm using nginx as reverse proxy so it is fixed by adding
proxy_set_header line.
location /owncloud {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8082;
}
BR, Eugene Agafonov
On 07/10/2012 12:51 PM, Artem Sidorenko wrote:
> Can you show your configs for mod_proxy?
> Something like that?
> <VirtualHost *:80>
> Servername owncloud.internet
> ....
> ProxyPass / http://owncloud.intranet:8001/
> ProxyPassReverse / http://owncloud.internet/
> ....
> </VirtualHost>
> With similar settings for https.
> ProxyPassReverse should take care about Location headers.
> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypassreverse
>
> Regards,
> Artem
>
>
> On 2012-07-10 9:54, Schnee wrote:
>> Hello
>>
>> I installed ownCloud on a server on my comapny's intranet.
>> Everything works as exspected. In the next step ownCloud should be
>> reachable
>> from the internet.
>>
>> ___ ___ ___ ____
>> |(1)|--------->|(2)|----------->|(3)|---------->|(4)|
>> |(1)| |(2)| |(3)| |(4)|
>> |_(1)_|<---------|_(2)_|<-----------|_(3)_|<----------|_(4)_|
>>
>> (1) = Browser/Client
>> (2) = Firewall
>> (3) = Reserve Proxy
>> (4) = Webserver/ownCloud
>>
>>
>> There is a firewall separating our intranet from the internet. A
>> reverse proxy handles all incoming HTTP-requests and directs them to
>> the correct server. We use an apache and mod_proxy to achieve this.
>>
>> When trying to access my ownCloud-server from the interent I am
>> correctly redirected to the login screen. After giving to correct
>> username/password the ownCloud server issues a Redirect to its
>> intranet address making it impossible to access the server from
>> internet.
>>
>> I'm completely stuck! Any hints are welcome!
>>
>> Greetings
>>
>> Paul
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
More information about the Owncloud
mailing list