Forums

Resolved
0 votes
Hello all,
I've an internet domain and I added a dns entry to connect to my nextcloud appliance. the dns is like cloud.mywebsite.com.
In my /etc/httpd/conf./ folder, I added a new .conf file including the following orders :

<VirtualHost *:80>
ServerName cloud.MyWebSite.com
ServerAlias MyClient.poweredbyclear.com

# Redirect permanent / http://MyClient.poweredbyclear.com/nextcloud

ProxyRequests On
ProxyPreserveHost On

ProxyPass / http://MyClient.poweredbyclear.com/nextcloud/
ProxyPassReverse / http://MyClient.poweredbyclear.com/nextcloud/

# ----------------------------------------
TransferLog /var/log/httpd/cloud_log
ErrorLog /var/log/httpd/error_cloud_log
</VirtualHost>


of course, it doesnt work ;) as I'm really not a guru in http redirection, could you point me to the right direction ? and is there a way in the same file to redirect http to https to connect to my cloud ?
thanks to all for your help
Arnaud
Tuesday, April 16 2019, 05:50 PM
Share this post:
Responses (1)
  • Accepted Answer

    Tuesday, April 16 2019, 08:12 PM - #Permalink
    Resolved
    0 votes
    If you're just trying po pass http or https traffic through to a different machine, there is the ProxyPass app which helps you do it, but I think it is only for ports 80 and 443.
    The reply is currently minimized Show
Your Reply