You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Tom Mai <Cu...@hotmail.com> on 2002/01/03 19:19:56 UTC
mod_alias/9359: alias vs virtual
>Number: 9359
>Category: mod_alias
>Synopsis: alias vs virtual
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Jan 03 10:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: CuTom@hotmail.com
>Release: 1.3.22
>Organization:
apache
>Environment:
windows 2000 server
>Description:
I have apache 1.3.22 installed on windows 2000 server, my httpd.conf look like this:
<VirtualHost 198.7.130.163:200>
Options +Includes
AddType text/html .inc
AddHandler server-parsed .inc
DocumentRoot "C:/wwwroot/httproot"
Alias /html/site/ "c:/wwwroot/httproot/html/development/test_site1/"
Alias /html/common/ "C:/wwwroot/httproot/html/development/common/"
Alias /server/ "C:/wwwroot/httproot/development_server/"
ScriptAlias /SCRIPTS/ "C:/wwwroot/scipts/"
<IfModule mod_dir.c>
DirectoryIndex default.asp default.htm index.htm index.html
</IfModule>
</VirtualHost>
And in my default.asp:
<% @enablesessionstate=false %>
<% option explicit %>
<% response.buffer=true %>
<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 3.2 Final//EN'>
<HTML>
<HEAD>
<BASEFONT SIZE='3'>
<!--#INCLUDE virtual="/html/site/1.inc" -->
<!--#INCLUDE virtual="/html/common/2.inc" -->
.....
When default.asp is executed, it return the error: "Include file not found."
I think that the alias is only work with URL directing but not act like virtual directory.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@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! ]