wiki:linux:nginx-php-dokuwiki
示例:Dokuwiki 网站在 Nginx & PHP7.0 环境下的配置
Nginx 配置文件: /etc/nginx/sites-available/xxx.com
功能:
- 开启php功能
- 开启rewrite功能
- www.example.com 自动重定向到 example.com
server { server_name example.com; listen 80; autoindex off; client_max_body_size 15M; client_body_buffer_size 128k; index index.html index.htm index.php doku.php; #access_log /var/log/nginx/example.com/access.log; #error_log /var/log/nginx/example.com/error.log; root /var/www/example.com; location / { try_files $uri $uri/ @dokuwiki; if (!-f $request_filename) { rewrite ^(/)(.*)?(.*) $1doku.php?id=$2&$3 last; rewrite ^(/)$ $1doku.php last; } } location @dokuwiki { rewrite ^(/)_media/(.*) $1lib/exe/fetch.php?media=$2 last; rewrite ^(/)_detail/(.*) $1lib/exe/detail.php?media=$2 last; rewrite ^(/)_export/([^/]+)/(.*) $1doku.php?do=export_$2&id=$3 last; } location ~ ^/lib.*\.(gif|png|ico|jpg)$ { expires 30d; } location = /robots.txt { access_log off; log_not_found off; } location = /favicon.ico { access_log off; log_not_found off; } location ~ /\. { access_log off; log_not_found off; deny all; } location ~ ~$ { access_log off; log_not_found off; deny all; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } location ~ /(data|conf|bin|inc)/ { deny all; } location ~ /\.ht { deny all; } } server { listen 80; server_name www.example.com; return 301 http://example.com$request_uri; }
wiki/linux/nginx-php-dokuwiki.txt · 最后更改: 2023/01/03 15:25 由 127.0.0.1
评论
Just desire to say your article is as astonishing. The clearness for your post is simply nice and i could assume you are a professional on this subject. Fine along with your permission allow me to grab your RSS feed to keep updated with imminent post. Thank you one million and please keep up the gratifying work.
Just desire to say your article is as astonishing. The clearness for your post is simply nice and i could assume you are a professional on this subject. Fine along with your permission allow me to grab your RSS feed to keep updated with imminent post. Thank you one million and please keep up the gratifying work.
It’s explicitly sexual and while watching, most men engage in self-sexing, which around 25 percent of women consider appalling and the sex addiction industry calls pathological.
It’s explicitly sexual and while watching, most men engage in self-sexing, which around 25 percent of women consider appallng and the sex addiction industry calls pathological.
It’s explicitly sexual and while watching, most men engage in self-sexing, which around 25 percent of womjen consider appalling aand tthe sex addiction industry calls pathological.
It’s explicitly sexual and while watching, most men engage in self-sexing, which aroun 25 percent of women consider appalling and thee sex adxdiction industry calls pathological.
It’s explicitly sexual and while watching, most men engage in self-sexing, which around 25 percent of women consider appalling and thee sex addiction industty calls pathological.
It’s explicitly sexual and while watching, most men engage in self-sexing, which around 25 percent of wmen consider appalling and the sex addiction industry calps pathological.
This means that even iif someone tries to bhpass your parental controls, they won’t be able to accesws inappropriate websites.
This means that even if someone tries to bypass your parental controls, they won’t be able too access inappropriate websites.
This means that even if someone tries to bypass your parental controls, they won’t be able to access inappropriate websites.
This means that evcen if sommeone tries to bypass your parental controls, they won’t be able to access inappropriate websites.
Our sexy black performers are second to none at what they do and what they do is fuck on camera in the sexiest XXX action available.
Our sexy black performers are second to none at what the do and what they do is fuck on camefa inn the sexiest XXX actionn available.
Great post. I was checking constantly this weblog and I am inspired! Extremely helpful info specifically the remaining section :) I deal with such info much. I used to be looking for this certain information for a very long time. Thanks and good luck.
Great post. I was checking constantly this weblog and I am inspired! Extremely helpful info specifically the remaining section :) I deal with such info much. I used to be looking for this certain information for a very long time. Thanks and good luck.
This means that even iff someone tries to bypass your parental controls, they won’t be ale to access inappropriate websites.
This means that even if smeone tries to bypass your parental controls, they won’t be able to access inappropriate websites.
This means that even if someone tries to bypass your parental controls, they won’t be able to access inappropriate websites.
This means that even if someone tries to bypass yor parental controls, they won’t be able to access inappropriate websites.
Thumbs uup for nonfat whores who taske care of themselves.
Thmbs up for nnonfat whores whoo take care of themselves.
This means that even if someone tries to bypass your parental controls, they won’t be ablee to access inappropriate websites.
This means that even iif someone tries to bypass your parental controls, they won’t be able to access inappropriate websites.
It’s explicitly sexual and while watching, most mmen engage in self-sexing, which around 25 percent of women consider appalling and the sex addiction industry calls pathological.
It’s explicitly sexual and while watching, most men engage in self-sexing, which around 25 percent of women consider appalling and the sex addiction industry calls pathological.
I every time used to study post in news papers but now as I am a user of internet so from now I am using net for articles or reviews, thanks to web.
I every time used to study post in news papers but now as I am a user of internet so from now I am using net for articles or reviews, thanks to web.