After a successful upload configuration nginx fastdfs reported 404 bad request access but two solutions

Method one: Modify the configuration file add a line nginx.conf user root

Method two: Configuration  /etc/fdfs/mod_fastdfs.conf 

url_have_group_name = false changed to true (using the group name to access)


The last two methods have to perform nginx -s reload to reload the configuration file to take effect, and finally we can visit

Note that if both are not used the effect is likely to be a firewall is not turned off

Turn off the firewall:

service firewalld stop // stop firewall

service firewalld disable // permanently stop

If that does not make it completely off the firewall and then perform a setenforce 0 (turn off the built-in firewall, executing the sentence does not appear before the entry into force of a 404 error)

Reference article:  http://blog.csdn.net/appleyk/article/details/78026296


Published 17 original articles · won praise 22 · Views 100,000 +

Guess you like

Origin blog.csdn.net/u013255206/article/details/78248612