LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache default page?? (https://www.linuxquestions.org/questions/linux-general-1/apache-default-page-72393/)

andy18 07-13-2003 05:11 PM

Apache default page??
 
Hi,

One of the domain is showing the Apache default page instead of the index file in the root folder.

The domain is working well before this.Any ideas ?

MasterC 07-13-2003 07:34 PM

Do you have:
DocumentRoot
Set to the correct location? Do you have mod_autoindex and mod_dir loading? Do you have:
Code:

<IfModule mod_dir.c>
    DirectoryIndex index.html
</IfModule>

below that?

:)

Cool

andy18 07-13-2003 07:49 PM

Hi MasterC,

Just found the cause.It is due to missing entry in the httpd.conf file.:p My careless mistake ...

Sorry for any inconveniences !

MasterC 07-13-2003 08:55 PM

No problem, answering questions on here is definitely not an inconvenience ;) Glad you figured it out.

Cool

KOmaSHOOTER 07-15-2003 08:31 PM

editing the auto index file from apache webserver
 
is ther a way to edit the autoindex-HTML file for spezial folders

with php i get error messages

Quote:

Warning: main(bilder/index.html): failed to open stream: No such file or directory in ...

MasterC 07-16-2003 01:22 AM

Most likely. I'm sure Apache has documentation on it, but here's my stab. Use a <Directory> Directive, with the <IfModule> inside, so something like:
<Directory /bilder>
<IfModule mod_autoindex.c>
IgnoreIndex .php
</IfModule>
</Directory>

More info can be found:
http://httpd.apache.org/docs/mod/mod_autoindex.html

Cool

KOmaSHOOTER 07-16-2003 02:57 AM

Quote:

Originally posted by MasterC
Most likely. I'm sure Apache has documentation on it, but here's my stab. Use a <Directory> Directive, with the <IfModule> inside, so something like:
<Directory /bilder>
<IfModule mod_autoindex.c>
IgnoreIndex .php
</IfModule>
</Directory>

More info can be found:
http://httpd.apache.org/docs/mod/mod_autoindex.html

Cool

i want not to ignore a index.php file :tisk:

i will add data to index.html files from spezial folders
like the download page from the Apache server
http://apache.serveftp.org/apache-site/dist/httpd/

( for ftp servers you can use a change dir message (like for g6ftp) )

anyway thx for the link ;)


All times are GMT -5. The time now is 11:31 AM.