Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

index.xml does not act as the default entry for apache?

I need to config my Apache server that shows the content of a index.xml file like a index.html without the need to put it(index.xml) at the end of the URL like this:

http://localhost/xml/details/13986

instead of

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

http://localhost/xml/details/13986/index.xml

Currently, if I remove the index.xml from the URL it shows the files list of that folder in the browser and I need to add index.xml to the end of the URL to get the content.

Note: I need this because some old code using this URL without index.xml and I can’t change it. For some reason, it doesn’t work for me on my computer and I need to add this to the URL to get the content.

Do you have any idea about this config?

>Solution :

Change the configuration in apache2.conf

DirectoryIndex index.html instead of DirectoryIndex index.php

and restart you apache

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading