httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Decker <comr...@gmail.com>
Subject [users@httpd] Confusing apache configuration
Date Wed, 27 Jun 2012 13:29:25 GMT
Hello. I'm having trouble figuring out how to configure apache for the
following:

www.server.com/mstar should go through mod_passenger

but anything else, such as:
www.server.com/
www.server.com/index.hmtl
etc
should go through mod_proxy.

So, I would need something to check if it has /mstar as the first
component of the path and if so, have it served through passenger. But
anything else should go through mod_proxy.

something like:

<VirtualHost *:80>
        ServerName beta.server.com

        DocumentRoot /home/ruby/webapps/m-star/current/public

        <Location /mstar>
            PassengerEnabled on
            RailsBaseURI /mstar
            # This relaxes Apache security settings.
            AllowOverride all
            # MultiViews must be turned off.
            Options -MultiViews FollowSymLinks
            Order allow,deny
            Allow from all
        </Location>

        ProxyPass / http://beta.server.com:8890
        ProxyPassReverse / http://beta.server.com:8890
        <Location />
            PassengerEnabled off
            Order allow,deny
            Allow from all
        </Location>
</VirtualHost>

However, this of course is not working.

Can you give me some pointers on what to look at in the apache
configurations to accomplish this?

-- 
-robert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message