Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Nginx plugin as a webserver to serve directory
« previous
next »
Print
Pages: [
1
]
Author
Topic: Nginx plugin as a webserver to serve directory (Read 1652 times)
stanthewizzard
Jr. Member
Posts: 68
Karma: 1
Nginx plugin as a webserver to serve directory
«
on:
February 22, 2021, 03:37:58 pm »
Hello All
I would like to use the nginx plugin as a simple webserver to list a directory and make file donwloadable.
I don't understand how.
Thank you very much
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Nginx plugin as a webserver to serve directory
«
Reply #1 on:
February 22, 2021, 04:03:02 pm »
hi
don't think it's possible via GUI only.
you can create a location without specifying upstream via GUI, but the rest of the configuration will have to be done by hands via the hook in location block
Logged
stanthewizzard
Jr. Member
Posts: 68
Karma: 1
Re: Nginx plugin as a webserver to serve directory
«
Reply #2 on:
February 22, 2021, 06:36:44 pm »
oooh god
Any idea how ?
thank you
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Nginx plugin as a webserver to serve directory
«
Reply #3 on:
February 22, 2021, 07:34:23 pm »
need to add hook to location template (like
https://forum.opnsense.org/index.php?topic=21154.msg99523#msg99523
)
then create dir(s) for your location(s) post conf file(s) and put your conf(s) with needed directives there.
(
https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/
)
and also
https://docs.opnsense.org/manual/how-tos/nginx_hosting.html
but, if i may, imho the fact that it is technically possible does not make it a better idea
«
Last Edit: February 23, 2021, 11:29:10 am by Fright
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Nginx plugin as a webserver to serve directory