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