caddy: fastcgi with more than 1 file extension causes error
1. What version of Caddy are you running (caddy -version)?
windows7 & FreeBSD armv7 0.9.5
2. What are you trying to do?
add filetype .phtml on the fastcgi ext
3. What is your entire Caddyfile?
fastcgi / 127.0.0.1:9000 php {
ext .php .phtml
}
4. How did you run Caddy (give the full command and describe the execution environment)?
service caddy start
5. Please paste any relevant HTTP request(s) here.
php is runing; but phtml not,only show source code
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 30 (12 by maintainers)
Commits related to this issue
- fastcgi: Support multiple path splitters (close #1564) — committed to caddyserver/caddy by mholt 4 years ago
I’ve looked at this in V2 and cant see how more than one extension can be specified, so this is still outstanding. It seems necessary to be able to specify multiple extensions in these 2 places
and (although I presume I can already here)
I will try to test this.
@tobya no, it hasn’t been fixed. Since there has been no objections all this while, I’ll go ahead with my suggestion by removing
splitin favour ofext.I should have time for this within the next week.
Yeah you can.
I’ve been able to reproduce this.