I want to set to How can I do that?

So my site is hosted on Digital Ocean and the problem I am running into is for some reason or another it won’t​ load the most recent version of itself into the main home page. But if I type, that is the current page. How can I set equal to

Any help would be greatly appreciated!!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You will want to edit this file:

sudo nano /etc/apache2/mods-enabled/dir.conf

For example. My website is in PHP, so my dir.conf file looks like this:

<IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.cgi index.xhtml index.htm

Since you want index.html to be served first, edit your file like this:

<IfModule mod_dir.c>
    DirectoryIndex index.html index.cgi index.php index.xhtml index.htm

Unless you have another index file like index.htm or index.php that is taking precedence this is likely just a matter of needing to clear your browser cache. If you connect through a corporate or school network or are on certain ISPs it is also possible that the old version of your page is being cached elsewhere. In general I would recommend clearing the browser cache or trying a different browser first to rule that out.