Bug 799 - Wrong URL resolution in case of similar beginnings of folder names
Summary: Wrong URL resolution in case of similar beginnings of folder names
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-09-14 05:57 UTC by Andreas Mack
Modified: 2014-01-12 01:21 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 799 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Andreas Mack 2011-09-14 05:57:00 UTC
I use Mono JIT compiler version 2.10.2 and Apache/2.2.10 (Linux/SUSE)

I try to host two web-services (.NET4) in separate folders under the document root of the apache web server:




If i use the mono automode i get the following problem:

After apache restart i call the first URL (www.mydomain.de/matchservice/myapp.asmx?WSDL) and get the WSDL.

After this, i try to retrieve the second WSDL via www.mydomain.de/matchservicetest/myapp.asmx?WSDL.
An error 404 occurs for the requested URL 'www.mydomain.de/webservice/test/myapp.asmx?WSDL'. That wasn't the URL i entered. The 'matchservicetest' was splitted into 'webservice/test'. You can reproduce this effect with any combination of similar folder name beginnings like 'myfolder' and 'myfolderfoo' --> 'myfolder/foo'.

On the other hand, (after apache restart) if you first call the second URL (.../matchservicetest/...) and after this the shorter URL (.../matchservice/..) all things are running right.

My solution was (httpd.conf):
- Deactivation of mono auto mode 
- Definition of single mono applications

MonoAutoApplication disabled
MonoDebug optimas.zkrd.de true
MonoServerPath /usr/bin/mod-mono-server4
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
MonoApplications "/matchservice:/srv/www/htdocs/matchservice"
MonoApplications "/matchservicetest:/srv/www/htdocs/matchservicetest"

Best regards,
Comment 1 Rodrigo Kumpera 2014-01-12 01:21:20 UTC
Moving to mono/tools.