How to Serve Apple Pay Domain Association File Using NGINX and Nuxt 3

Steps to Serve the Apple Pay Domain Association File Using NGINX and Nuxt 3 1. Proxy the File to the Nuxt Dev Server Since the Nuxt 3 development server is already serving the file correctly on localhost:3000, we can configure NGINX to proxy just this specific request to the dev server. Here’s how you can …

Efficient Solution for Vuelidate Nested Validations: Overcoming Maximum Recursive Updates in Vue.js

To resolve the ‘Maximum recursive updates exceeded’ error in Vue.js, often caused by complex nested validations, the implemented solution involves dividing the validation logic across two distinct components. By avoiding deep nesting, this method simplifies the validation process. Each component (‘First.vue’ and ‘Second.vue’) independently handles its segment of the validation logic using Vuelidate. This separation …

Solving Vue 3 Axios CSRF Token Mismatch with Laravel API

While working with Vue 3 and Laravel APIs, a common issue you might encounter is the “CSRF Token Mismatch” error. This problem arises when Axios, a popular HTTP client for making requests, fails to send the necessary X-XSRF-TOKEN in the request header. This article explains how to resolve this issue by intercepting requests and adding …

How to enable nginx stub status

How to enable nginx stub status Edit nginx.conf add in the server { ….. } block/context location /nginx_status { # Turn on nginx stats stub_status on; # I do not need logs for stats access_log off; # Security: Only allow access from your IP address # allow your ip address; # Send rest of the world …

Could not open archive dir for / Could not open archive mbox dir

/usr/local/cpanel/scripts/update_mailman_cache How to fix the errors Could not open archive mbox dir for somelist: No such file or directory at /usr/local/cpanel/Cpanel/Mailman/DiskUsage.pm Could not open archive dir for somelist: No such file or directory at /usr/local/cpanel/Cpanel/Mailman/DiskUsage.pm Solution If we have a list named list1_webinformat.com the error is Could not open archive mbox dir for list1_webinformat.com: No …

Hot link protection

Simple hot link protection using .htaccess RewriteEngine on #RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$ [NC] RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?your-domain\. [NC] RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?google\. [NC] RewriteRule \.(gif|jpe?g?|png|bmp)$ http://your-domain/hotlinkdenied [R,L] Replace your-domain with your actual domain name Replace http://your-domain/hotlinkdenied with a valid url