Install SSL with ngnix for apache server

  • Hello,


    i'am trying to install some compose docker apache / phpmyadmin / sql with an ssl cerficate with ngnix.


    i don't know how to modify config files to have all working.


    i tried to change some ports in apache config but without sucess.


    thank's in advance


    server apache config:


    NGNIX file

  • Hello,

    Thank you for your reply


    my OMV port is 8888


    i change many ports


    http://192.168.0.170:11000/ don't work

    http://192.168.0.170:81/ ngnix portal

    http://192.168.0.170:80/ welcome to ngnix portal "log in to portal ..."

    http://192.168.0.170:83/ phpmyadmin login

    http://192.168.0.170:82/ don't work





  • Is it baremetal install? What kind of network “developarea” is?

    It looks nginx is not using this network, am I right? If so, are containers able to communicate?

    It looks port 82 is not in use by listed containers so it don’t work (or maybe it is used by something else?)

    Kind of complex deployment :)

    P.

  • hello


    i modify some settings, port 82, and apache port to 111000:80





    http://192.168.0.170:81/ ngnix portal

    http://192.168.0.170:80/ welcome to ngnix portal "log in to portal ..."

    http://192.168.0.170:82/ phpmyadmin login

    http://192.168.0.170:11000/ is my website


    https://*******.fr is my website



    it works (i must test several other)

    now i must set proftp to acess my www folder

  • hello


    after many difficults now i'am trying to connect with my db with my index.php.



    every time i have an error when i'am trying to connect at the db.


    index.php:

    $conn = new mysqli($DB_DSN, $DB_USER, $DB_PASSWORD, $dbname);

    i also tried:

    $conn = new mysqli($MYSQL_DATABASE, $MYSQL_USER, $MYSQL_PASSWORD, $MYSQL_DATABASE);

    or

    $conn = new mysqli(localhost, sql_user, *************,sql_data);










    compose environnement file:



    compose apache




    docker files: apachephpcontainer

    Zitat

    FROM php:7.4-apache

    RUN docker-php-ext-install mysqli



    nginx

  • Acetone802000

    Hat das Label OMV 6.x hinzugefügt.
  • Acetone802000

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!