我有一个文件夹/var/www/forum
,我有论坛文件。我目前通过访问xyz.com/forum
来访问它。如何设置apache以允许我访问forum.xyz.com
访问论坛?
答案 0 :(得分:1)
希望有所帮助
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot "/Users/user_name/Sites/site/forum"
ServerName forum.site.ru
<Directory "/Users/user_name/Sites/site/forum">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog "/private/var/log/apache2/site_error_log"
CustomLog "/private/var/log/apache2/site_access_log" common
</VirtualHost>
由于