Apache2 2.2.14使用多个虚拟主机进行本地测试
我已经通过这种方法设置了Apache 2虚拟主机。 下 /etc/apache2/sites-available 我创造了一个 dummy_site_1.conf dummy_site_1.conf <VirtualHost local.dummy_site_1:80> ServerName local.dummy_site_1 ServerAdmin webmaster@localhost DocumentRoot /var/www/dummy_site_1 ErrorLog /var/log/apache2/dummy_site_1__error.log TransferLog /var/log/apache2/dummy_site_1__access.log <Directory /var/www/dummy_site_1> AllowOverride Options Limit None Options -Indexes FollowSymLinks Order deny,allow Allow from all </Directory> DirectoryIndex index.php #DISABLE HTTP TRACE #RewriteEngine On #RewriteCond %{REQUEST_METHOD} ^TRACE #RewriteRule .* - [F] </VirtualHost> 我也添加了这一行 …