Solved

Apache subdirectory Not Found

Posted on 2010-09-11
7
626 Views
Last Modified: 2012-08-13
i am a complete newbie to apache, but have got the server to work on Windows 2003 serving a folder "www" where index.html is displayed nicely.
however, i have a created a subfolder under "www", and i cannot manage to give access to another index.html file under that subfolder? what is wrong with my directives below? when i browse to http://localhost/expo/ on the server machine i get the error message:
---
Not Found
The requested URL /expo/ was not found on this server.
---
<Directory "C:/Program Files/csvn/www/expo">

  AllowOverride All

  Options All

  Order allow,deny

  Allow from all

</Directory>

Open in new window

0
Comment
Question by:KristjanLaane
  • 4
  • 2
7 Comments
 

Author Comment

by:KristjanLaane
ID: 33652601
sorry, i got that to work, my question is actually when i browse to teh expo directly and there is no index.html in there , why does it not show me a listing of the files in that directory, because Options All is on, which shoudl incorporate Indexes:

Indexes:       If a URL which maps to a directory is requested, and there       is no DirectoryIndex       (e.g., index.html) in that directory, then       mod_autoindex will return a formatted listing       of the directory.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 33654831
You may have a problem with it being under "C:/Program Files/" because that requires special privileges.  You should put it under "C:/csvn/www/expo" so it only has to deal with it's own privileges.
0
 
LVL 21

Accepted Solution

by:
Julian Matz earned 500 total points
ID: 33654841
Do you have the mod_autoindex module installed/loaded?
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:KristjanLaane
ID: 33656096
i see! autoindex seems not to be loaded, but when i add the below line to httpd.conf then the server refuses to start?



LoadModule autoindex lib/modules/mod_autoindex.so

Open in new window

0
 
LVL 21

Assisted Solution

by:Julian Matz
Julian Matz earned 500 total points
ID: 33657130
You should be able to get more information about why Apache won't start from Apache's error log.

You could also try running a config test. In Linux, this can be done by running one of these commands:

apachectl configtest
apache2ctl configtest

I'm not sure what it is in Windows, but check if there might be a shortcut in the Windows Start menu - called "Configuartion Test".
0
 

Author Closing Comment

by:KristjanLaane
ID: 33660129
thanks, ill try to find the config test! (im using a special install of apache from collabnet, so will ask them where it might be)
0
 

Author Comment

by:KristjanLaane
ID: 33669576
just to let anyone with similar issues know, i found a solution:

to do config test:
httpd -t -f data\conf\httpd.conf

(see http://subversion.open.collab.net/ds/viewMessage.do?dsForumId=4&dsMessageId=382859 )

the above syntax was wrong, the line should be:
LoadModule autoindex_module lib/modules/mod_autoindex.so

(see http://subversion.open.collab.net/ds/viewMessage.do?dsForumId=4&dsMessageId=382916)
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now