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.