Rewrite Rule translate from Lighttpd to NginX
Not quite sure where to start from here. I have this rewrite rule that we
used for our apps using lighttpd and we're contemplating of moving the web
server to NginX for standardization.
Lighttpd config line inside the lighttpd.conf:
url.rewrite-once = (
".*\?(.*)$" => "/index.php?$1",
"^/js/.*$" => "$0",
"^.*\.(js|ico|gif|jpg|png|css|swf |jar|class)$" => "$0",
"" => "/index.php"
)
How do I convert this line to usable configuration line in NginX? I'm not
even sure what to provide to you all to help with understanding the line.
All I know is that when we remove those lines from lighttpd, the apps stop
working. I have our NginX working on a standard Php with Php-fpm on centos
6.4. when I use the phpinfo file, NginX was able to generate the info but
when we installed the apps it errored with this error inside the error log
file.
2013/08/12 21:51:00 [error] 18844#0: *16 open()
"/var/www/html/myapps/public/user/login" failed (2: No such file or
directory), client: 192.168.8.100, server: _, request: "GET /user/login
HTTP/1.1", host: "192.168.8.215"
Please advise on additional information I can provide to help with the
translation? I wasn't even sure whether this is an NginX problem or apps
problem. Many thanks in advance for all of your help.
No comments:
Post a Comment