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

或者,直接通过域名分配来处理。

posted @ 2021-05-07 17:04  TBHacker  阅读(602)  评论(0编辑  收藏  举报