Virtual host setup
February 01, 2022 05:37AM
Hello All,

first, please bear with me, I know it must be a silly question.

I have a personal NAS, OpenMediaVault, running on Debian/Nginx on my LAN.
There is specific file for the OMV webgui in /etc/nginx/sites-available.

I need to use a very simple web app, which reads the temperature from an USB sensor, so I tried to configure a Virtual Host adding such a file to sites-available:

server {
listen 80;
listen [::]:80;
server_name yocto;
root /var/www/yocto;
index index.html status.html;
location / {
try_files $uri $uri/ =404;

Configuration tested OK, symbolic link to sites-enabled done, however, only Openmediavault comes up.

I understand that what is missing is the information that points to one or the other web application when I enter

But how do I do that?

At the moment, I sorted to have OMV listen on port 81, so both work nicely at the same time, one at, the other at

Thanks for your time and comments,
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready