DEV Community

Lulu
Lulu

Posted on

1 1 1 1 1

Deploying Static Files for Website Hosting in SafeLine

How to Host a Website Using Static Files with SafeLine

In SafeLine version 6.6.0 and above, you can easily host websites using static files. This guide will walk you through the steps to set up a site using static resources and provide solutions for common issues you might encounter.

Step 1: Select Static File Hosting

When adding a new site in SafeLine, choose the Static Files option for site creation.

Image description

Step 2: Verify Success

After setting up the site, try visiting the site’s URL. If you see the default page, it means the static hosting setup was successful.

Image description

Step 3: Upload Your Static Files

Once the default page is visible, you can go to the Site Details section and upload your custom static files.

Image description

FAQ

What if the uploaded files exceed the size limit?

If your static files exceed the upload limit, you can manually upload them to the appropriate directory on the WAF server.

  • Directory path: installation_directory/resources/nginx/static/static_${SITE_ID}

You can find the SITE_ID by looking at the site details URL. For example, if the URL is https://xxxx:9443/sites/detail?id=12, the site ID is 12.

By following these steps, you’ll be able to quickly host static websites using SafeLine and manage your site with ease!

GitHub:https://github.com/chaitin/SafeLine
Website:https://waf.chaitin.com

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay