स्थिर साइट्स
HTML, CSS, प्रतिमा आणि डाउनलोड थेट डिस्कवरून सर्व्ह करा. हा Fluxheim चा सर्वात सोपा मोड आहे.
ते कधी वापरायचे
documentation, product pages, downloads आणि प्रत्येक request वर application code लागत नाही अशा sites साठी static hosting वापरा.
- ETag आणि सशर्त विनंत्या वारंवार रहदारी कमी करतात.
- बाइट श्रेणी मोठ्या फाइल्ससाठी कार्य करतात.
- सार्वजनिक मुळांसाठी डॉटफाईल्स नाकारल्या पाहिजेत.
static site example
[[vhosts]]
name = "docs"
hosts = ["docs.example.com"]
[vhosts.web]
root = "/srv/docs"
index_files = ["index.html"]
deny_dotfiles = true
मुख्य options
| पर्याय | हे वापरा जेव्हा |
|---|---|
root | तुम्हाला सार्वजनिक फाइल्ससाठी बाउंडेड फाइल सिस्टम रूट हवे आहे. |
index_files | निर्देशिकेने इंडेक्स फाइलचे निराकरण केले पाहिजे. |
deny_dotfiles | लपलेल्या फायली कधीही अपघाताने सार्वजनिक होऊ नयेत. |
directory_listing | तुम्ही जाणूनबुजून रेपॉजिटरी-शैलीतील फाइल इंडेक्स प्रकाशित करता. |
रेपॉजिटरी सूची उदाहरण
[[vhosts.routes]]
name = "repo"
path_prefix = "/repo/"
[vhosts.routes.web]
root = "/srv/repository/public"
index_files = ["index.html"]
[vhosts.routes.web.directory_listing]
enabled = true
exact_size = false
Directory listings stay private-cache by default, skip symlink entries, and still prefer index files when they exist.