www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roy Lee <yor...@cuteandcuddly.com>
Subject other/7111: mod_vhost_alias, DocumentRoot, ErrorDocument
Date Mon, 22 Jan 2001 19:51:52 GMT

>Number:         7111
>Category:       other
>Synopsis:       mod_vhost_alias, DocumentRoot, ErrorDocument
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Jan 22 12:00:01 PST 2001
>Originator:     yoryor@cuteandcuddly.com
>Release:        1.3.14r2
Windows 2000 SP 1
Visual Studio 6
I've recently compiled the vhost DLL for Apache on Windows and it's working fine I think.
But I encountered some problems.
Apache is located on C:/Apache (ServerRoot)

This is my mass vhost configuration directive (among other normal vhosts).
	UseCanonicalName Off
	VirtualDocumentRoot /YorYor/%1
	<Directory />
		AllowOverride ALL
		Options Includes ExecCGI FollowSymLinks
		Order allow,deny
		Allow from all
	DirectoryIndex index.html index.pl
	ErrorLog logs/vhost.yoryor.eu.org-error.log

I've tried to use 
	VirtualDocumentRoot "Z:/YorYor/%1"
but the server refuses to boot. Is there no way to specify an alternative drive to the document
root like any other vhost config? I suppose I could install Apache on Z:/ instead, but I don't
really want to do that as I want to keep on their own drive all the document dirs.

Secondly, I've fixed my own set of ErrorDocuments in the main_server config.
Alias /error "C:/Apache/custom_error_docs"
<Directory "C:/Apache/custom_error_docs">
	Options ExecCGI FollowSymLinks
#400 Bad Request
ErrorDocument 400 /error/400.pl
#401 Authorization Required
ErrorDocument 401 /error/401.pl
#403 Forbidden
ErrorDocument 403 /error/403.pl
#404 Not Found
ErrorDocument 404 /error/404.pl
#500 Internal Server Error
ErrorDocument 500 /error/500.pl

When I remove the directory C:/YorYor (which is supposed to serve the mass vhost), this error
appears in the error log.
[Mon Jan 22 19:34:32 2001] [error] [client] File does not exist: /yoryor/test/
[Mon Jan 22 19:34:32 2001] [error] [client] (2)No such file or directory: script
not found or unable to stat: /yoryor/test/error/404.pl

I've tried adding this
	ScriptAlias /error/ "C:/Apache/custom_error_docs"
into the vhost config but it still doesn't work.
I've also tried playing with the Alias and ErrorDocument directives but they just don't work.

Are the two problems that I've highlighted bugs in the 1.3 mod_vhost.c file?
If so, will it be fixed in v2.0?
I think you know what I'm talking about, cause I'm losing myself a bit at times.
If you just use the code I planted above to try out, you'll know what I mean.
Unfortunately, I'm not at all familiar with apache code, so I can't help, much as I'd love
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message