PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Apache basic usage
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Apache basic usage

Réponse
 
LinkBack Outils de la discussion
Vieux 05/06/2007, 08h52   #1
Stefano Chiappa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache basic usage

Hi all,
I have a really silly question on Apache, but I cannot find the
solution. I'm using Apache on a CentOS 5 distribution (it is pratically
Red Hat 5). I have prepared a simple index.html file and I put it on
/var/www/html, but when I try to connect to the web server I get the
default Apache's screen which says I put nothing in /var/www/html. If I
refer in the browser www.mysite.com/index.html I get my page. Is there
some way to tell Apache to use index.html as default?

Thank you for
Stefano Chiappa
  Réponse avec citation
Vieux 05/06/2007, 14h48   #2
Mark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache basic usage

Stefano Chiappa <stefanoc@saparawimi.is> wrote in news:4665163c$0$21209
$5fc30a8@news.tiscali.it:

> Hi all,
> I have a really silly question on Apache, but I cannot find the
> solution. I'm using Apache on a CentOS 5 distribution (it is pratically
> Red Hat 5). I have prepared a simple index.html file and I put it on
> /var/www/html, but when I try to connect to the web server I get the
> default Apache's screen which says I put nothing in /var/www/html. If

I
> refer in the browser www.mysite.com/index.html I get my page. Is there
> some way to tell Apache to use index.html as default?
>
> Thank you for
> Stefano Chiappa
>


In the httpd.conf file:

DirectoryIndex index.html


But that should also be default for installations. Maybe there is
something else wrong. Check also for DocumentRoot and be sure it is
/var/www/html


And, sometimes people get bit by the trailing slash bug... try also:

http://www.mysite.com/





--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 05/06/2007, 15h16   #3
Stefano Chiappa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache basic usage

Thank you,

I changed httpd.conf file and everything worked.
Stefano


Mark wrote:
> Stefano Chiappa <stefanoc@saparawimi.is> wrote in news:4665163c$0$21209
> $5fc30a8@news.tiscali.it:
>
>> Hi all,
>> I have a really silly question on Apache, but I cannot find the
>> solution. I'm using Apache on a CentOS 5 distribution (it is pratically
>> Red Hat 5). I have prepared a simple index.html file and I put it on
>> /var/www/html, but when I try to connect to the web server I get the
>> default Apache's screen which says I put nothing in /var/www/html. If

> I
>> refer in the browser www.mysite.com/index.html I get my page. Is there
>> some way to tell Apache to use index.html as default?
>>
>> Thank you for
>> Stefano Chiappa
>>

>
> In the httpd.conf file:
>
> DirectoryIndex index.html
>
>
> But that should also be default for installations. Maybe there is
> something else wrong. Check also for DocumentRoot and be sure it is
> /var/www/html
>
>
> And, sometimes people get bit by the trailing slash bug... try also:
>
> http://www.mysite.com/
>
>
>
>
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h43.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12191 seconds with 11 queries