Linux configuration Domain name Solver

Source: Internet
Author: User
I installed the Php+nginx+mysql on Linux.
Then write the index.php in the WWW directory and enter it inside. File.
However, in the browser input domain name appears this situation:

Then find the information. I've configured this in vi/etc/hosts.

Then access or not.

My domain name is also a match.
I typed Curl x.woyaoni.cn under Linux with the results.
I am in Windows ping x.woyaoni.cn The result is also no problem ha!

Ask the great God, how can be in the browser to visit a ... Solving! Ask the great God, how can be in the browser to visit a ... Solving!
Ask the great God, how can be in the browser to visit a ... Solving! Ask the great God, how can be in the browser to visit a ... Solving!
Ask the great God, how can be in the browser to visit a ... Solving! Ask the great God, how can be in the browser to visit a ... Solving!


Reply to discussion (solution)

View the configuration in the nginx.conf file

View the configuration in the nginx.conf file


How to match it.

server {
#侦听80端口
Listen 80;
#定义使用www. xx.com Access
server_name www.xx.com;

#设定本虚拟主机的访问日志
Access_log Logs/www.xx.com.access.log Main;

#默认请求
Location/{
Root/root; #定义服务器的默认网站根目录位置
Index index.php index.html index.htm; #定义首页索引文件的名称

Fastcgi_pass www.xx.com;
Fastcgi_param script_filename $document _root/$fastcgi _script_name;
Include/etc/nginx/fastcgi_params;
}


For more information, please see http://www.cnblogs.com/zemliu/archive/2012/10/14/2723187.html to help you with your answer.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.