nginx如何配置alias到phpmyadmin
这篇文章主要介绍了nginx如何配置alias到phpmyadmin,具有一定借鉴价值,需要的朋友可以参考下。希望大家阅读完这篇文章后大有收获。下面让小编带着大家一起了解一下。
说明1)网站localhost存放目录:D:/localhost,访问地址:http://localhost/2)phpmyadmin的程序存放目录:D:/wamp/apps/phpmyadmin4.1.14需求
将localhost的phpmyadmin别名指向D:/wamp/apps/phpmyadmin4.1.14目录。实现
server{listen80;server_namelocalhost127.0.0.1;rootd:/localhost;indexindex.htmlindex.htmindex.php;autoindexon;autoindex_exact_sizeoff;autoindex_localtimeon;location/phpmyadmin/{aliasD:/wamp/apps/phpmyadmin4.1.14;indexindex.php;}location~\.php${try_files$uri=404;fastcgi_pass127.0.0.1:9000;fastcgi_indexindex.php;fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;includefastcgi_params;}#error_page404/404.html;#redirectservererrorpagestothestaticpage/50x.html#error_page500502503504/50x.html;location=/50x.html{roothtml;}location~/\.(ht|svn|git){denyall;}}错误
1)一直都实现不了。2)如果是Apache就非常方便直接alias/phpmyadminD:/wamp/apps/phpmyadmin4.1.14就可以
感谢你能够认真阅读完这篇文章,希望小编分享nginx如何配置alias到phpmyadmin内容对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,遇到问题就找亿速云,详细的解决方法等着你来学习!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。