An Interest In:
Web News this Week
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
- March 14, 2024
December 13, 2022 07:17 am GMT
Original Link: https://dev.to/ibrarturi/how-to-fix-nginx-symlink-caching-issue-3loe
How to fix Nginx symlink caching issue
Let's assume that you have a Laravel
application running through nginx
and pointing to the current
folder which is symlink
of the latest release folder you have.
root /home/foo/domain.com.au/current/public;
If you update your symlink
for the current
to a new release, your application will still be point to the older release.
To resolve this, add the following lines to your nginx
file after include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;fastcgi_param DOCUMENT_ROOT $realpath_root;
and it should look this:
Now, if you change/update the symlink
it should be working properly, and point to the correct release folder.
Original Link: https://dev.to/ibrarturi/how-to-fix-nginx-symlink-caching-issue-3loe
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To