[Owncloud] A little Problem

Artem Sidorenko artem at 2realities.com
Tue Jul 10 10:34:34 UTC 2012


Apache configuration flag for this is ProxyPreserveHost.
It's not my favorite way, because if you are using virtualhosts you 
have to configure an alias with additional host header on the web 
server. So it's not really a transparent proxy anymore.

On 2012-07-10 12:05, Eugene Agafonov wrote:
> 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
>
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud




More information about the Owncloud mailing list