if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z0-9][\w|\.]*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
// 解析操作
$action = !empty($path) ? array_shift($path) : null;
// 解析额外参数
if ($path) {
if ($this->rule->getConfig('url_param_type')) {
$var += $path;
USER | nginx |
HOME | /var/lib/nginx |
HTTP_X_SINFO | on |
HTTP_X5_UUID | 236a2b34ff521bb3f2a05ccb83d3d3da |
HTTP_X_CLIENT_IP | 3.231.3.140 |
HTTP_X_TRUE_IP | 3.231.3.140 |
HTTP_X_FORWARDED_PROTO | https |
HTTP_WL_PROXY_CLIENT_IP | 3.231.3.140 |
HTTP_WEB_SERVER_TYPE | nginx |
HTTP_X_REAL_IP | 3.231.3.140 |
HTTP_EAGLEEYE_RPCID | 0.1 |
HTTP_REFERER | http://www.breo.com/images/uptones-junior-sunglasses-black-p241-3173_image.jpg |
HTTP_ACCEPT | */* |
HTTP_EAGLEEYE_TRACEID | 0bdd893e17117276448872707e8c6f |
HTTP_X_FORWARDED_FOR | 3.231.3.140 |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.breo.com |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.breo.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.31.106.39 |
REMOTE_PORT | 49762 |
REMOTE_ADDR | 3.231.3.140 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/html/public |
DOCUMENT_URI | /index.php/images/uptones-junior-sunglasses-black-p241-3173_image.jpg |
REQUEST_URI | /images/uptones-junior-sunglasses-black-p241-3173_image.jpg |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
PATH_TRANSLATED | /www/html/public/images/uptones-junior-sunglasses-black-p241-3173_image.jpg |
PATH_INFO | /images/uptones-junior-sunglasses-black-p241-3173_image.jpg |
SCRIPT_FILENAME | /www/html/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/images/uptones-junior-sunglasses-black-p241-3173_image.jpg |
REQUEST_TIME_FLOAT | 1711727644.8897 |
REQUEST_TIME | 1711727644 |