Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Nginx config to fix /login error #312

Open
taylor87654321 opened this issue Apr 25, 2023 · 1 comment
Open

Documentation: Nginx config to fix /login error #312

taylor87654321 opened this issue Apr 25, 2023 · 1 comment

Comments

@taylor87654321
Copy link

Hi all,

I am attempting to get Agendav up and running but keep running into an error. When I try and access the index.php file it auto changes to append a /login to the end. When this happens a 404 Not Found error occurs. Looking at past issues I have seen that the fix generally comes from changing the nginx config file. However, I still cant find an example of what I need to get it running correctly. Everytime a link is given which is no longer working. Does anybody have an example I could use to get it up and running? Or maybe is there a way to circumvent the login? Thanks in advance for any info you can provide.

@pixelbrackets pixelbrackets changed the title Nginx config to fix /login error Documentation: Nginx config to fix /login error Apr 26, 2023
@taylor87654321
Copy link
Author

So after a couple of days of searching and testing I have found something that half works for Nginx with a Baikal server. Below is the code that I currently have:

set $controller /public/index.php;

location /public {
root /var/www/html/agendav/web/;
index index.php;
try_files $uri $uri/ $controller;

  location ~ ^(?<script>.*\.php)(?<pathinfo>.*)$ {
	      try_files $script $controller;
  
      include /etc/nginx/fastcgi_params;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_param PATH_INFO $pathinfo;
      fastcgi_pass unix:/run/php/php7.4-fpm.sock;
      fastcgi_param   APPLICATION_ENV  dev;
  }

}

This seems to allow me to get into the app and hook up with my Baikal server. But, now I am unable to show the events of my calendars. I am so close to getting it up and running and yet it feels so far. I have seen that the problem has been resolved with changing the config file to be slightly different. The link provided before was, http://silex.sensiolabs.org/doc/master/web_servers.html#nginx but that no longer exists. If anybody has solved the problem, it would be much appreciated if you could share your fix.

Thanks in advance for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants