Author: Madhavendra Dutt
GitHub: https://github.com/mdutt247
Created: 05th March 2026
License: MIT
Stack: Laravel, MySQL, WordPress
Website: MDITech
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############ WordPress #################### | |
| # Disable logging for favicon and robots.txt | |
| location = /favicon.ico { | |
| try_files /favicon.ico @empty; | |
| access_log off; | |
| log_not_found off; | |
| expires max; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To send an email notification whenever a file or directory changes in multiple watch directories while excluding certain subdirectories, | |
| you can use inotifywait (from inotify-tools) along with mail or sendmail. | |
| sudo apt update | |
| sudo apt install inotify-tools mailutils -y | |
| Here | |
| inotify-tools: Monitors filesystem changes. | |
| mailutils: Enables email sending (for mail command). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Host Laravel in sub-directory on Nginx | |
| location = /laravel-app { | |
| return 301 /laravel-app/; | |
| } | |
| location /laravel-app/ { | |
| alias /var/www/laravel-app/public/; | |
| try_files $uri $uri/ @laravelproject; | |
| } |
OlderNewer