Need help with NGINX setup

  • Hello all,


    I searched whole google and didn't find any solution for my problem :( I believe that experts from this forum can help me.
    Please forgive me if there is already some guide and I didn't understood it!


    So let's start with problem:
    I'm using OMV 3 with NGINX plugin


    I have few sites available via plugin and I have my own domain redirected to server (now sites are on different ports)


    What I want to do is similar to Virtual Hosts in Apache2


    I want to serve 4 (maybe more later) sites to internet (all listening on port 80)
    my main site {let's say http://www.mydomain.com} is available from internet.
    I also have next site which I'd like to see from internet with address http://www.something.mydomain.com but I couldn't configure this with NGINX plugin.
    For other sites situation (my wish) is the same - to serve specified content with http://www.test.mydomain.com, http://www.test1.mydomain.com etc.


    I've already tried few threads and none was success :(
    I've even tried it with NGINX best practices.


    Could you please help me?
    I'll be thankful!

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

    • Offizieller Beitrag

    Did you use name-based for server type in the Servers tab? I use a similar setup myself. So, I know it works well.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Yes, I also tried it like this:


    Main site -name based, port 80, name: mydomain.com (default)
    Second site - name based, port 80, name: test.mydomain.com


    but I'm always served main site content with address test.mydomain.com and also mydomain.com


    Any other ideas? Do you wish to look into configuration?

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

    • Offizieller Beitrag

    but I'm always served main site content with address test.mydomain.com and also mydomain.com


    Any other ideas? Do you wish to look into configuration?

    Do you have dns setup? The names have to resolve properly.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • @EDIT
    I think problem isn't DNS. There must be something in configuration what I'm missing.
    Please give me some data from your nginx.conf and maybe some screenshots from plugin config.
    Did you done any "by hand" changes in configs?
    I'm a bit flustrated coz I bought domain to use this functionality - but I can't :(


    @EDIT
    DNS are properly set - I've checked it.


    Could you give me a hand with this?

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

    2 Mal editiert, zuletzt von kawu2 ()

  • I've tried several things yesterday and today and still can not solve my problem.
    Anyone can help?

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

    • Offizieller Beitrag

    I'll have to setup something. I can't post screenshots of my production setup.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • ryecoaaron please close this topic.
    My domain today refreshed whole DNS configuration and is working fine.


    If some1 will face same problem please look here:


    To setup server blocks in OMV with test.mydomain.com etc just:
    1. create new host
    2. fill all needed options
    3. user Host Type: Name-based (if you have more then one vhost you must use this option for all)
    4. use port 80
    5. Server name: test.mydomain.com


    I do not used any of my hosts as default!


    And guys, be more patient then me when buying and redirecting NEW domain! :D


    Thank you for help and please close.

    Debian 8.6 Jessie + OMV 3.0.latest Kernel: Linux 4.8.0-0.bpo.2-amd64
    Processor: Intel Core 2 Duo E8400@3GHz
    Memory: 4GB RAM
    OS-HDD: Samsung SSD 120 GB +LVM


    Full media and download center configured.


    BIG and special thanks for OMV-Extras team for great plug-ins (especially: TeamSpeak, VirtualBox, Sonarr, Radarr, and rest I use :))


    ------------------------------


    Wise guy don't know everything, he can search or ask!
    Don't ask me via PM!

Jetzt mitmachen!

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