Is Nginx supported ?

453 views
Skip to first unread message

Lars Juul

unread,
Feb 24, 2015, 3:22:59 AM2/24/15
to easy-app...@googlegroups.com
Hello,

Is Apache required, or can EASY!Appointments also run on Nginx ?

Regards,
Lars

Alex Tselegidis

unread,
Mar 5, 2015, 3:05:01 PM3/5/15
to easy-app...@googlegroups.com
Hi there, 

I haven't tried that to be honest but I think that if you setup PHP you shouldn't have a problem. 
You just have to figure out how to handle the URL redirections the same way Apache does because the app is based on that.

Lars Juul

unread,
Mar 5, 2015, 6:32:00 PM3/5/15
to easy-app...@googlegroups.com
Hello,

Then my rewrite rules may be off, I have changed them a few times until it called the right file, but Nginx seem to dislike the part after the file name.

I have EAsy Appointment in a subfolder called massage, so my rewrite rule are in Nginx:

        location /massage {
                if (!-e $request_filename) {
                        rewrite ^/massage/(.*)$ /massage/$1 break;
                }
        }

That calls the right file (I think), but the server chokes on the last part:

 request: "POST /massage/index.php/appointments/ajax_install HTTP/1.1"

The server fails trying opening:

/..path../public_html/massage/index.php/appointments/ajax_install


Alex Tselegidis

unread,
Mar 11, 2015, 4:54:54 PM3/11/15
to easy-app...@googlegroups.com
I'm sorry, I have no experience with Nginx servers. I hope someone else from this community can help you with rewriting rules.

Lars Juul

unread,
Apr 21, 2015, 12:24:05 PM4/21/15
to easy-app...@googlegroups.com
I got it to work, if the folder is named "massage" then NGINX rewrite rules works written like this:

        location /massage {
                if (!-e $request_filename) {
                        rewrite ^/massage/(.*)$ /massage/index.php?$1 last;
                }
        }

Anthony Takata

unread,
Apr 22, 2015, 1:05:48 AM4/22/15
to easy-app...@googlegroups.com
I managed to get it working without rewrite (which for some reason forced a rewrite of everything, including assets).
 
# Test thecalendar rewrite
        location /thecalendar {
             root /mnt/www;
             try_files $uri /thecalendar/index.php;
        }

I disabled directory lookups, not supposed to be doing that anyways, ;)
Reply all
Reply to author
Forward
0 new messages