一台 apache 服务器托管多个网站的方法: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 September 2025

  • curprev 10:3510:35, 29 September 2025Mwroot talk contribs 2,558 bytes +2,558 Created page with "一台服务器放多个网站,无外乎子目录、子域名两种方法。 == 子目录 == <syntaxhighlight lang="apache" line> <VirtualHost *:80> ServerName sample.com DocumentRoot /var/www/site1 <Directory /var/www/site1> AllowOverride All Require all granted </Directory> Alias /site2 /var/www/site2 <Directory /var/www/site2> AllowOverride All Require all granted </Directory> Alias /site3 /var/www/s..."