Keep Track of Virtual Hosts on a shared Linux server #4405

Closed
opened 2025-12-29 18:35:43 +01:00 by adam · 3 comments
Owner

Originally created by @astukestarr on GitHub (Dec 24, 2020).

Mayber there is a way to do this in the current config and I just dont see it.

Environment

  • Python version: python3
  • NetBox version: 2.10.2

Proposed Functionality

I'd like to track virtual servers inside a VM, so I might have a Physical server, then a web server, but inside the web server there are multiple virtual hosts for different websites, like abc.com and def.com. It seems like we would have to add another level to drill down to.

Use Case

I'm trying to track where an email account may be hosted, or a website. So you might have a Host, then VM, then Domains inside that vm. You might have an different Virtual host if their email is in a different place than the website.

Database Changes

I don't know, I'm not a programmer

External Dependencies

Originally created by @astukestarr on GitHub (Dec 24, 2020). Mayber there is a way to do this in the current config and I just dont see it. ### Environment * Python version: python3 * NetBox version: 2.10.2 ### Proposed Functionality I'd like to track virtual servers inside a VM, so I might have a Physical server, then a web server, but inside the web server there are multiple virtual hosts for different websites, like abc.com and def.com. It seems like we would have to add another level to drill down to. ### Use Case I'm trying to track where an email account may be hosted, or a website. So you might have a Host, then VM, then Domains inside that vm. You might have an different Virtual host if their email is in a different place than the website. ### Database Changes I don't know, I'm not a programmer ### External Dependencies
adam added the pending closure label 2025-12-29 18:35:43 +01:00
adam closed this issue 2025-12-29 18:35:43 +01:00
Author
Owner

@candlerb commented on GitHub (Jan 4, 2021):

(Aside: this probably ought to be changed to "Discussion" rather than "Issue")

The way I recommend modelling this is with "Services". Go to a device or VM, and:

  • add service abc.com, TCP port 443
  • add service def.com, TCP port 443

The UI allows multiple instances of the same protocol+port, although it doesn't allow this to be left empty.

Unfortunately you can't search for "abc.com" in a global search; but if you go to IPAM > Services you can search there.

@candlerb commented on GitHub (Jan 4, 2021): (Aside: this probably ought to be changed to "Discussion" rather than "Issue") The way I recommend modelling this is with "Services". Go to a device or VM, and: - add service abc.com, TCP port 443 - add service def.com, TCP port 443 The UI allows multiple instances of the same protocol+port, although it doesn't allow this to be left empty. Unfortunately you can't search for "abc.com" in a global search; but if you go to `IPAM > Services` you can search there.
Author
Owner

@DanSheps commented on GitHub (Jan 5, 2021):

As @candlerb mentioned, this is the way to model it. It more closely follows the actual configuration in Apache/NGINX as well.

@DanSheps commented on GitHub (Jan 5, 2021): As @candlerb mentioned, this is the way to model it. It more closely follows the actual configuration in Apache/NGINX as well.
Author
Owner

@stale[bot] commented on GitHub (Jan 20, 2021):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@stale[bot] commented on GitHub (Jan 20, 2021): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4405