[英]Apache2 Ubuntu config showing google search
I have configured my fresh installed apache. 我已经配置了新安装的Apache。 When I am trying to put local.myproject
in the browser it starts searching on google. 当我尝试将local.myproject
放在浏览器中时,它开始在google上搜索。 Like the link was not working. 就像链接无法正常工作。 Could somebody please tell me what happens? 有人可以告诉我会发生什么吗? I tried to restart apache and reload the conf files. 我试图重新启动apache并重新加载conf文件。
sites-availabe/myproject.conf: sites-availabe / myproject.conf:
ServerName local.myproject
DirectoryIndex index.php index.html
DocumentRoot /home/programmer/NetBeansProjects/myproject/public
ErrorLog ${APACHE_LOG_DIR}/error_1.log
CustomLog ${APACHE_LOG_DIR}/access_1.log combined
<Directory /home/programmer/NetBeansProjects/myproject/public>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
/etc/hosts file: / etc / hosts文件:
127.0.0.1 localhost
127.0.1.1 computer
127.0.0.1 local.myproject
Restart your Apache server by: sudo service apache2 restart
通过以下方式重新启动Apache服务器: sudo service apache2 restart
OR Check error log: ls /var/log/apache2/error-YOURDOMAINNAME.log
或检查错误日志: ls /var/log/apache2/error-YOURDOMAINNAME.log
You can check what you missed by check every steps here . 您可以通过在此处检查每个步骤来检查丢失的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.