osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 61571] ProxyPassMatch work in all VirtualHost context


https://bz.apache.org/bugzilla/show_bug.cgi?id=61571

Antonio Casado <acasado@xxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Antonio Casado <acasado@xxxxxx> ---
I don't know if it fail in httpd 2.4

My system is CentOS release 6.9 (Final)

My resumed httpd.conf

...
NameVirtualHost *:80

<VirtualHost *:80>
    ServerName vh1.example.org
</VirtualHost>

<Directory /web/vh2>
    Options IncludesNoExec FollowSymLinks
    AllowOverride Indexes FileInfo AuthConfig Limit
Options=Indexes,FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *:80>
  DocumentRoot /web/vh2
  ServerName vh2.example.org

  <Directory /web/other>
    Options IncludesNoExec FollowSymLinks
    AllowOverride Indexes FileInfo AuthConfig Limit
Options=Indexes,FollowSymLinks
    Order allow,deny
    Allow from all
  </Directory>

  Alias /myfoo /web/other/myfoo
  ProxyPassMatch ^/myfoo/(.*\.php(/.*)?)$
fcgi://127.0.0.1:9001/web/other/myfoo/$1
  Alias /2myfoo /web/other/2myfoo
  ProxyPassMatch ^/2myfoo/(.*\.php(/.*)?)$
fcgi://127.0.0.1:9002/web/other/2myfoo/$1
  ...
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot /web/vh3
  ServerName vh3.example.org
</virtualHost>


The tests:
GET http://vh2.example.org/myfoo/myimage.jpg (Status 200, Correct)
GET http://vh3.example.org/myfoo/myimage.jpg (Status 404, Correct)
GET http://vh2.example.org/myfoo/mytest.php (Status 200, Correct)
GET http://vh3.example.org/myfoo/mytest.php (Status 200, INCORRECT)
GET http://vh1.example.org/myfoo/mytest.php (Status 200, INCORRECT)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx