Hello.
We are using Bitbucket server and it seems as though an error has developed from nowhere.
I am able to pull/commit, etc, and everything works fine.
When it comes to viewing files, all the files appear to display fine when clicked on, other than php files, which bitbucket gives the error 'File Not Found', even though the file is there.
I have included 2 screenshots, one shows the error produced when attempting to view PHP file and the other shows that an .MD file works fine.
Any help/advice highly appriciated.
Hi Jaan
That's really interesting behavior! From the screenshots, it looks like *.php in the URL is recognized as a directive to use PHP interpreter to the file and as the actual file does not exist on the server it's showing you "file not found".
Most probably you're using Bitbucket with some reverse proxy (Apache, NGINX) in the setting of which is set to process all the URI with *.php mask as PHP files.
For example for NGINX the directive is:
location ~* \.php$
Regards
Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.