Re: Apache ErrorDocument & virtual hosts
Or allow your customers to use ErrorDocument statements in their .htaccess file by "AllowOverride FileInfo" in your httpd.conf-virtual setup (valid within a section) Then add the following in the .htacess file in your document root. ErrorDocument 401 /errordocs/401.php ErrorDocument 403 /errordocs/403.php ErrorDocument 404 /errordocs/404.php ErrorDocument 414 /errordocs/414.php Where /errordocs/... is a valid *URL* I usually keep the errordocs in an httpd.conf-aliased directory to make sure error docs are shown even when we have access restrictions like passwords in effect. Make sure you understand what issues AllowOverride might have for performance and security. Cheers, Marcel Sean Porth <[EMAIL PROTECTED]> 3 Jan 2002, at 11:46: > Ya just throw a: > ErrorDocument 404 /path-to-error-document > > inside of the virtualhost > > On Thu, 2002-01-03 at 11:38, KOZMAN Balint wrote: > > > > Hi, > > > > Sorry if offtopic, but is it possible to give back > > different 404 error messages via apache based on virtual > > hosts? > > > > Thanks in advance. > > > > Regards, > > > > Balint > > > > > > -- > > To UNSUBSCRIBE, email to > > [EMAIL PROTECTED] with a subject of > > "unsubscribe". Trouble? Contact > > [EMAIL PROTECTED] > > > > > -- > Sean Porth > System Admin > > > Tortus Technologies > 1686 Riverdale Street > West Springfield, MA 01089 > http://www.tortus.com > Phone: 413-788-5080 Fax: 413-785-1901 > > Tortus Technologies: We Make the 'Net Work. -- __ .´ `. : :' ! Enjoy `. `´ Debian/GNU Linux `-
Re: Apache ErrorDocument & virtual hosts
Ya just throw a: ErrorDocument 404 /path-to-error-document inside of the virtualhost On Thu, 2002-01-03 at 11:38, KOZMAN Balint wrote: > > Hi, > > Sorry if offtopic, but is it possible to give back different 404 error > messages via apache based on virtual hosts? > > Thanks in advance. > > Regards, > > Balint > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- Sean Porth System Admin Tortus Technologies 1686 Riverdale Street West Springfield, MA 01089 http://www.tortus.com Phone: 413-788-5080 Fax: 413-785-1901 Tortus Technologies: We Make the 'Net Work.
Re: Apache ErrorDocument & virtual hosts
* [EMAIL PROTECTED] (KOZMAN Balint) [2002.01.03 10:41]: > Sorry if offtopic, but is it possible to give back different 404 error > messages via apache based on virtual hosts? ... ErrorDocument 404 /path/to/error/doc.html -- Cameron Moore
Apache ErrorDocument & virtual hosts
Hi, Sorry if offtopic, but is it possible to give back different 404 error messages via apache based on virtual hosts? Thanks in advance. Regards, Balint
Re: Apache ErrorDocument & virtual hosts
Or allow your customers to use ErrorDocument statements in their .htaccess file by "AllowOverride FileInfo" in your httpd.conf-virtual setup (valid within a section) Then add the following in the .htacess file in your document root. ErrorDocument 401 /errordocs/401.php ErrorDocument 403 /errordocs/403.php ErrorDocument 404 /errordocs/404.php ErrorDocument 414 /errordocs/414.php Where /errordocs/... is a valid *URL* I usually keep the errordocs in an httpd.conf-aliased directory to make sure error docs are shown even when we have access restrictions like passwords in effect. Make sure you understand what issues AllowOverride might have for performance and security. Cheers, Marcel Sean Porth <[EMAIL PROTECTED]> 3 Jan 2002, at 11:46: > Ya just throw a: > ErrorDocument 404 /path-to-error-document > > inside of the virtualhost > > On Thu, 2002-01-03 at 11:38, KOZMAN Balint wrote: > > > > Hi, > > > > Sorry if offtopic, but is it possible to give back > > different 404 error messages via apache based on virtual > > hosts? > > > > Thanks in advance. > > > > Regards, > > > > Balint > > > > > > -- > > To UNSUBSCRIBE, email to > > [EMAIL PROTECTED] with a subject of > > "unsubscribe". Trouble? Contact > > [EMAIL PROTECTED] > > > > > -- > Sean Porth > System Admin > > > Tortus Technologies > 1686 Riverdale Street > West Springfield, MA 01089 > http://www.tortus.com > Phone: 413-788-5080 Fax: 413-785-1901 > > Tortus Technologies: We Make the 'Net Work. -- __ .´ `. : :' ! Enjoy `. `´ Debian/GNU Linux `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Apache ErrorDocument & virtual hosts
Ya just throw a: ErrorDocument 404 /path-to-error-document inside of the virtualhost On Thu, 2002-01-03 at 11:38, KOZMAN Balint wrote: > > Hi, > > Sorry if offtopic, but is it possible to give back different 404 error > messages via apache based on virtual hosts? > > Thanks in advance. > > Regards, > > Balint > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- Sean Porth System Admin Tortus Technologies 1686 Riverdale Street West Springfield, MA 01089 http://www.tortus.com Phone: 413-788-5080 Fax: 413-785-1901 Tortus Technologies: We Make the 'Net Work. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Apache ErrorDocument & virtual hosts
* [EMAIL PROTECTED] (KOZMAN Balint) [2002.01.03 10:41]: > Sorry if offtopic, but is it possible to give back different 404 error > messages via apache based on virtual hosts? ... ErrorDocument 404 /path/to/error/doc.html -- Cameron Moore -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Apache ErrorDocument & virtual hosts
Hi, Sorry if offtopic, but is it possible to give back different 404 error messages via apache based on virtual hosts? Thanks in advance. Regards, Balint -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]