Implementation method of personal home page system on Apache

xiaoxiao2021-03-06  69

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 / DirectoryIndex index.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 DirectoryIndex index.html

Note: 1. User's FTP can use any FTP system to specify its path to / WWW / free / usernamelyxz

转载请注明原文地址:https://www.9cbs.com/read-93768.html

New Post(0)