Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

File Not Found - only on PHP files (Bitbucket Server)

Jaan Ergin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 8, 2018

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.

 

 BB_File_PHP_Error.jpgBB_File_Norm_Ok.jpg

 

1 answer

1 accepted

1 vote
Answer accepted
Anton Shaleev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 8, 2018

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 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events