I am within the final stages of going round trip car Rails cycle: development -> test -> production (with an exterior server). I am very close...but seeing some errors using the production version and do not know enough about Rails' "miracle" to trobleshoot and fix it yet...

this works: www.mydomain.com/rails and returns my app's view

but this: www.mydomain.com/rails/ returns (in the whole):

Index from public

Where's next from!?! I have eliminated Apache. as Apache wouldn't return that type of html being an index of the directory...

Added: VirtualHost (per request):

<VirtualHost *:80>
    ServerName www.mydomain.com
    ServerAdmin admin@mydomain.com
    DocumentRoot "/Library/WebServer/mydomainweb"
    DirectoryIndex "index.html" "index.php"
    CustomLog "/var/log/apache2/access_log" "%h %l %u %t \"%r\" %>s %b"
    ErrorLog "/var/log/apache2/error_log"
    ErrorDocument 404 /error.html
    <IfModule mod_ssl.c>
        SSLEngine Off
        SSLCertificateFile "/etc/certificates/Default.crt"
        SSLCertificateKeyFile "/etc/certificates/Default.key"
        SSLCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:+eNULL"
    <IfModule mod_dav.c>
        DAVLockDB "/var/run/davlocks/.davlock100"
        DAVMinTimeout 600
    <IfModule mod_mem_cache.c>
        CacheEnable mem /
        MCacheSize 4096
    <Directory "/Library/WebServer/mydomainweb">
        AllowOverride None
        <IfModule mod_dav.c>
            DAV On
        Options All -Includes -ExecCGI +MultiViews -Indexes
    RailsBaseURI /rails
    <Directory /Library/WebServer/rails/myapp/public>
        Options -MultiViews -Indexes
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_METHOD} ^TRACE
        RewriteRule .* - [F]
    <IfModule mod_proxy_balancer.c>
        <Proxy "balancer://balancer-group">
    <IfModule mod_alias.c>
        Alias "/collaboration" "/usr/share/collaboration"
        Alias "/icons/" "/usr/share/httpd/icons/"
        Alias "/error/" "/usr/share/httpd/error/"
        Redirect temp "/zapp.html" "/index.html"
    Include /etc/apache2/httpd_groups.conf
    Include /etc/apache2/httpd_teams_required.conf
    LogLevel warn
    ServerAlias mydomain.com
    ServerAlias images.mydomain.com

My prediction is the fact that apache has directory browsing enabled and passenger is routing this request towards the public folder which will apache direct.

You can test

  1. Crippling directory browsing by crippling Options Indexes (omitting Indexes)
  2. You will definitely catch a route inside your routes.rb file to that particular path clearly and route it to where you want.

For that second one, do you use it should you choose www.mydomain.com/rails/mycontroller/show/1?

Whether it works together with "show" among mycontroller and 1, there's an issue with your routes.