Nginx. conf settings are used for ZendFramework projects.

Source: Internet
Author: User
Server%02listen80%03server_namewenda.localhost.com%04indexindex.htmlindex.htm index. php; 05 root/wnmp/www/wenda; 06 autoindexon; 0708 # error_page404/404.html; 0910 # redi server {
02
Listen 80;
03
Server_name wenda.localhost.com;
04
Index index.html index.htm index. php;
05
Root/wnmp/www/wenda;
06
Autoindex on;
07

08
# Error_page 404/404 .html;
09
 
10
# Redirect server error pages to the static page/50x.html
11
#
12
Error_page 500 502 503 x.html;
13
Location =/50x.html {
14
Root/wnmp/www;
15
}
16
 
17
Location /{
18
Index. php index.html index.htm;
19
If (-f $ request_filename ){
20
Break;
21
}
22
If (-d $ request_filename ){
23
Break;
24
}
25
Rewrite ^ (. +) $/index. php last;
26
}
27
 
28
Location ~ . * \. (Php | php5 )? $ {
29
Fastcgi_pass 127.0.0.1: 9000;
30
Include/wnmp/nginx/conf/fastcgi_params;
31
}
32
}
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.