UPUPW Nginx怎么在局域网内直接输入IP访问EduSoho?
作者:admin发布时间:2021-10-25分类:软件教程浏览:评论:0
UPUPW Nginx怎样在局域网络内同时键入IP浏览EduSoho实例教程呢?今日格子啦我就为您产生UPUPW Nginx完成内网内同时键入IP浏览EduSoho实例教程详细介绍。
1: 最先备份数据原先的环境变量vhosts.conf
便是把这个文档的名称改动成vhosts.conf.backup
2: 随后再次建立vhosts.conf文档
里边的信息换成下列文本
server {
listen 80;
server_name 192.168.1.6 localhost alias 127.0.0.1; #最之前的IP改为当今设备IP
root D:/upupw/edusoho/web;
access_log D:/upupw/Nginx/logs/edusoho-rc.com.access.log;
error_log D:/upupw/Nginx/logs/edusoho-rc.com.error.log;
location / {
index app.php;
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}
location ~ ^/udisk {
internal;
root D:/upupw/edusoho/app/data/;
}
location ~* .(jpg|jpeg|gif|png|ico|swf)$ {
expires 3y;
access_log off;
gzip off;
}
location ~* .(css|js)$ {
access_log off;
expires 3y;
}
location ~ ^/files/.*.(php|php5)$ {
deny all;
}
location ~ ^. .php {
fastcgi_pass bakend;
fastcgi_index app.php;
fastcgi_split_path_info ^(. .php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param HTTPS off;
include fastcgi.conf;
include fastcgi_params;
}
location ~ ^/(app|app_dev).php(/|$) {
fastcgi_pass bakend;
fastcgi_split_path_info ^(. .php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
fastcgi_param HTTP_X-Sendfile-Type X-Accel-Redirect;
fastcgi_param HTTP_X-Accel-Mapping /udisk=/D:/upupw/edusoho/app/data/udisk;
fastcgi_buffer_size 128k;
fastcgi_buffers 8 128k;
}
}
#server localhost end}
3: 随后关掉Window电脑操作系统的服务器防火墙
4: 最终重启upupw。
先键入“s5”,再键入“s1”。
最终在网页中键入你自己的当今设备的IP地址就可以了。
之上便是UPUPW Nginx完成内网内同时键入IP浏览EduSoho实例教程详细介绍所有内容,依照上面的一步一步设定就可以完成内网内立即浏览EduSoho实例教程了。
标签:UPUPW
相关推荐
你 发表评论:
欢迎- 软件教程排行
- 最近发表