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

nginx nginx.conf ?? #50

Closed
ghs619 opened this issue Aug 14, 2017 · 2 comments
Closed

nginx nginx.conf ?? #50

ghs619 opened this issue Aug 14, 2017 · 2 comments
Labels

Comments

@ghs619
Copy link

ghs619 commented Aug 14, 2017

apache:

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php/$1 [L]

RewriteCond %{HTTP:Authorization} ^(.)
RewriteRule .
- [e=HTTP_AUTHORIZATION:%1]

nginx ????

@chriskapp
Copy link
Member

Hi, so your nginx conf must basically redirect all incoming requests to the index.php file. In the server block you could try the following config:

location / {
    try_files $uri $uri/ /index.php;
}

Also it is important that the Authorization header is redirected to the index.php so that Fusio can read the bearer tokens.

@chriskapp
Copy link
Member

I close this issue since it looks like the problem was solved. If this is not the case feel free to reopen the issue.

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

No branches or pull requests

2 participants