You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by sy...@eluminoustechnologies.com on 2003/02/05 10:25:26 UTC

[users@httpd] Virtual domain default page....

Hello All,

I have around 1000 virtual domains on my webserver. Now if I need to point
the non-existing url's to a particular page I do :
ErrorDocument 404 http://yourserver.com/yourerrorpage.html

This works fine. But all the non-existing requests are directed to
http://yourserver.com/yourerrorpage.html even if the request was made from a
virtual domain http://otherdomain.com/. Can I do it domain wise. i.e. if the
non-existing url was reuested from http://otherdomain.com/ it will be
forwarded to http://otherdomain.com/missing.html rather than
http://yourserver.com/yourerrorpage.html.

Thank you,



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual domain default page....

Posted by Peter Janett <ml...@newmediaone.com>.
ErrorDocument 404 /missing.html

That will do it.

Peter Janett

New Media One Web Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New Upgrades Are Now Live!!!
Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1
Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25,
Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PostgreSQL coming soon!

http://www.newmediaone.net
webmaster@newmediaone.net
(303)828-9882


----- Original Message -----
From: "BAO RuiXian" <ba...@atbusiness.com>
To: <us...@httpd.apache.org>
Sent: Wednesday, February 05, 2003 2:55 AM
Subject: Re: [users@httpd] Virtual domain default page....


> Hello,
>
>     Then, I think you need to put each directive
>
>         ErrorDocument 404 http://otherdomain.com/missing.html
>
>     into the corresponding other virtual host.
>
> Best
>
> Bao
>
> system@eluminoustechnologies.com wrote:
>
> > Hello All,
> >
> > I have around 1000 virtual domains on my webserver. Now if I need to
point
> > the non-existing url's to a particular page I do :
> > ErrorDocument 404 http://yourserver.com/yourerrorpage.html
> >
> > This works fine. But all the non-existing requests are directed to
> > http://yourserver.com/yourerrorpage.html even if the request was made
from a
> > virtual domain http://otherdomain.com/. Can I do it domain wise. i.e. if
the
> > non-existing url was reuested from http://otherdomain.com/ it will be
> > forwarded to http://otherdomain.com/missing.html rather than
> > http://yourserver.com/yourerrorpage.html.
> >
> > Thank you,
>
> --
> BAO RuiXian,  SOFTWARE ENGINEER,   Project Consulting,  Software Services
> AtBusiness Communications Corporation, Kaapeliaukio 1, FIN-00180 Helsinki
> Telephone +358-9-2311 6674, Mobile +358-50-329 6275, Fax +358-9-2311 6601
> Web: www.atbusiness.com, Email: {bao.ruixian, ruixian.bao}@atbusiness.com
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual domain default page....

Posted by BAO RuiXian <ba...@atbusiness.com>.
Hello,

    Then, I think you need to put each directive

        ErrorDocument 404 http://otherdomain.com/missing.html

    into the corresponding other virtual host.

Best

Bao

system@eluminoustechnologies.com wrote:

> Hello All,
>
> I have around 1000 virtual domains on my webserver. Now if I need to point
> the non-existing url's to a particular page I do :
> ErrorDocument 404 http://yourserver.com/yourerrorpage.html
>
> This works fine. But all the non-existing requests are directed to
> http://yourserver.com/yourerrorpage.html even if the request was made from a
> virtual domain http://otherdomain.com/. Can I do it domain wise. i.e. if the
> non-existing url was reuested from http://otherdomain.com/ it will be
> forwarded to http://otherdomain.com/missing.html rather than
> http://yourserver.com/yourerrorpage.html.
>
> Thank you,

--
BAO RuiXian,  SOFTWARE ENGINEER,   Project Consulting,  Software Services
AtBusiness Communications Corporation, Kaapeliaukio 1, FIN-00180 Helsinki
Telephone +358-9-2311 6674, Mobile +358-50-329 6275, Fax +358-9-2311 6601
Web: www.atbusiness.com, Email: {bao.ruixian, ruixian.bao}@atbusiness.com



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] View Directory

Posted by Scott Miller <sr...@interbel.net>.
Thanks, way too obvious.

I already had the:

<Directory /path/to/directory>
   Options -Indexes
</Directory>

for each virtual host, just needed to change the "-" to a "+" for this one.

Thanks!

Scott

----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Saturday, March 08, 2003 2:13 PM
Subject: Re: [users@httpd] View Directory


>
> On Sat, 8 Mar 2003, Scott Miller wrote:
> > Is there a way to grant this one
> > domain the ability to do this, or is there a particular cgi script that
I
> > can plug into his cgi-bin to show files in a particular directory?
>
> See:
> http://httpd.apache.org/docs/misc/FAQ.html#indexes
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] View Directory

Posted by Joshua Slive <jo...@slive.ca>.
On Sat, 8 Mar 2003, Scott Miller wrote:
> Is there a way to grant this one
> domain the ability to do this, or is there a particular cgi script that I
> can plug into his cgi-bin to show files in a particular directory?

See:
http://httpd.apache.org/docs/misc/FAQ.html#indexes

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] View Directory

Posted by Scott Miller <sr...@interbel.net>.
My server is set up to not allow viewing of files as such:

www.domain.com/pictures

It will not display a list of files.  I just built a new server and moved
all my customers over to it and this is exactly what i wanted, but now I
have one hosting customer who is a little on the mad side.  Seems as though
he uploads pictures in this format so his customers can view products
without him having to create an html page.  Is there a way to grant this one
domain the ability to do this, or is there a particular cgi script that I
can plug into his cgi-bin to show files in a particular directory?

Thanks,
Scott


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Virtual domain default page....

Posted by Jeff Cohen <ap...@gej-it.com>.
Do:

ErrorDocument 404 /yourerrorpage.html

All the best,
Jeff Cohen

> -----Original Message-----
> From: system@eluminoustechnologies.com
> [mailto:system@eluminoustechnologies.com]
> Sent: Wednesday, February 05, 2003 4:25 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Virtual domain default page....
> 
> Hello All,
> 
> I have around 1000 virtual domains on my webserver. Now if I need to point
> the non-existing url's to a particular page I do :
> ErrorDocument 404 http://yourserver.com/yourerrorpage.html
> 
> This works fine. But all the non-existing requests are directed to
> http://yourserver.com/yourerrorpage.html even if the request was made from
> a
> virtual domain http://otherdomain.com/. Can I do it domain wise. i.e. if
> the
> non-existing url was reuested from http://otherdomain.com/ it will be
> forwarded to http://otherdomain.com/missing.html rather than
> http://yourserver.com/yourerrorpage.html.
> 
> Thank you,
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org