Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Debian server running 2 Apache server instances locally

The reason is one is running PHP 5.2 and the other is PHP 5.3

I have a macro to proxy off to the 5.3 server on certain directories. I specify the directories in a virtual host declaration

This is the macro

<Macro NewPHP>
        ProxyRequests Off
        <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>
        ProxyPreserveHost On
</Macro>

<Macro NewPHPIn $directory>
        ProxyPass $directory http://127.0.0.2/$directory
</Macro>

And I use it like so

<VirtualHost *>
        ServerAdmin webmaster@localhost
        ServerName foo.co.nz
        DocumentRoot /var/www/foo.co.nz

        <Directory /var/www/foo.co.nz>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                Allow from all
        </Directory>

        Use NewPHP
        Use NewPHPIn /bar/
</VirtualHost>

This makes http://foo.co.nz run on PHP 5.2

And http://foo.co.nz/bar run on PHP 5.3

Now the problem is I need to do that same for SSL but I cant figure out how to get it working. Ive tried lots of different things and cant find any help elsewhere.

Does any one have any idea that may help?

share|improve this question

1 Answer 1

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.