Virtual Path setting of server-U and its advantages

Source: Internet
Author: User



1. Server-u virtual directory configuration for shared files


When I set the FTP server with server-u today, there was a small problem in setting the virtual path, but it was still made it!


First, let's look at the virtual path settings in server-u. First we implement the shared file function, and then we analyze the benefits of the virtual path, this is not the first time you have encountered a virtual path usage problem.



1. First, create a user. Here I set anyone to access:




2. for sharing, I added the user's home directory and the "my books" folder to be accessed in the user's directory access permission:




 

3. In the domain settings, add the files to be shared to the virtual directory:






After that, we can log in and download the required files.






2. Benefits of virtual paths


1. Solve the problem of insufficient space on the disk where the main directory of the server is located.


The virtual directory maps other directories to the Home Directory of the FTP server. In this way, the Home Directory of an FTP server can include many directories with different drive letters and different paths, instead of being limited by the disk space. When you log on to the main directory, you can perform operations on the account according to its permissions, just like operating sub-directories in the main directory. If the user is locked in the main directory, this function allows them to access other directories outside the main directory.


2. BS system security considerations


I think back to the previous times when we used to publish the system using IIS for BS projects, we also set up virtual directories.


First, the virtual directory hides important information about the site directory structure. In the browser, you can easily obtain the file path information of the page by selecting "View Source Code". If the physical path is used on the web page, this exposes important information about the site directory, which can easily lead to system attacks.


Second, as long as the two machines have the same virtual directory, you can move the web page from one machine to another without making any changes to the page code. In addition, when you place a web page under a virtual directory, you can set different attributes for the directory, such as read, excute, and script. Read access means to pass the directory content from IIS to the browser. Execute access to execute executable files in this directory. When you need to use ASP, you must set the directory where you store the. asp file to "excute (execution )".



Summary:

3. You should be alert when a problem occurs twice, but it is best to eliminate it in the first place.




Virtual Path setting of server-U and its advantages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.