Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-26-2003, 03:41 PM   #1
Registered: Jun 2003
Posts: 36

Rep: Reputation: 15
unable to view documents from my apache server

Hi all,

I'm working through the O'Reilly Apache book and am having a hard time getting things to run correctly on my desktop system. I have set up Apache on my laptop and it is running great there, and I'm not sure what the difference is between the 2 versions.

I fire up httpd and then go to http: //localhost in my web browser. Instead of getting a generated list of files in the htdocs directory on my webserver (this is what happens on my laptop), I get the message "The requested URL / was not found on this server."

If I go directly to a document that I know exists in my htdocs directory (1.html, for example), by typing http: //localhost/1.html into my web browser, I get a pop-up dialog asking me where I want to download this file to, instead of it being rendered in my web browser window.

What have I done to have these things happen? Did I misconfigure the server when I compiled it, or is there something in my config file that's screwing this up? I put a directive to set up my mime types (TypesConfig conf/mime.types) in my config file, but when I try to start httpd with that directive in my config, I get the error:

Syntax error on line 16 of /apache/APACHE3/site.simple/conf/httpd.conf:
Invalid command 'TypesConfig', perhaps mis-spelled or defined by a module not included in the server configuration

The O'Reilly books says this ought to work for the mime type configuration, but it's not doing much for me. My Apache server on my laptop runs fine w/o this directive anyway, so I'm not sure what's going on.

Any suggestions? Thanks in advance!
Old 09-26-2003, 09:20 PM   #2
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
You have to load mime_module.
Search within httpd.conf
Old 09-27-2003, 04:13 PM   #3
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
the directory problem maybe a permissions problem. Does the directory have execute permissions (x) ? This means that the contents of the directory can be listed as opposed to just being read (if you understand the difference, if it has read access then you can read 1.html but not list the contents). i would recommend chmod 755 on your directories. This will give rwxr-xr-x permissions.


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
How to view Rich Text Format documents edwal Linux - Newbie 1 04-06-2005 03:16 PM
web server, unable to view test page gigya Linux - Software 1 01-30-2004 11:34 AM
Can't view apache server files on lan Remy Avril Jr. Linux - Newbie 18 10-20-2003 09:38 AM
Setup linux-apache server to access documents on NT server josephswagner Linux - Software 11 04-11-2003 09:35 AM
Can't view MSWord documents in KWord freezinbutt Linux - Newbie 6 04-06-2002 07:58 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 AM.

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