So you installed wordpress inside /var/www/html/wordpress and how it show up at https://www.yoursite.com/wordpress instead of https://www.yoursite.com

Don’t worry it is easy to solve!

Enter inside /var/www/html and remove the file index.html :

$ sudo -s
# cd /var/www/html/
# rm index.html

Now move the content from /var/www/html/wordpress to /var/www/html:

# cd wordpress
# mv * ../
# cd .. 

If you access your http://www.yoursite.com you will see that the wordpress is there, but the links are not working, you need to edit wp-config.php to fix it, open the file and add these two define lines:

# vim wp-config.php

define('WP_SITEURL', 'https://www.yoursite.com');
define('WP_HOME', WP_SITEURL);

That’s all!