httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kernel.2k5" <>
Subject Re: [users@httpd] URGENT Attention Problem
Date Wed, 30 Jan 2008 18:28:11 GMT

HI All , Now I tried with this new Code . but nothings works as , Now
Its really needs to work as we all predict.
have a look


ServerName localhost:80



DocumentRoot /var/www/html/site1



DocumentRoot /var/www/html/site2
Alias /about /var/www/html/site2/about/index.html
Alias /feedback /var/www/html/site2/feedback.html



DocumentRoot /var/www/html/site4
Alias /about /var/www/html/site4/about/index.html
Alias /feedback /var/www/html/site4/feedback.html
Alias /useme /var/www/html/site4/index2.html
Alias /cp1 /var/www/html/site4/index3.html
Alias /foo /var/www/html/site4/foo.php


---------------------------------------httpd.conf Ends---------------

Now when i try in FireFox ----------It works ----------It works  ----------It wont redirect to page
/about/index.html  means it wont works

It gives me a message like -------------

"The document you requested was not found. May we suggest our home page
 same for /feedback too.

Now then i tried  --------Nothings works and it opens .  --------Nothings works.  --------Nothings works .

but when i tried  -------- it works and open the default index page .  -------- it works and open the default
index page .  -------- it works and open the default
feedback.html page .   -------- it works and open the default
foo.php page . and cp1   -------- it wont works and give
the error Object not found 404.

I am confused ,what apache want me to do .Or i am making any mistakes Now .

Plz help me .

Thanks to all of you !!!!

Krist van Besien wrote:
> On Jan 30, 2008 1:24 PM, kernel.2k5 <> wrote:
>> if i type in URL ....
>> * *
>> then it must open the Alias of its that is index.php page but its not
>> working
> You are not telling the server which of the two virtual hosts you want
> the content to come from. In that case the server passes your request
> to the first virtual host, which might not be what you want.
> Name based virtual hosts work only when you access a webserver using
> it's _name_. Try requesting
> Don.t use IP adresses.
> Secondly, you have an alias "/about". this will not be used when you
> try accessing "/fotostick/about". Try accessing
> If you want "/fotostick/about" to be aliased somewhere you will need
> to add a line like this:
> Alias /fotostick/about /var/www/html/fotostick/index.php
> Krist

With Best Regards

Mr.Shailesh Bhutada

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message