Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of web.config file in side of Laravel public folder

Tags:

laravel

  • Once we type the www.domain_name.com/web.config in the browser it downloading the web.config file.

  • Is there any vulnerability and what is the use of web.config file in side of Laravel public folder?

like image 239
Malinda Wijekoon Avatar asked Jan 01 '23 20:01

Malinda Wijekoon


1 Answers

The web.config file is used by IIS which is the webserver software from Microsoft. It is basically the .htaccess of the Microsoft ecosystem which together with the rewrite plugin mentioned in the file used to make the pretty urls work under IIS.

There is no harm in having it but no harm in removing it too if you are not using IIS for serving your application.

like image 63
Alex Avatar answered Jan 05 '23 04:01

Alex