Apache basic usage

Apache basic usage

am 05.06.2007 09:52:27 von Stefano Chiappa

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 help
Stefano Chiappa

Re: Apache basic usage

am 05.06.2007 15:48:51 von mark

Stefano Chiappa 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 help
> 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 =----

Re: Apache basic usage

am 05.06.2007 16:16:47 von Stefano Chiappa

Thank you,

I changed httpd.conf file and everything worked.
Stefano


Mark wrote:
> Stefano Chiappa 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 help
>> 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/
>
>
>
>
>