Blog
How to get the list of not found pages on nginx
Camilo Nova
Camilo Nova
CEOYou can get the list of not found pages (404) grouped by URL on nginx (ubuntu) running this command on the console:
sudo awk '($9 ~ /404/)' /var/log/nginx/access.log | awk '{print $7}' | sort | uniq -c | sort -rn
Useful when setting up redirections when you migrate to a new website.
Written by Camilo Nova
Camilo Nova
Axiacore CEO. Camilo writes thoughts about the intersection between business, technology, and philosophy
Stay ahead of what's next.
Get fresh ideas, insights, and practical perspectives on AI, technology, and digital products, straight to your inbox.
We respect your inbox. Privacy policy