How do I change defualt directory and index file for Apache (installed via XAMPP)?

The research link you pasted has the first part of the answer to your question, changing the path you want serve but the second part of your question, making it serve "myFile" as the Index is an additional step. See: httpd.apache.org/docs/2.0/mod/mod_dir.ht... So you would add this line inside the relevant tags or even loose in the main httpd. Conf file (see the Context section of the above link for valid places to use this directive): DirectoryIndex myFile.

Ext Hope this helps.

Edit the httpd. Conf file - the DocumentRoot directory can be updated to whichever directory you would like (and that the process has permissions to). See: httpd.apache.org/docs/2.0/mod/core.html#....

Thanks - better site. What about the defualt file? This is separate from the DocumentRoot Directive?

stack.user.0 May 20 at 20:37 The default file in a vanilla Apache setup is typically the one titled 'index' (the DirectoryIndex hint above) and yes, it is separate from the DirectoryRoot directive. The bad news - applying the DirectoryIndex changes the default for every directory. The way to get around that, perhaps, is writing an .

Htaccess file to rewrite/redirect the 'index' URL to your file. – Chad Thompson May 21 at 0:51.

After you make any edits to httpd. Conf or any other configuration file (php. Ini etc) you'll have to restart Apache to see the changes.

A simple thing that many people fail to recognize and something that can be really frustrating for people who are new to this sort of stuff. You could spend hours pottering about wondering why the changes you've made haven't had any effect.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions