Ubuntu 12.10虚拟主机
您好,我尝试在Apache2上为localhost创建虚拟主机,但没有成功Ubuntu 12.10虚拟主机,ubuntu,apache2,virtualhost,Ubuntu,Apache2,Virtualhost,您好,我尝试在Apache2上为localhost创建虚拟主机,但没有成功 <VirtualHost *:80> ServerName portal ServerAdmin webmaster@localhost.com DocumentRoot /var/www/portal/public <Directory /var/www/portal/public> Options FollowSymLinks A
<VirtualHost *:80>
ServerName portal
ServerAdmin webmaster@localhost.com
DocumentRoot /var/www/portal/public
<Directory /var/www/portal/public>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
服务器名门户
服务器管理员webmaster@localhost.com
DocumentRoot/var/www/portal/public
选项如下符号链接
允许超越所有
要求所有授权
我能做什么?我添加了
/etc/hosts
行127.0.0.1门户
并使其适用于:
Apache2.2
Order allow,deny
Allow from all
Apache2.4
Require all granted
Satisfy Any