Linux Apache http服务器不能访问个人网页

发布时间:2019-09-19 00:37:58

Linux Apache http服务器不能访问个人网页

推荐回答

DocumentRoot 路径不用加引号的。如果还有问题那应该是虚拟主机配置没写好。NameVirtualHost 192.168.2.30:80 #启用虚拟主机并且指定虚拟主机IP地址。<VirtualHost 192.168.2.30:80> ServerAdmin admin@abc. #站点管理员邮箱 DocumentRoot /var/www/html/web1 #站点目录位置 ServerName www.abc. #站点域名 DirectoryIndex index.html index.html.var index.php #站点默认首页 ErrorLog logs/dummy-host.example.-error_log #错误日志 CustomLog logs/dummy-host.example.-access_log mon #访问日志</VirtualHost>希望对你有用。
以上问题属网友观点,不代表本站立场,仅供参考!