By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
IT Infras HolicIT Infras HolicIT Infras Holic
  • News
  • Linux
    • Application
    • SELinux
    • Centos
    • Ubuntu
  • Docker
  • Web Server
    • Kong
    • Nginx
    • Openlitespeed
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
    • 2048
    • Fantasy Forest
    • Hextris
    • Crossword
Search
  • Privacy Policy
© 2024. All Rights Reserved.
Font ResizerAa
IT Infras HolicIT Infras Holic
Font ResizerAa
  • News
  • Linux
  • Docker
  • Web Server
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
Search
  • News
  • Linux
    • Application
    • SELinux
    • Centos
    • Ubuntu
  • Docker
  • Web Server
    • Kong
    • Nginx
    • Openlitespeed
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
    • 2048
    • Fantasy Forest
    • Hextris
    • Crossword
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
IT Infras Holic > Blog > Linux > Centos > How to Add Additional HTTP Headers in OpenLitespeed
CentosWeb Server

How to Add Additional HTTP Headers in OpenLitespeed

writer
Share
1 Min Read
SHARE

How to Add Additional HTTP Headers in OpenLitespeed

1. Login to console , go to Virtual Hosts , and select your site,

2. Now goes to “Context” tab , click “Add”

3. Add new context , type: Static, and click “Next”

4. Now fulfill following required options , in this case http header needs to be site-wide , so

1
2
3
4
5
URI: /
Location: /home/$VH_NAME/public_html
Accessible: Yes
 
Extra Header:

add the header you need.

since every webserver has its own syntax , so you may got it wrong first , usually you need to tweak with ; or space by adding or removing them , I will
list out some header I have confirmed working on OLS.

https://blog.khoirul.id/configure-firewalld-for-mail-server/

after added your headers , save it , and remember to restart OLS to take effect.

Examples of http header:

1
2
3
4
5
6
7
Content-Security-Policy default-src 'self' data: 'unsafe-eval' 'unsafe-inline' https://www.google-analytics.com https://ajax.cloudflare.com
X-XSS-Protection 1;mode=block
X-Frame-Options SAMEORIGIN
Referrer-Policy strict-origin-when-cross-origin
Strict-Transport-Security: max-age=15552000
X-Content-Type-Options nosniff
Public-Key-Pins 'pin-sha256="pin1"; pin-sha256="pin2"; max-age=2592000'

You Might Also Like

Install Cyberpanel on Ubuntu 22.04

Install RabbitMQ on CentOS 7

Install Kong Konga using Docker Compose

Install Docker CE on CentOS 7

How to Install MySQL Percona 8 in CentOS 7

TAGGED: backup database, backup mysql, centos, centos 7 firewalld, centos7, configuration. doa, docker compose, docker install, docker linux mariadb, docker portainer install, docker run, firewalld, how to install mariadb, install nextcloud on centos 7, install portainer, list rules firewalld, mysql, network, ols, on premise, open port, openlitespeed, percona, peresmian, phpMyAdmin, portainer, portainer docker, portainer docker swarm portainer github portainer kubernetes portainer swarm portainer windows restore database restore mysql route router semanage server, portainer editor, setting, swap, swarm, sysadmin, window
Share This Article
Facebook Twitter Whatsapp Whatsapp LinkedIn Telegram Copy Link
Next Article add swap on centos 7 How to Add Swap on CentOS 7
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest News

bash
Monitoring File & Directory Changes using Bash Script
Linux Application
vulnerability
Vulnerability Checker CVE-2024-3094
Linux
wiki.js
Unleashing the Potential of Knowledge Management with Wiki.js
Application Linux
Install Apache Guacamole
How to Install Apache Guacamole with Docker Compose
Application Linux

You Might also Like

Install MariaDB on CentOS 7
ApplicationLinux

Install MariaDB on CentOS 7 (MariaDB 10.4)

4 Min Read
Install Nextcloud on CentOS 7 Include SSL
ApplicationLinux

Install Nextcloud on CentOS 7 Include SSL

4 Min Read
Follow US
© 2024
activity notes activity notes
Welcome Back!

Sign in to your account

Lost your password?