LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-13-2004, 02:34 PM   #1
bentman78
Member
 
Registered: Mar 2003
Location: Washington DC, USA
Distribution: Redhat
Posts: 212

Rep: Reputation: 30
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.
 
Old 04-13-2004, 03:25 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Just add index.html to your DirectoryIndex and create 2 folders below your DocumentRoot.
 
Old 04-13-2004, 04:40 PM   #3
bentman78
Member
 
Registered: Mar 2003
Location: Washington DC, USA
Distribution: Redhat
Posts: 212

Original Poster
Rep: Reputation: 30
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?
 
Old 04-13-2004, 04:44 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache, Blogs, and Which Directories to Use mowestusa Linux - Software 1 09-03-2005 08:55 PM
Apache won't show directories bleedingturnips Linux - Software 1 07-09-2005 01:13 PM
HELP: Apache not recognizing new directories daveselinger Linux - Software 1 01-16-2005 10:54 AM
navigating sub directories with apache ixion Linux - Networking 4 09-22-2003 10:51 AM
browsing directories - apache 1.3.x Marble Linux - Networking 3 05-14-2003 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration