Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache 2.0: Cannot automatically server index.html

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache PHP4 bzw php dos not start with my vserver  
Author Message
jjosephs

External


Since: Aug 22, 2003
Posts: 1



(Msg. 1) Posted: Fri Aug 22, 2003 6:59 pm
Post subject: Apache 2.0: Cannot automatically server index.html
Archived from groups: alt>apache>configuration (more info?)

I am running 2.0.40 on Redhat 8.0 and I cannot get the server
display the index.html when I go to http://www.mydomain.com.
Instead, I get the
If I specify http://www.mydomain.com/index.html, then the page
is returned properly.

I first tried configuring Apache using the GUI tool and then I
tried editing the httpd.conf manually. I have read the 2.0
documentation in search of a directive that would enable
me to specify the default files the server should look
for in a directory, but I have not yet come across it

I am trying to serve name-based virtual hosts, with only one
defined so far:

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# Virtual hosts
#
<VirtualHost *:80>
DocumentRoot /var/www/mydomain/
ServerAdmin webmaster RemoveThis @mydomain.com
ServerName www.mydomain.com
ServerAlias mydomain.com
</VirtualHost>

Thanks,
Jerald

 >> Stay informed about: Apache 2.0: Cannot automatically server index.html 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Fri Aug 22, 2003 8:56 pm
Post subject: Re: Apache 2.0: Cannot automatically server index.html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jerald Josephs <jjosephs DeleteThis @pacbell.net> wrote:
 > Instead, I get the
 > If I specify <a style='text-decoration: underline;' href="http://www.mydomain.com/index.html," target="_blank">http://www.mydomain.com/index.html,</a> then the page

Check in the httpd.conf file if you have DirectoryIndex index.html
for your DocumentRoot directory.

 > <VirtualHost *:80>
 > DocumentRoot /var/www/mydomain/
 > ServerAdmin webmaster DeleteThis @mydomain.com
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.mydomain.com</font" target="_blank">www.mydomain.com</font</a>>
 > ServerAlias mydomain.com

  <Directory /var/www/mydomain>
   DirectoryIndex index.html
  </Directory>

 > </VirtualHost>

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache 2.0: Cannot automatically server index.html 
Back to top
Login to vote
admin36

External


Since: Sep 23, 2003
Posts: 6



(Msg. 3) Posted: Wed Sep 24, 2003 11:37 am
Post subject: Re: Apache 2.0: Cannot automatically server index.html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> wrote in message
news:bi5lha$5gugd$3@ID-18487.news.uni-berlin.de...
 > Jerald Josephs <jjosephs RemoveThis @pacbell.net> wrote:
  > > Instead, I get the
  > > If I specify <a style='text-decoration: underline;' href="http://www.mydomain.com/index.html," target="_blank">http://www.mydomain.com/index.html,</a> then the page
 >
 > Check in the httpd.conf file if you have DirectoryIndex index.html
 > for your DocumentRoot directory.

Doesnt Apache2 use apache2.conf ?

 >
  > > <VirtualHost *:80>
  > > DocumentRoot /var/www/mydomain/
  > > ServerAdmin webmaster RemoveThis @mydomain.com
<font color=green>  > > ServerName <a style='text-decoration: underline;' href="http://www.mydomain.com</font" target="_blank">www.mydomain.com</font</a>>
  > > ServerAlias mydomain.com
 >
 > <Directory /var/www/mydomain>
 > DirectoryIndex index.html
 > </Directory>
 >
  > > </VirtualHost>
 >
 > Davide

Paul<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache 2.0: Cannot automatically server index.html 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Wed Sep 24, 2003 1:05 pm
Post subject: Re: Apache 2.0: Cannot automatically server index.html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Paul Kirby <admin DeleteThis @initcorp.co.uk> wrote:
 > Doesnt Apache2 use apache2.conf ?

From the Apache 2 documentation:

<QUOTE>
Apache is configured by placing directives in plain text configuration files.
The main configuration file is usually called httpd.conf.
</QUOTE>

See <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/configuring.html" target="_blank">http://httpd.apache.org/docs-2.0/configuring.html</a>

Of course, you can always change the configuration file name and
pass to the httpd daemon the configuration file to use.

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache 2.0: Cannot automatically server index.html 
Back to top
Login to vote
admin36

External


Since: Sep 23, 2003
Posts: 6



(Msg. 5) Posted: Wed Sep 24, 2003 2:17 pm
Post subject: Re: Apache 2.0: Cannot automatically server index.html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.TakeThisOut@onlyforfun.net> wrote in message
news:bkrq9p$53u1l$5@ID-18487.news.uni-berlin.de...
 > Paul Kirby <admin.TakeThisOut@initcorp.co.uk> wrote:
  > > Doesnt Apache2 use apache2.conf ?
 >
 > From the Apache 2 documentation:
 >
 > <QUOTE>
 > Apache is configured by placing directives in plain text configuration
files.
 > The main configuration file is usually called httpd.conf.
 > </QUOTE>
 >
<font color=purple> > See <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/configuring.html</font" target="_blank">http://httpd.apache.org/docs-2.0/configuring.html</font</a>>
 >
 > Of course, you can always change the configuration file name and
 > pass to the httpd daemon the configuration file to use.

Hmmm
I guess, but mine was called apache2.conf by default.
But whats a name Razz as long as it works Smile

 > Davide

Paul<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache 2.0: Cannot automatically server index.html 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache not displaying index.html.en - Hey all, Just installed Apache 2. When i type http://server/manual - i get a 404 If i type http://server/manual/index.html.en it works, and shows the index page. Also, any link from the index page fails, because the links are to ..html but the files..

CGI issue when returning to index.html - I have a slight issue with my website. Most of the pages are generated by Perl and they all function correctly apart from when someone logs off. When a user clicks the logoff button, the page just goes blank instead of loading index.html (frame page..

Apache2.0.47 can't get index.html.var working - Hi, i upgraded from a apache1 to a apache 2.0.47. Since then, i am not able to view documents in the right language. This doesn't work too in the default /manual section from apache (default installation). I always get the page like: URI: index.html.d...

noindex.html page on my Apache 2.0.40 Redhat 9 Server - Since I didn't got a reply yet on my previous posting I might as well try this in a different format. (and different question style) The issue is that, what ever I change in the config, I continously get the noindex.html page saying that this is RedHat....

Apache HTML Header Injection - Hi, Does anyone know of a way that I can inject some html code into the header of every html document requested from my Linux Apache Web Server. I am developing a very simple PHP/Mysql company intranet and would like an easy way to insert the company..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]