This is a SAMPLE TESTING MESSAGE sent through Cell Broadcasting System by Department of Telecommunication

Image
  This is a SAMPLE TESTING MESSAGE sent through Cell Broadcasting System by Department of Telecommunication, Government of India. Please ignore this message as no action is required from your end. This message has been sent to test Pan-India Emergency Alert System being implemented by National Disaster Management Authority. It aims to enhance public safety and provide timely alerts during emergencies. Timestamp: 12-10-2023 12:13 PM 21

Nginx How to redirect all http and https requests to another site.



We can redirect all http and https requests to another domain using the below script in the nginx configuration.

1. For HTTP redirection

-------
server {
       listen         80;
       server_name    domain.com;
       return         301 https://domain.com$request_uri;
}

2. For HTTPS redirection

------
server {
       listen         443 ssl;
       server_name    domain.com;
       return         301 https://domain.com$request_uri;
       sl_certificate    /etc/ssl/domain.com.pem;
ssl_certificate_key    /etc/ssl/domain.com.key;
}

Comments

Popular posts from this blog

Google doodle celebrates India Republic Day