具體環(huán)境為nginx+php,欲配置phpmyadmin?,F(xiàn)在的問題是訪問主機(jī)域名,html目錄下php可以正常運(yùn)行。但是訪問phpmyadmin.xxxxx.com域名,html/phpmyadmin下文件會(huì)通過瀏覽器下載。各種搜索改參數(shù)無果,求支援。具體nginx.conf參數(shù)如下:server{listen80;server_namelocalhost;roothtml;access_loglogs/host.access.logmain;location/{}#error_page404/404.html;#redirectservererrorpagestothestaticpage/50x.html#error_page500502503504/50x.html;location=/50x.html{roothtml;}location~\.php?${fastcgi_pass127.0.0.1:9000;fastcgi_indexindex.php;fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;includefastcgi_params;}location~/\.ht{denyall;}}includevhost/*.conf;vhosh/*.conf配置如下server{listen80;server_namephpmyadmin.xxxxx.com;roothtml/phpmyadmin;#charsetkoi8-r;access_loglogs/phpmyadmin.access.logmain;#error_loglog/phpmyadmin.error.logmain;location/{indexindex.htmlindex.htmindex.php;}}
nginx關(guān)于php的二級(jí)域名+子目錄問題
手掌心
2019-04-21 20:21:25