Project

General

Profile

Bug #2293

lighttpd 1.5.0 [over] r1992 alias.url problem

Added by tgyou over 8 years ago. Updated over 8 years ago.

Status:
Missing Feedback
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2011-01-31
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:
No

Description

lighttpd.conf

$HTTP["host"] !~ "happy.dotple.com" {
        alias.url = (
                "/mysql" => "/home/admin/web_pub/mysql" 
        )
        $HTTP["url"] =~ "/mysql" {
                dir-listing.activate = "enable" 
        }
}

$HTTP["host"] =~ "happy.dotple.com" {
        server.name             = "happy.dotple.com" 
        server.document-root    = "/home/admin/web_pub" 
}

$HTTP["host"] =~ "^(www\.)?dotple.com" {
        server.name             = "dotple.com" 
        server.document-root    = "/home/tgyou/dotple.com" 
}

test url :
http://happy.dotple.com/mysql <- physical path
http://dotple.com/mysql <- aliased path

using r1992 :
all works fine.

using over r1992 version :
http://dotple.com/mysql <-
1 file 404 error -> /phpmyadmin.css.php

debug log (r2776)

2011-02-01 02:38:57 (trace) (response.c:307) -- splitting Request-URI
2011-02-01 02:38:57 (trace) (response.c:308) Request-URI  : /mysql/phpmyadmin.css.php?lang=en-utf-8&convcharset=utf-8&collation_connection=utf8_general_ci&token=03fc5abbb1b917bce860bfb7b0967200&js_frame=right&nocache=3888105608
2011-02-01 02:38:57 (trace) (response.c:309) URI-scheme   : http
2011-02-01 02:38:57 (trace) (response.c:310) URI-authority: dotple.com
2011-02-01 02:38:57 (trace) (response.c:311) URI-path     : /mysql/phpmyadmin.css.php
2011-02-01 02:38:57 (trace) (response.c:312) URI-query    : lang=en-utf-8&convcharset=utf-8&collation_connection=utf8_general_ci&token=03fc5abbb1b917bce860bfb7b0967200&js_frame=right&nocache=3888105608
2011-02-01 02:38:57 (trace) (response.c:360) -- sanitizing URI
2011-02-01 02:38:57 (trace) (response.c:361) URI-path     : /mysql/phpmyadmin.css.php
2011-02-01 02:38:57 (trace) (configfile-glue.c:513) === start of 2 condition block ===
2011-02-01 02:38:57 (trace) (configfile-glue.c:463) 'HTTP["url"]': '/mysql/phpmyadmin.css.php' is matched against '\.php$|\.html$'
2011-02-01 02:38:57 (trace) (configfile-glue.c:534) [2] result: true
2011-02-01 02:38:57 (trace) (configfile-glue.c:513) === start of 4 condition block ===
2011-02-01 02:38:57 (trace) (configfile-glue.c:225) checking if the parent (global/HTTPhost!~happy.dotple.com) evaluates to 'true'
2011-02-01 02:38:57 (trace) (configfile-glue.c:463) 'HTTP["url"]': '/mysql/phpmyadmin.css.php' is matched against '/mysql'
2011-02-01 02:38:57 (trace) (configfile-glue.c:534) [4] result: true
2011-02-01 02:38:57 (trace) (mod_access.c:138) -- handling file in mod_access
2011-02-01 02:38:57 (trace) (response.c:483) -- before doc_root
2011-02-01 02:38:57 (trace) (response.c:484) Doc-Root     : /home/tgyou/dotple.com
2011-02-01 02:38:57 (trace) (response.c:485) Rel-Path     : /mysql/phpmyadmin.css.php
2011-02-01 02:38:57 (trace) (response.c:486) Path         : (null)
2011-02-01 02:38:57 (trace) (response.c:539) -- after doc_root
2011-02-01 02:38:57 (trace) (response.c:540) Doc-Root     : /home/tgyou/dotple.com
2011-02-01 02:38:57 (trace) (response.c:541) Rel-Path     : /mysql/phpmyadmin.css.php
2011-02-01 02:38:57 (trace) (response.c:542) Path         : /home/tgyou/dotple.com/mysql/phpmyadmin.css.php
2011-02-01 02:38:57 (trace) (mod_proxy_core.c:2194) handling it in mod_proxy_core: uri.path=/mysql/phpmyadmin.css.php
2011-02-01 02:38:57 (trace) (plugin.c:383) -- plugins_call_...: plugin 'mod_proxy_core' returns 2
2011-02-01 02:38:57 (response.c:144) Response-Header:
HTTP/1.1 404 Not Found^M
X-Powered-By: PHP/5.2.17^M
Content-type: text/html^M
Vary: Accept-Encoding^M
Content-Encoding: gzip^M
Transfer-Encoding: chunked^M
Date: Mon, 31 Jan 2011 17:38:57 GMT^M
Server: lighttpd^M

debug log (r1992)

