Get the App
SLTechnology News&Howtos  ›  Servers  › 

How a virtual host uploads a web page

Shulou Source: shulou.com Published: 2022-06-02 02:06:22 11月15日 Update

How does a virtual host upload a web page? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Uploading a web page to a virtual host requires FTP software. The root folder of the website will be displayed in FTP. Generally, the website (php, htm, html, css, js, etc.) will be uploaded to this folder.

When uploading web files with FTP software, you should pay attention to the following points:

1. Upload the page to the root of the site. If it is a cgi web program, please upload it to the / cgi-bin directory.

two。 The default home page file name of the website: index.htm, index.html, index.php. After the general virtual space is opened, there are two home files in the root directory, one is the default index.html of the system, and the other is the index.htm uploaded by yourself.

Because the former has a higher priority than the latter, the page of the former is displayed when visited. You can log in to the host management console and modify your own settings.

3. Do not change the default configuration of the host or delete / htdocs, / cgi-bin, / wwwlogs and other default configuration files and directories, otherwise it will directly affect the access and management of the website.

4. As the Linux host file name is case-sensitive, file naming needs to be standardized, pay attention to lowercase, it is recommended not to use Chinese characters, it is best to use letters, numbers or underscores, please pay attention to the writing of the file name and directory path.

5. If the file is uploaded, but the file size is zero, it means that the site space is full, clean up the site files or buy more space.

After reading the above, have you mastered the method of how the virtual host uploads the web page? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: File host web page website virtual host size file name root directory directory space content folder method more software problem home page management configuration helpless Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux Shulou Technology MariaDB vpn