|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 =---- |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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/ > > > > > |
|
![]() |
| Outils de la discussion | |
|
|