ผลต่างระหว่างรุ่นของ "ฐานความรู้"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 3: แถว 3:
 
This is how to set up Apache2 on Ubuntu so that, when '''<tt>hxxp://server/~username</tt>''' is accessed, the browser returns the content in '''<tt>/home/username/public_html</tt>'''.
 
This is how to set up Apache2 on Ubuntu so that, when '''<tt>hxxp://server/~username</tt>''' is accessed, the browser returns the content in '''<tt>/home/username/public_html</tt>'''.
  
User directory is now a mod in Ubuntu's apache2. If you have not installed the mod, then execute the following command:
+
First, user directory is now a mod in Ubuntu's apache2. If you have not installed the mod, then execute the following command:
 
  sudo a2enmod userdir
 
  sudo a2enmod userdir
  
First, edit '''<tt>/etc/apache2/apache2.conf</tt>''' as follows:
+
Second, edit '''<tt>/etc/apache2/apache2.conf</tt>''' and add the following lines:
 +
<IfModule mod_userdir.c>
 +
      UserDir public_html
 +
</IfModule>

รุ่นแก้ไขเมื่อ 08:47, 16 มีนาคม 2551

Apache2 on Ubuntu

Enabling User Directory

This is how to set up Apache2 on Ubuntu so that, when hxxp://server/~username is accessed, the browser returns the content in /home/username/public_html.

First, user directory is now a mod in Ubuntu's apache2. If you have not installed the mod, then execute the following command:

sudo a2enmod userdir

Second, edit /etc/apache2/apache2.conf and add the following lines:

<IfModule mod_userdir.c>
     UserDir public_html
</IfModule>