[GH-ISSUE #401] Serve static content through Nginx #303

Closed
opened 2026-02-27 16:38:47 +03:00 by kerem · 2 comments
Owner

Originally created by @michelkaeser on GitHub (Aug 29, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/401

As the /static directory does not contain any files that would need login protection etc. the files should be served directly by Nginx (reduces load on app, faster).

The following location block can be used for that:

location /static/ {
    root /srv/www/webvirtmgr/; // or /var instead of /srv
    expires max;
}

PS: The official WebVirtMgr website is very out-of-date and may lead to wrong information about WebVirtMgr when reading through it. You might consider either updating it or simply redirect to this repo. Just a hint :)

Originally created by @michelkaeser on GitHub (Aug 29, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/401 As the `/static` directory does not contain any files that would need login protection etc. the files should be served directly by Nginx (reduces load on app, faster). The following location block can be used for that: ``` location /static/ { root /srv/www/webvirtmgr/; // or /var instead of /srv expires max; } ``` PS: The official WebVirtMgr website is very out-of-date and may lead to wrong information about WebVirtMgr when reading through it. You might consider either updating it or simply redirect to this repo. Just a hint :)
kerem closed this issue 2026-02-27 16:38:47 +03:00
Author
Owner

@retspen commented on GitHub (Aug 31, 2014):

I added this to wiki. WebVirtMgr site and WebVirtMgr panel are different projects. WebVirtMgr site like SaaS for your server if they have insternet connection. I don't have free time for updating now.

<!-- gh-comment-id:53998101 --> @retspen commented on GitHub (Aug 31, 2014): I added this to wiki. WebVirtMgr site and WebVirtMgr panel are different projects. WebVirtMgr site like SaaS for your server if they have insternet connection. I don't have free time for updating now.
Author
Owner

@michelkaeser commented on GitHub (Sep 1, 2014):

Ah OK :) Closing this as it was for the location block. Thx

<!-- gh-comment-id:54037320 --> @michelkaeser commented on GitHub (Sep 1, 2014): Ah OK :) Closing this as it was for the location block. Thx
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#303
No description provided.