Php nginx重写文件位置
在我的应用程序中,我尝试链接Php nginx重写文件位置,php,nginx,rewrite,directory,lighttpd,Php,Nginx,Rewrite,Directory,Lighttpd,在我的应用程序中,我尝试链接http://domain.com/accounts/login和/accounts/register到http://domain.com/accounts.php?action=$其中$是:http://domain.com/accounts/$ 我不知道在哪里定义重写和写什么 我可以通过SSH访问整个VPS,但我不确定要编辑哪个文件。那么文件在哪里 我检查了/opt/文件夹,它似乎是空的。我可能正在运行lighttpd,所以您能帮我解决这两个问题吗?否则,您能否告
http://domain.com/accounts/login
和/accounts/register
到http://domain.com/accounts.php?action=$
其中$
是:http://domain.com/accounts/$
我不知道在哪里定义重写和写什么
我可以通过SSH访问整个VPS,但我不确定要编辑哪个文件。那么文件在哪里
我检查了/opt/文件夹,它似乎是空的。我可能正在运行lighttpd,所以您能帮我解决这两个问题吗?否则,您能否告诉我如何检查我是否使用lighttpd。rewrite/accounts/(login | register)/accounts.php?action=$1
我们应该做到这一点。将它放在
服务器
(或位置
)指令中。哦,文件将位于Nginx安装所在的conf
目录中。如果找不到,请尝试使用find/-name nginx
。谢谢,我的特定域nginx conf位于/etc/nginx/enabled sites中/