How Do I Use OneDrive as a Web Server?


Heather Bennett

OneDrive is not just a cloud storage service, but it can also be used as a web server. With OneDrive, you can host your website and make it accessible to the world. In this tutorial, we will explore how to use OneDrive as a web server and unleash its full potential.

First and foremost, you need to have a Microsoft account to access OneDrive. If you don’t have one, you can easily create it for free. Once you have your Microsoft account ready, follow these simple steps to get started with using OneDrive as a web server:

Step 1: Upload your website files
The first step is to upload your website files to OneDrive. You can do this by logging into your OneDrive account and creating a new folder for your website. Give it an appropriate name that reflects your website’s content.

Once the folder is created, open it and click on the “Upload” button. Select all the files and folders that make up your website from your local machine and click “Open” to begin the upload process. Depending on the size of your website, this may take some time.

Step 2: Set permissions for public access
By default, the files you upload to OneDrive are private and not accessible by anyone else. To make your website accessible to others, you need to change the permission settings of the folder containing your website files.

Right-click on the folder in OneDrive and select “Share”. In the sharing options panel that appears on the right side of the screen, click on “Anyone with the link can view” option under “Access” section. This will allow anyone who has the link to access your website.

Step 3: Get public URL
After setting permissions for public access, you need to get the public URL of your website’s main page. Right-click on the main HTML file (e.g., index.html) and select “Get a link”. Choose the “View only” option and click on “Copy link”.

Now, you have the public URL of your website’s main page. You can share this link with others or use it to access your website from any device with an internet connection.

Step 4: Customize your website
Before you start sharing your OneDrive-hosted website with the world, you might want to customize it. You can edit your HTML, CSS, and JavaScript files directly in OneDrive or make changes locally and re-upload them.

To edit files in OneDrive, right-click on a file and select “Open in” option. Choose an appropriate editor based on the file type. This will open the file in a new tab where you can make changes and save them directly to OneDrive.


  • You can use HTML templates or frameworks to speed up website development.
  • Make sure all file paths (e., for images or stylesheets) are correct relative to the main HTML file.
  • Test your website thoroughly before sharing it with others.


Using OneDrive as a web server is a convenient way to host your personal or small-scale websites without the need for traditional hosting services. It allows you to easily upload, manage, and share your website files while benefiting from Microsoft’s secure infrastructure.

Remember to keep your website files organized within a dedicated folder on OneDrive, set permissions for public access, get the public URL of your main page, and customize your website as needed. With these steps in mind, you are now ready to unleash the power of OneDrive as a web server!

Now that you know how to use OneDrive as a web server, start exploring its possibilities and enjoy the flexibility it offers for hosting your own website.

Discord Server - Web Server - Private Server - DNS Server - Object-Oriented Programming - Scripting - Data Types - Data Structures

Privacy Policy