How to allow only certain files in Apache?

What does Apache actually do?

  • I'm running a web server on linux, ubuntu and have apache2 installed. I'm not actually sure what this does? allthough I know my server does not host websites unless I have apache installed. does it jsut allow me to host PHP and HTML files? Thanks, will pick bvest answer

  • Answer:

    Apache is a program that attaches itself to port 80 and waits for requests. If you don't have any plug-ins installed, all it can do is serve up HTML pages. If you have mod_php installed, it can run PHP scripts, which generate HTML pages (yes, that's actually what your script is doing) and then send that to the client. If you have mod_wsgi installed, it will run a Python program to generate the appropriate page. And so on with pretty much every other language out there.

steakyfa... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.