| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 546 |
| Technical Name |
static_site_host |
| License | LGPL-3 |
Static Site Host
Deploy fully functional static websites directly inside your Odoo environment. Just upload a ZIP containing your HTML, CSS, JS, and assetsâand it's instantly live!
Odoo 17 No Server Config Instant DeployWhy Use Static Site Host?
Perfect for hosting landing pages, React/Vue/Angular bundles, documentation, or marketing campaigns without leaving Odoo.
Simple ZIP Upload
Upload a ZIP file with your website. The module handles extraction, routing, and file serving automatically.
Instant Deploy
Zero web server configuration. Click 'Deploy' and your site is immediately accessible via a clean, customizable URL slug.
Smart Architecture
Supports nested directories, root folders in ZIPs, and perfectly resolves relative paths for CSS, JS, and image assets.
How to Use
-
Create a New SiteNavigate to the Static Sites menu, create a new record, and assign a unique URL slug (e.g.
my-campaign). -
Upload your ZIPAttach your site's ZIP archive. Make sure it contains an
index.html(either at the root or inside a single top-level folder). -
Click DeployYour site is extracted and goes live immediately at
/sites/my-campaign/. You can undeploy or redeploy anytime!
It's really that simple.
Technical Details
- Automatic Entry Point Detection: Finds your
index.htmlautomatically. - Asset Caching: Serves JS/CSS with proper cache headers and HTML with no-cache for seamless updates.
- Security Built-in: Validates slugs, prevents directory traversal, and blocks unauthorized ZIP structures.
- Background Cleanup: Automatically purges orphaned files if a site record is deleted.
Please log in to comment on this module