Apache Derivatives mask a docker path or url with an ispconfig domain

Discussion in 'HOWTO-Related Questions' started by senormedia, Nov 26, 2019.

  1. senormedia

    senormedia New Member

    I have docker installed in the same server as ispconfig and wanted to know how do i create a domain using ispconfig to show the content of a docker container or show mydomain.com using http://ipadresss:9000

    I did a Document root on the apache derivatives but it said i do not have enough privilages

    i pretty much want to mask a docker path or url with an ispconfig domain that way it shows mydomain.com with my only office
  2. Steini86

    Steini86 Active Member

    Create the domain as usual and use a proxy directive to hide the docker thing

    In your websites -> Options -> Apache directives
    ProxyPass /.well-known !
    ProxyPass "/" "http://ipadress:9000/"
    ProxyPassReverse "/" "http://ipadress:9000/"
  3. senormedia

    senormedia New Member

    thank you that worked just having problem with content security polocy

    messgae by onlyoffice in next cloud only office is not working for Content Security Policy: The page’s settings blocked the loading of a resource

    is there a way to allow cross origin or
    Last edited: Nov 26, 2019
  4. senormedia

    senormedia New Member

    So the fix worked the problem is not adding https its still http when it makes it the new domain

    added this but still not working
    ServerName sub.domain.com
    ProxyPass /.well-known !
    ProxyPass "/" ""
    ProxyPassReverse "/" ""
    RedirectMatch ^/$ https://sub.domain.com
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/sub.domain.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/sub.domain.com/privkey.pem
    Last edited: Nov 26, 2019
  5. Steini86

    Steini86 Active Member

    I would suggest to activate SSL via the ispconfig panel.
  6. senormedia

    senormedia New Member

    ssl is activated, i added the certs from ispconfig on the derivatives like the example above

    redirects to http once it goes to another page
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Probably the links that the atrget system displays use http then? Maybe you can add https support to the procxy target as well or reconfigure the software in the proxy target to use https urls?
  8. senormedia

    senormedia New Member

    Gotcha, ill try that ill redo a tutorial on it

    what i am trying to do is use only office with a domain set up in ispconfig, but if this works, i can finish the module that lets use docker with ispconfig to control containers

    Ill try to see if the current code works with another docker container like wordpress

    maybe its just onlyoffice that is causing the problem

    Also does docker slow your email down, after installing docker my debian buster 10 server is going really slow

Share This Page