Home > Backend Development > PHP Tutorial > Open pathinfo for nginx in lnmp one-click installation environment, lnmpnginx_PHP tutorial

Open pathinfo for nginx in lnmp one-click installation environment, lnmpnginx_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 10:12:20
Original
800 people have browsed it

In the lnmp one-click installation environment, nginx opens pathinfo. For lnmpnginx

problems and principles, please refer to: http://www.laruence.com/2009/11/13/1138. html

If you use the lnmp script to install a development environment with one click, you can open a pathinfo account in the following way:

1. Comment try_files in nginx.conf (because it is repeated with pathinfo.conf) and enable pathinfo.conf configuration:

<span>1</span> location ~ [^/]\.php(/|<span>$)
</span><span>2</span> <span>{
</span><span>3</span>     # comment try_files $uri =<span>404</span><span>; to enable pathinfo
</span><span>4</span>     #try_files $uri =<span>404</span><span>;
</span><span>5</span>     fastcgi_pass  unix:/tmp/php-<span>cgi.sock;
</span><span>6</span> <span>    fastcgi_index index.php;
</span><span>7</span> <span>    include fastcgi.conf;
</span><span>8</span> <span>    include pathinfo.conf;
</span><span>9</span> }
Copy after login

Comment out line 4 and open line 8.

2. Restart nginx service:

nginx -s reload
Copy after login

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/923714.htmlTechArticleIn lnmp one-click installation environment, nginx opens pathinfo. For lnmpnginx problems and principles, please refer to: http://www.laruence .com/2009/11/13/1138.html If you use the lnmp script to install the development environment with one click, you can...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Error restarting nginx
From 1970-01-01 08:00:00
0
0
0
server - Nginx configuration webapp problem
From 1970-01-01 08:00:00
0
0
0
Nginx default.conf problem
From 1970-01-01 08:00:00
0
0
0
centos7 - NGINX exception occurs
From 1970-01-01 08:00:00
0
0
0
nginx load balancing
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template