LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-13-2003, 05:11 PM   #1
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Rep: Reputation: 15
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 ?
 
Old 07-13-2003, 07:34 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 07-13-2003, 07:49 PM   #3
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Original Poster
Rep: Reputation: 15
Hi MasterC,

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

Sorry for any inconveniences !
 
Old 07-13-2003, 08:55 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
No problem, answering questions on here is definitely not an inconvenience Glad you figured it out.

Cool
 
Old 07-15-2003, 08:31 PM   #5
KOmaSHOOTER
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
Question 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 ...
 
Old 07-16-2003, 01:22 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 07-16-2003, 02:57 AM   #7
KOmaSHOOTER
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
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

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

Last edited by KOmaSHOOTER; 07-16-2003 at 03:13 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Apache 2 Page linutzy Linux - Newbie 7 08-02-2005 07:18 PM
Apache default page dienerk Linux - General 4 10-22-2004 01:02 PM
setting up default page in apache watts3000 Linux - Networking 2 09-25-2004 07:56 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
apache default page davee Linux - Newbie 6 02-17-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:33 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
Open Source Consulting | Domain Registration