Jump to content

Recommended Posts

Hi everyone !

I have a problem and i haven't got any time, so please excuse me for not thoroughly checking the forum for a solution.

When i set up the apache everything is okay, but i forgot how to tell apache to recognize subdirs - what i mean :

i have set up the doc root to " d:/webroot " and the apache takes the index.html/htm/php/etc from there, so when i type in the browser " http://my.ip.address./ " it takes, for example, the index.php file. That's normal, but i forgot how to tell apache to do the same thing for, lets say : " http://my.ip.address/ha ". If i type ip " http://my.ip.address/ha/index.php " it works, but if i type in only " http://my.ip.address/ha " it doesn't ...

So, can anyone help ?

Thank You all in advance ! :)

rgds

Link to comment
https://forums.phpfreaks.com/topic/100370-solved-subdir-visibility/
Share on other sites

I have a problem and i haven't got any time, so please excuse me for not thoroughly checking the forum for a solution.

 

One would think that is you are in a hurry it would be quicker to search for an existing answer rather than have to wait for a response. Anyways, to answer your question, make sure your DirectoryIndex directive is set within your httpd.conf file. eg;

 

DirectoryIndex index.php

I fixed it :} It's just that i last worked with apache a long time ago ... and a few days ago a friend asked me for help and i was in a rush to help him as fast as i could, but i didn't remember even the basics of workin' with apache :} And a very disturbing situation occurred  :D

So anyway - thank you :)

This is  a nice forum - i had some to look through it today and it seems very helpful :}

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.