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

adding support for php including clean urls and wordpress permalinks #1

Merged
merged 3 commits into from
Apr 26, 2015
Merged

adding support for php including clean urls and wordpress permalinks #1

merged 3 commits into from
Apr 26, 2015

Conversation

thomas4019
Copy link

No description provided.

// ServeHTTP satisfies the middleware.Handler interface.
func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
servedFcgi := false
indexFile := "index.php"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgive me if i'm wrong, but aren't you making it so it ONLY allows php?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is specifically for PHP, which is my use case. This code needs to be generalized before merging in (specifically these variables should be configurable parameters in the CaddyFile). I've been discussing how best to do this with @mholt and he will be taking a look. Thanks for helping me clarify.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep - we sat down yesterday and talked about this. I'll be working on it today to generalize it. Thanks for double-checking @norwack! We're both glad to have the feedback.

@thomas4019
Copy link
Author

Matt Holt helped me generalize the fastcgi parameters and I've added the changeds into this pull request.

mholt added a commit that referenced this pull request Apr 26, 2015
adding support for php including clean urls and wordpress permalinks
@mholt mholt merged commit cd53ec9 into caddyserver:master Apr 26, 2015
@mholt
Copy link
Member

mholt commented Apr 26, 2015

Yesss - thank you, sir! Good detective work. This is a most excellent start.

mholt pushed a commit that referenced this pull request Sep 20, 2015
@weingart weingart mentioned this pull request Apr 8, 2016
@hernandev hernandev mentioned this pull request Aug 7, 2016
mholt pushed a commit that referenced this pull request Jul 2, 2019
Cleanly fake-close listeners

* WIP debugging listener deadlines

* Fix listener deadlines
mholt added a commit that referenced this pull request Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants