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. |
Just add index.html to your DirectoryIndex and create 2 folders below your DocumentRoot.
|
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? |
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 02:25 AM. |