- 颠峰布衣飘2018-10-22高级会员133347
- 本帖最后由 颠峰布衣飘 于 2018-10-24 03:12 编辑 *
打算在oneindex目录下放一个aria2NG
- server {
- listen 80;
- index index.html index.php;
- root /var/www/html; #就是这里添加
- location / {
- index index.html;
- root /var/www/html;
- - try_files $uri /index.php?$args;
- }
- - location /aria2/ {
- index index.html;
- }
- - location = /404.html {
- internal;
- }
- - location ~ .php {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www/html/$fastcgi_script_name;
- include fastcgi_params;
- }
- } 复制代码
- RewriteEngine On
- - #排除static|themes|uploads目录
- RewriteCond $1 !^(aria2)
- - RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- - RewriteRule ^(.*) index.php?/$1 复制代码
访问 www.site.com/aria2 访问不了呢