[warn] NameVirtualHost *:80 has no VirtualHosts
- font size decrease font size increase font size
- Print Email
错误:[warn] NameVirtualHost *:80 has no VirtualHosts
原因:定义了多个NameVirtualHost
解决:Ubuntu之前的版本定义在/etc/apache2/sites-available/default, 8.04后在/etc/apache2/ports.conf
故可以将/etc/apache2/ports.conf中的NameVirtualHost *:80注释掉
这个问题的本质是在没有定义域名是一个端口只能对应一个虚拟主机,将NameVirtualHost *:80改为其他端口也可以解决
如果有多个不同的域名的话,用同样的端口也可以
Last modified onWednesday, 29 May 2013 19:03
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0018 | 412344 | {main}( ) | .../index.php:0 |
2 | 0.0781 | 4262312 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0781 | 4262312 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.2812 | 11453232 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.2818 | 11477560 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.2826 | 11532888 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.2828 | 11560288 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.2914 | 11959920 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.2914 | 11959920 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3015 | 12610624 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3015 | 12610624 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3058 | 12981664 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3088 | 13002032 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4176 | 15850888 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4176 | 15850888 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4215 | 16023824 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in CentOS 6
- Read 1426 times
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0018 | 412344 | {main}( ) | .../index.php:0 |
2 | 0.0781 | 4262312 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0781 | 4262312 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.2812 | 11453232 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.2818 | 11477560 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.2826 | 11532888 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.2828 | 11560288 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.2914 | 11959920 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.2914 | 11959920 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3015 | 12610624 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3015 | 12610624 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3058 | 12981664 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3088 | 13002032 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4176 | 15850888 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4176 | 15850888 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4215 | 16023824 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |