virtualscriptalias problem with 1.3.26

virtualscriptalias problem with 1.3.26

Post by obantec suppor » Thu, 26 Sep 2002 17:59:19



Hi

i have the following code to do some mass hosting. now the documentroot
works since i set up a few usernames www.USERNAME.domain.com and it finds
the correct test pages. however the cgi tries to use default server cgi-bin
from "/usr/local/apache/cgi-bin" as shown in error_log file for
www.domain.com (this virtual server)

DocumentRoot /home/domain/domain3/web
ServerName www.domain.com
ServerAlias *.domain.com
TransferLog /home/domain/domain3/log/access_log
ErrorLog /home/domain/domain3/log/error_log

UseCanonicalName off
VirtualDocumentRoot /home/domain/users/%2.1/%2.2/%2/web
VirtualScriptAlias /home/domain/users/%2.1/%2.2/%2/web/cgi-bin

Mark

 
 
 

virtualscriptalias problem with 1.3.26

Post by Joshua Sliv » Thu, 26 Sep 2002 22:47:29



> Hi
> i have the following code to do some mass hosting. now the documentroot
> works since i set up a few usernames www.USERNAME.domain.com and it finds
> the correct test pages. however the cgi tries to use default server cgi-bin
> from "/usr/local/apache/cgi-bin" as shown in error_log file for
> www.domain.com (this virtual server)

ScriptAlias overrides VirtualScriptAlias, so you need to remove
the main-server ScriptAlias (or move it into the VirtualHost
blocks that need it).

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://httpd.apache.org/userslist.html

 
 
 

virtualscriptalias problem with 1.3.26

Post by obantec suppor » Fri, 27 Sep 2002 00:12:07




> > Hi

> > i have the following code to do some mass hosting. now the documentroot
> > works since i set up a few usernames www.USERNAME.domain.com and it
finds
> > the correct test pages. however the cgi tries to use default server
cgi-bin
> > from "/usr/local/apache/cgi-bin" as shown in error_log file for
> > www.domain.com (this virtual server)

> ScriptAlias overrides VirtualScriptAlias, so you need to remove
> the main-server ScriptAlias (or move it into the VirtualHost
> blocks that need it).

> --
> Joshua Slive

> Apache HTTP Server Users Mailing List:

http://httpd.apache.org/userslist.html

Thanks

from my test.cgi i see DOCUMENT_ROOT is picked up from the virtualhost
document root. (not what i expected). hoped it would be the
VirtualDocumentRoot. anyway round this?

Mark

 
 
 

virtualscriptalias problem with 1.3.26

Post by Joshua Sliv » Fri, 27 Sep 2002 02:51:04



> from my test.cgi i see DOCUMENT_ROOT is picked up from the virtualhost
> document root. (not what i expected). hoped it would be the
> VirtualDocumentRoot. anyway round this?

No.  DOCUMENT_ROOT is not really a very reliable veriable anyway.
It can't be used in cases where Aliases or RewriteRules or whatever
are present.  Better to avoid using it in your cgi script.

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://httpd.apache.org/userslist.html

 
 
 

virtualscriptalias problem with 1.3.26

Post by obantec suppor » Fri, 27 Sep 2002 04:48:45




> > from my test.cgi i see DOCUMENT_ROOT is picked up from the virtualhost
> > document root. (not what i expected). hoped it would be the
> > VirtualDocumentRoot. anyway round this?

> No.  DOCUMENT_ROOT is not really a very reliable veriable anyway.
> It can't be used in cases where Aliases or RewriteRules or whatever
> are present.  Better to avoid using it in your cgi script.

> --
> Joshua Slive

> Apache HTTP Server Users Mailing List:

http://httpd.apache.org/userslist.html

Old habit. not a biggy just curious.

Mark

 
 
 

1. apache 1.3.26 problem

I just ran into a problem with the new Apache 1.3.26.

Accessing some pages on Ebay (specifically the 'MyEbay' link which will
result in a sign-in page) through an Apache-based proxy resulted in those
pages showing up as HTML Source text in both Opera 6.01 Linux and Konqueror
2.2.2.

With Apache 1.3.22 with the exact same configuration, there is no
problem...

from my request_log:
noisy.koerber.org 172.22.22.252 -> 172.22.22.1 80 HTTP/1.0 - -
[19/Jun/2002:17:31:45 +0800] "GET
http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll?SignIn&UsingSSL=0&pUserId=&...
HTTP/1.0" 200 14442 [-]

When Apache 1.3.26 isused as proxy, the following will be logged in
error_log, and the page will show up mangled:

[Wed Jun 19 17:20:58 2002] [warn] proxy: Ignoring duplicate HTTP status line returned by buggy server
http://cgi1.ebay.com/aw-cgi/eBayISAPI.dll?MyEbayLogin (GET)
[Wed Jun 19 17:20:58 2002] [warn] proxy: Ignoring duplicate HTTP status line returned
by buggy server http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll?SignIn&UsingSSL=0&pUserId=&... (GET)

Here is the config.status file that was used to recompile both versions of
Apache afresh with:

#!/bin/sh
##
##  config.status -- APACI auto-generated configuration restore script ##
##  Use this shell script to re-run the APACI configure script for ##
restoring your configuration. Additional parameters can be supplied. ##

./configure \
"--with-layout=Apache" \
"--enable-module=info" \
"--enable-module=auth_dbm" \
"--enable-module=proxy" \
"--enable-module=expires" \
"--enable-module=rewrite" \
"--enable-module=unique_id" \
"--enable-module=log_referer" \
"--enable-module=log_agent" \
"--enable-module=log_config" \
"--enable-module=so" \

Does anyone have a fix for this?
thanks

2. 2.5.60 Lmbench performance

3. 1.3.26 on AIX 4.1 problems

4. How to read pipe instead of file in C

5. Problems with Apache 1.3.26 build on Solaris 7 (and Websphere integration)

6. faq

7. apache 1.3.26 + PHP 4.2.1 problem

8. How to deinstall RPMs ?

9. ErrorDocument problems Apache 1.3.26

10. Apache 1.3.26 authorization problem

11. Apache 1.3.26 in RedHat 7.2 - Problem with pthread

12. C Compiler problem / 1.3.26

13. Proxy problems with Apache 1.3.26 - broken images