NGinx plugin on 2.0 : Problem configuration

  • Hello,


    First sorry for my bad english... :whistling:


    I've installed OMV 2.0 on my server and I want to install servers web (domotique, dokuwiki, phpmyadmin).


    I've also a routeur which redirect the 80 port number on the <ip_omv_serve>:80 port.


    On local network, I can access on domotique web by http://domotique/ url.
    I've modify my local /etc/hosts by :

    Code
    <ip_omv_server>   domotique dokuwiki phpmyadmin


    The problem is to access by internet.
    When I use <ip_extern>/domotique, I've the 404 page of NGinx (so I've access to my server NGinx but not redirect to my domotique site)


    My config NGinx is :


    Have you an idea about the solution ?


    Thanks...

  • Hi,

    On local network, I can access on domotique web by domotique/ url.


    in this case you use "domotique" as the ip address of your server.
    When receiving the http request (that includes the name "domotique") nginx "knows" which page to deliver.


    When I use <ip_extern>/domotique,


    In this case you call the servers IP and request to deliver the content of the file "domotique".
    But should deliver the content of the folder "domotique".
    Perhaps there is a "/" missing at the end.


    Did you have a look at the logs?

  • When I try url :
    <ip_externe>/domotique/


    in domotique access log :
    Nothing


    in domotique error log :
    Nothing


    in dokuwiki access_log :

    Code: /var/log/nginx/0a6ee858-2969-4964-985c-3110a0f3206a-access.log
    ::ffff:192.168.0.253 - - [15/Oct/2016:15:10:03 +0200] "-" 400 0 "-" "-"
    ::ffff:192.168.0.253 - - [15/Oct/2016:15:10:03 +0200] "GET /domotique/ HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Linux; Android 6.0.1; D6603 Build/23.5.A.1.291) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.124 Mobile
     Safari/537.36"

    in dokuwiki error log :

    Code: /var/log/nginx/0a6ee858-2969-4964-985c-3110a0f3206a-error.log
    2016/10/15 15:10:03 [error] 13031#0: *2265 "/media/bed0d7ad-351e-4280-a62f-04384254b9a6/www/dokuwiki//domotique/index.php" is not found (2: No such file or directory), client: ::ffff:192.168.0.253, server: dokuwiki, reque
    st: "GET /domotique/ HTTP/1.1", host: "<ip_externe>"


    When I try :
    <ip_externe>/dokuwiki/
    I've :
    404 page


    if I try :
    <ip_externe>/doku.php
    It's good, I see the web site.


    for information, the index.php of dokuwiki web site is :


    PHP: index.php
    <?php
    /**
     * Forwarder to doku.php
     *
     * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
     * @author     Andreas Gohr <andi@splitbrain.org>
     */
    header("Location: doku.php");
    ?>


    Is ther a link that the first virtual host in NGinx config file is for dokuwiki ?

  • Is ther a link that the first virtual host in NGinx config file is for dokuwiki ?

    Afair there is an option "default server" or similar in the nginx plugin.
    This is the server that will be used, when no domain-name is given.
    In your second case
    <ip_externe>/domotique/
    there is no domain-name given.

Jetzt mitmachen!

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