showdoc搭建


下載地址

https://gitee.com/star7th/showdoc

配置nginx

server
 {
 	 listen 80;
 	 #listen [::]:80 default_server ipv6only=on;
 	 server_name local.showdoc.com;
 	 index index.html index.htm admin.php index.php;
 	 root /home/wwwroot/default/showdoc;
 	 #error_page 404 /404.html;
 	 include enable-php-pathinfo.conf;
 	 location /nginx_status
 	 {
 	 	stub_status on;
 	 	access_log off;
 	 }
 	 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
 	 {
 	 	expires 30d;
 	 }
 	 location ~ .*\.(js|css)?$
 	 {
 	 	expires 12h;
 	 }
 	 location ~ /\.
 	 {
 	 	deny all;
 	 }
 	 access_log /home/wwwlogs/access.log;
 }

配置域名指向

vim /etc/hosts
127.0.0.1 local.showdoc.com

或者,直接通過域名分配來處理。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM