OpenLiteSpeed Django
OpenLiteSpeed Django

Description

The Django OpenLiteSpeed app automatically installs Linux, performance web server OpenLiteSpeed, Python LSAPI, and ACME. OpenLiteSpeed features HTTP/3 support and easy setup for SSL and RewriteRules. It’s flexible enough to host multiple Django apps and supports many other apps including NodeJS, Ruby, and CMSs like WordPress.

Getting started instructions

From a terminal on your local computer, connect to the server as root. Make sure to substitute the server's IP address.

ssh root@use_your_server_ip

An interactive script that runs will first prompt you for your domain or subdomain.<br>

You can press CTRL+C and continue to SSH. The prompt will open again the next time you log in, and will continue to do so until you finish the whole setup.

Please input a valid domain:
Please verify it is correct. [y/N]

You can also automatically apply Let's Encrypt SSL if your domain is pointed to this server already. Enter y and your email address to finish the process.

Do you wish to issue a Let's Encrypt certificate for this domain? [y/N]
Please enter your E-mail:
Please verify it is correct: [y/N]

Once finished, you should see the Certificate has been successfully installed…

Do you wish to force HTTPS rewrite rule for this domain? [y/N]

Enter y to force HTTPS rules to be applied

Do you wish to update the system which includes the webserver? [Y/n]

This script will automatically go away after your domain has been added.

For more support

Please visit our Quick Start page for details on how to access your Django image and complete your configuration.

Community Support: Slack

Further information is provided when you log in via SSH

You should see a welcome banner like the following:

Welcome to LiteSpeed One-Click OpenLiteSpeed Django Server.

To keep this server secure, firewalld is enabled. All ports are BLOCKED except 22 (SSH), 80 (HTTP) and 443 (HTTPS).

The Django OLS One-Click Quick start guide:

In a web browser, you can view:

  • The sample Django site: http://use.your.ip
  • he sample Django admin page:http://use.your.ip/admin/

On the server:

  • You can get the WebAdmin console admin password with the following command:

    cat .litespeed_password
    
  • You can access into virtual environment by command:

    source /usr/local/lsws/Example/html/bin/activate
    

Note: if the banner does not show on the console, please SSH again after few minutes.