4
更改永久链接在Nginx上给我404错误
编辑 事实证明,由于nginx不使用它,所以我试图编辑.htaccess时出错了。我显然需要做的是编辑.conf文件。在我阅读本文之前,my_app.conf看起来像这样: upstream backend { server unix:/u/apps/my_app/tmp/php.sock; } server { listen 80 default; root /u/apps/my_app/www; index index.php; access_log /u/apps/my_app/logs/access.log; error_log /u/apps/my_app/logs/error.log; location / { try_files $uri $uri/ /index.php; } # This location block matches anything ending in .php and sends it to # our PHP-FPM socket, defined in the upstream …