LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache directories (https://www.linuxquestions.org/questions/linux-software-2/apache-directories-169671/)

bentman78 04-13-2004 02:34 PM

Apache directories
 
Good evening everyone,
I have apache running with virtual hosts for a few different hosts.

I have a question that I can't seem to find an answer for and it is pretty basic.
I have a url ( www.yoursite.com) and let's say in my web root directory I have a directory called /blog.

I want the url to be www.yoursite.com/blog and it brings up the index page for that url.

Those who know IIS know I am talking about virtual directories. Is there anything I can configure with apache to do that. Basically a whole different website with the domain name. Another example I want a website about ninjas because ninjas kick ass. So when someone plugs in www.yoursite.com/ninjas it brings up the index.html page for the ninja website.

I would appreciate any help and think you in advance.

david_ross 04-13-2004 03:25 PM

Just add index.html to your DirectoryIndex and create 2 folders below your DocumentRoot.

bentman78 04-13-2004 04:40 PM

what about if I want to have the url formatted like this:

www.yoursite.com/ninjas/

and have it go to the index page? same way?

david_ross 04-13-2004 04:44 PM

When you access a directory apache looks for files in the order that they are listed in the DirectoryIndex directive.


All times are GMT -5. The time now is 11:22 PM.