nginx.conif 找到 server 关键字配置 server {listen 80;server_name localhost;#charset koi8-r;#access_log logs/host.access.log main;root C:/phpStudy/PHPTutorial/WWW;location / {try_file...

nginx.conif
找到 server 关键字配置
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
root "C:/phpStudy/PHPTutorial/WWW";
location / {
try_files $uri /index.html;
}
location ^~ /api/ {
proxy_pass http://120.77.146.174:8083;
}
#location / {
# index index.html index.htm index.php l.php;
# autoindex off;
# }
沃梦达教程
本文标题为:温故而知新 phpstudy 设置 nginx 代理
猜你喜欢
- PHP实现微信支付(jsapi支付)流程步骤详解 2022-10-09
- Laravel balde模板文件中判断数据为空方法 2023-08-30
- laravel实现按月或天或小时统计mysql数据的方法 2023-02-22
- PHP简单实现二维数组的矩阵转置操作示例 2022-10-02
- PHP中PDO事务处理操作示例 2022-10-15
- 用nohup命令实现PHP的多进程 2023-09-02
- php微信公众号开发之秒杀 2022-11-23
- laravel通用化的CURD的实现 2023-03-17
- PHP仿tp实现mvc框架基本设计思路与实现方法分析 2022-10-18
- windows下9款一键快速搭建PHP本地运行环境的好工具(含php7.0环境) 2023-09-02
