我一直在尝试使nginx在没有.php或.html扩展名的情况下工作,我需要一些帮助。在此先感谢您的时间!
我尝试了如何使用NGINX从网址中同时删除.php和.html扩展名的解决方案?但是没有效果
这是我当前的nginx配置。它是几个教程的组合,但是可以用。
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# ht
tp://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and …Run Code Online (Sandbox Code Playgroud) nginx ×1