Combined with your experience and my own practice, get the following points to implement the personal home page system on Apache. (Note: My test environment is as follows: FreeBSD4.7 apache2.0.43)
Question: Personal home page system on Apache: 1.Web: http://www.site.com/~username 2.FTP: / www / free / username / public_html
Method 1: Use the Mod_UserDir module to use UserDir_Module in Apache, remove the # before # before the loadModule userdir_mandir.so, then configure it as follows:
UserDir / www / free / * / public_html /
Method 2: Use REWRITE to use REWRITE_MODULE in Apache, remove the # of the loadModule Rewrite_Module Libexec / Apache2 / MOD_rewrite.so, then configure it as follows:
ReWriterule ^ / ~ ([0-9A-ZA-Z_ / -] ) (. *) / Wwww / free / $ 1 / public_html $ 2
Note: 1. User's FTP can use any FTP system to specify its path to / WWW / free / usernamelyxz