So, I have created an owncloud instance and I want to be able to access it from the outside network (it works just fine on the itnernal) but an older administrator had created a "reverse proxy" (he mentioned it before) so I'm trying to understand his mess...
So, we have a domain with godaddy, domain.com in which I already added the owncloud.domain.com, so that part is good, now going to the reverse proxy..
- Server 1 - Reverse proxy is on the DMZ
Server 1 - Has Wordpress on itself with ssl
Server 2 - Owncloud server is on the LAN
- Server 2 - has ssl keys on itself
When I login to domain.com I get my wordpress site, which is great. But when I go to owncloud.domain.com then I get the error on chrome : ERR_SSL_PROTOCOL_ERROR
I have tried many things without success, I hope somebody can point me into the right direction.
Here are the VirtualHosts under sites-enabled:
OwnCloud
<VirtualHost *:80>
ServerName owncloud.domain.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass owncloud.domain.com
ProxyPassReverse owncloud.domain.com
</Location>
</VirtualHost>
DOmain (wordpress site)
<VirtualHost *:80>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot /etc/httpd/htdocs/wordpress-new
DirectoryIndex index.php
<Directory />
Options None
Order deny,allow
Deny from all
AllowOverride None
</Directory>
<Directory /etc/httpd/htdocs/wordpress-new>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
Order allow,deny
</FilesMatch>
RewriteEngine on
RewriteLog logs/rewritelog
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value encoding_translation 0
</IfModule>
</VirtualHost>
Any help will be much much appreciated!!!