webman威武
打算移植一下tp6項(xiàng)目到webman
目錄結(jié)構(gòu)
bt配置
多應(yīng)用綁定配置
nginx配置
我看手冊(cè)說的是默認(rèn)動(dòng)作是Index控制器下面的index方法
但是我訪問www域名 ,pc應(yīng)用可以不寫了.但是后面必須要跟index,要不然就是404
小白..第一次接觸webman....逛問答區(qū),大概知道要寫路由可以實(shí)現(xiàn),但是具體的不知道...(有咩有不寫路由的啊?)
問題比較膚淺....
參考這個(gè)配置
upstream webman {
server 127.0.0.1:8787;
}
server {
listen 80;
server_name www.hopewebman.com hopewebman.com ;
root /www/wwwroot/hope_webman/public;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
if (!-f $request_filename){
rewrite ^/(.*)$ /pc/$1 break;
proxy_pass http://webman;
}
}
}