Enable http2 in Digitalocean nginx linux server
Edit /etc/nginx/sites-available/your_domain ... listen [::]:443 ssl; listen 443 ssl; ... Have to add http2 after ssl as bellow ... listen [::]:443 ssl http2; listen 443 ssl http2; ... Add #…
Edit /etc/nginx/sites-available/your_domain ... listen [::]:443 ssl; listen 443 ssl; ... Have to add http2 after ssl as bellow ... listen [::]:443 ssl http2; listen 443 ssl http2; ... Add #…
BIO_new_file(“/etc/letsencrypt/live/domain.com/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/domain.com/fullchain.pem’,’r’) Solutions Find where the issue grep -R /etc/letsencrypt/live/example.com/fullchain.pem /etc/nginx/ 2. fix or reset them 3. sudo nginx -t 4. sudo systemctl…
Easy way to solve in nginx server 1. Suppose the configuration as server { listen 80; listen [::]:80; root /var/www/html/cirk-l.com/public; index index.php index.html index.htm index.nginx-debian.html; server_name example.com www.example.com ; location…
Step 1 — Installing Certbot sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install python-certbot-nginx for ubuntu 20.4: sudo apt-get install python3-certbot-nginx Step 2 — Setting up NginxAt first need…
Upload the source fileconfigure nginx server as server { listen 80; server_name example.com; root /var/www/html/example/public; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options "nosniff"; index index.php; charset utf-8; location…
First, you will need to add PHP repository to your server to install multiple versions of PHP. You can add Ondrej PHP repository with the following command: apt-get install software-properties-common…
Login as root Run the command sudo nano /etc/nginx/nginx.conf Add the line under http # set client body size to 64M client_max_body_size 64M; Restart nginx sudo systemctl reload nginx.service
Wordpress multisite in Nginx server We need to configure the configuration file as bellow server { ##DM - uncomment following line for domain mapping #listen 80 default_server; server_name yourdomain.com;…
sudo chown -R www-data:www-data /var/www/example.com
Step 1. Edit /etc/nginx/site-available/example.comlocation / {try_files $uri $uri/ /index.php?q=$uri$args;}step 2 : login to serverstep 3. Run this ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/example.comstep 4. Test configuration sudo nginx -tstep 5. Restart Nginx…