February 24, 2025

All Laravel routes 404ing

We were getting the nginx 404 page which told me something was wrong with the nginx config. Previously this site (wcv) use React Router for its routing so chances are they needed to setup nginx accordingly but I am not sure. What I needed to do was add the following to both the site-enabled and sites-available config files

	location / {
		try_files $uri $uri/ /index.php;
	}

© 2025 Terrence Eisenhower. All rights reserved.