response.c.226: (trace) -- splitting Request-URI^M
response.c.227: (trace) Request-URI  : /mysql/phpmyadmin.css.php?token=03fc5abbb1b917bce860bfb7b0967200&js_frame=right&nocache=3888105608^M
response.c.228: (trace) URI-scheme   : http^M
response.c.229: (trace) URI-authority: dotple.com^M
response.c.230: (trace) URI-path     : /mysql/phpmyadmin.css.php^M
response.c.231: (trace) URI-query    : token=03fc5abbb1b917bce860bfb7b0967200&js_frame=right&nocache=3888105608^M
response.c.285: (trace) -- sanitizing URI^M
response.c.286: (trace) URI-path     : /mysql/phpmyadmin.css.php^M
configfile-glue.c.500: (trace) === start of 2 condition block ===^M
configfile-glue.c.450: (trace) 'HTTP["url"]': '/mysql/phpmyadmin.css.php' is matched against '\.php$|\.html$'^M
configfile-glue.c.521: (trace) [2] result: true^M
configfile-glue.c.500: (trace) === start of 4 condition block ===^M
configfile-glue.c.220: (trace) checking if the parent (global/HTTPhost!~happy.dotple.com) evaluates to 'true'^M
configfile-glue.c.450: (trace) 'HTTP["url"]': '/mysql/phpmyadmin.css.php' is matched against '/mysql'^M
configfile-glue.c.521: (trace) [4] result: true^M
mod_access.c.138: (trace) -- handling file in mod_access^M
response.c.402: (trace) -- before doc_root^M
response.c.403: (trace) Doc-Root     : /home/tgyou/dotple.com^M
response.c.404: (trace) Rel-Path     : /mysql/phpmyadmin.css.php^M
response.c.405: (trace) Path         : /home/admin/web_pub/mysql/index.php^M
response.c.458: (trace) -- after doc_root^M
response.c.459: (trace) Doc-Root     : /home/tgyou/dotple.com^M
response.c.460: (trace) Rel-Path     : /mysql/phpmyadmin.css.php^M
response.c.461: (trace) Path         : /home/tgyou/dotple.com/mysql/phpmyadmin.css.php^M
mod_proxy_core.c.2180: (trace) handling it in mod_proxy_core: uri.path=/mysql/phpmyadmin.css.php^M
response.c.480: (trace) -- logical -> physical^M
response.c.481: (trace) Doc-Root     : /home/tgyou/dotple.com^M
response.c.482: (trace) Rel-Path     : /mysql/phpmyadmin.css.php^M
response.c.483: (trace) Path         : /home/admin/web_pub/mysql/phpmyadmin.css.php^M
plugin.c.387: (trace) -- plugins_call_...: plugin 'mod_proxy_core' returns 4^

History

#1

Updated by tgyou over 8 years ago

NEW TEST URL!!

r1992 :
http://happy.dotple.com:1992/mysql <- physical path
http://dotple.com:1992/mysql <- aliased path

r2776 :
http://happy.dotple.com:2776/mysql <- physical path
http://dotple.com:2776/mysql <- aliased path

please help me... :'(

#2

Updated by nitrox over 8 years ago

  • Status changed from New to Invalid

This is not the support forum, its our bug tracker! "Urgent" is reserved for special cases, but definitely not for this! 1.5.0 is not (and never will be) released => thus unsupported!

#3

Updated by icy over 8 years ago

  • Status changed from Invalid to Reopened
  • Priority changed from Urgent to Normal
#4

Updated by nitrox over 8 years ago

Your config looks like?

#5

Updated by tgyou over 8 years ago

server.modules = (
        "mod_rewrite",
        "mod_redirect",
        "mod_alias",
        "mod_access",
#       "mod_cml",
#       "mod_trigger_b4_dl",
        "mod_auth",
        "mod_status",
#       "mod_setenv",
        "mod_proxy_core",
        "mod_proxy_backend_http",
        "mod_proxy_backend_fastcgi",
#       "mod_proxy_backend_scgi",
#       "mod_proxy_backend_ajp13",
#       "mod_simple_vhost",
        "mod_evhost",
#       "mod_userdir",
#       "mod_cgi",
#       "mod_compress",
#       "mod_ssi",
#       "mod_usertrack",
#       "mod_expire",
#       "mod_secdownload",
#       "mod_rrdtool",
        "mod_accesslog" )

$HTTP["url"] =~ "\.php$|\.html$" {
        proxy-core.balancer = "round-robin" 
        proxy-core.allow-x-sendfile = "enable" 
        proxy-core.protocol = "fastcgi" 
        proxy-core.backends = (
                #"unix:/var/tmp/php_cgi.sock" 
                "127.0.0.1:9000" 
        )
        proxy-core.max-pool-size = 10
}
#6

Updated by spaam over 8 years ago

Where is the alias.url part and the other things.. like mimetype.

#7

Updated by nitrox over 8 years ago

  • Status changed from Reopened to Missing Feedback

I´ll close this bug with "missing feedback" now. When asked for your config, we do not mean just some snippets.

You should also give $PHYSICAL["existing-path"] a try.

Re-open if you´re really interested to get this working.

Also available in: Atom