Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Conversation

Niduroki
Copy link

@Niduroki Niduroki commented Aug 3, 2014

@josh4trunks
Copy link
Contributor

👍

This is already how I do it, though I use the below. Not sure if owncloud actually ever uses arguments
try_files $uri $uri/ /index.php?$args;

@carlaschroder
Copy link
Contributor

👍

@MorrisJobke
Copy link
Contributor

I guess this will only work if the instance is installed in the webservers root folder, or am I completely wrong?

@josh4trunks
Copy link
Contributor

that's what I would suspect. but the entire doc needs webroot added in that case so I don't think that's an issue.

i just noticed this won't make a difference until #10755 so I may need to retest with that commit.

@josh4trunks
Copy link
Contributor

looking at some sample configs, yes webroot would need to be added.

also the way to do this is /index.php$is_args$args

$is_args = ? or nothing depending on if arguments exist.

@Niduroki Niduroki force-pushed the nginx_routes_to_index.php branch from 7c75282 to 4e59c6c Compare October 3, 2014 09:36
carlaschroder pushed a commit that referenced this pull request Oct 22, 2014
Route calls to index.php via try_files with nginx
@carlaschroder carlaschroder merged commit d1b853f into master Oct 22, 2014
@carlaschroder carlaschroder deleted the nginx_routes_to_index.php branch October 22, 2014 23:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants