首页 > Web开发 > 详细

修改anmpp默认网页路径

时间:2015-03-26 10:46:10      阅读:344      评论:0      收藏:0      [点我收藏+]

找到文件

 

所需修改文件所在目录:/data/data/android.nginx/conf/

文件名:nginx.conf

修改内容

 

修改加粗斜体部分文字,然后保存即可

文件内容

 

events {

    worker_connections  1024;

}

http {

    include       mime.types;

    default_type  application/octet-stream;

    #log_format  main  ‘$remote_addr - $remote_user [$time_local] "$request" ‘

    #                  ‘$status $body_bytes_sent "$http_referer" ‘

    #                  ‘"$http_user_agent" "$http_x_forwarded_for"‘;

    #access_log  logs/access.log  main;

    sendfile        on;

    #tcp_nopush     on;

    #keepalive_timeout  0;

    keepalive_timeout  65;

    #gzip  on;

    server {

        listen      80 default;

        server_name  localhost;

        autoindex            on;

        autoindex_exact_size on;        root    /data/data/android.wwwroot;        index   index.html index.htm index.php;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html

        #        error_page   500 502 503 504  /50x.html;

        location = /50x.html {

            root   html;

        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80

        #

        #location ~ .php$ {

        #    proxy_pass   http://127.0.0.1;

        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

        #

        location ~* .php$ {

            fastcgi_index  index.php;

            client_max_body_size 64m;

            fastcgi_pass   unix:/data/data/android.php-fpm/tmp/php-fpm.socket;

            fastcgi_param  SCRIPT_FILENAME  /data/data/android.wwwroot$fastcgi_script_name;

            include        fastcgi_params;

        }

        # deny access to .htaccess files, if Apache‘s document root

        # concurs with nginx‘s one

        #

        #location ~ /.ht {

        #    deny  all;

        #}

    }

修改后

 

修改后,重启下集成环境,或重启下手机

内存卡wwwroot目录:/mnt/sdcard/wwwroot

手机内存wwwroot目录:/mnt/sdcard2/wwwroot

 

此方法很适合手机ROM内存的机油

转自:http://jingyan.baidu.com/article/25648fc1a347ce9191fd00f6.html

修改anmpp默认网页路径

原文:http://www.cnblogs.com/luohaolqitfk/p/4367837.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!