LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   unable to view documents from my apache server (https://www.linuxquestions.org/questions/linux-software-2/unable-to-view-documents-from-my-apache-server-97227/)

wendallsan 09-26-2003 02:41 PM

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!

pablob 09-26-2003 08:20 PM

You have to load mime_module.
Search within httpd.conf

pnh73 09-27-2003 03:13 PM

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.


All times are GMT -5. The time now is 02:07 AM.