yes, that is the correct path. /var/www/wordpress/wordpress/uploads.

Also, @gnarf requested that I put these lines beneath the check for ABSPATH defined.