logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Configuration broke after upgrade deb jessie to stretch
Author
hans66



Joined: 25 Apr 2017
Posts: 2
Location: NL

PostPosted: Wed 03 May '17 9:48    Post subject: Configuration broke after upgrade deb jessie to stretch Reply with quote

Apache2: configuration (virtualserver, reverseproxy, location directive) broke after upgrade from Debian Jessie to Stretch

Due to a system drive crash (debian jessie), I rebuild my debian based on stretch (latest RC); As a result, apache gets updated from 2.4.10 to 2.4.25; I am using the same config files (they were backed up); I have one virtual server, which does not work in stretch as it did in jessie. See below.

In jessie, browsing to example.com/phpmyadmin/ would invoke localhost:5001; In stretch, it seems that the location directive is ignored, if I debug further, it invokes localhost:10002/phpmyadmin/

Only if I take out the ProxyPass to localhost:10002 and serve directly some web content (by setting DocumentRoot etc), it works.

Any clues? Is this a change in apache behavior?

<VirtualHost *:80>
ServerName example.com
ServerAlias example.com
ServerAdmin admin@example.com

ProxyPass / http://localhost:10002/
ProxyPassReverse / localhost:10002/

<Location /phpmyadmin/>
ProxyPass http://localhost:5001/
ProxyPassReverse http://localhost:5001/
</Location>
</VirtualHost>
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Wed 03 May '17 11:58    Post subject: Reply with quote

What happens if you shift the order:

Code:
<VirtualHost *:80>
    ServerName example.com
    ServerAlias example.com
    ServerAdmin admin@example.com

    <Location /phpmyadmin/>
        ProxyPass http://localhost:5001/
        ProxyPassReverse http://localhost:5001/
    </Location>

    ProxyPass / http://localhost:10002/
    ProxyPassReverse / localhost:10002/
</VirtualHost>
Back to top
hans66



Joined: 25 Apr 2017
Posts: 2
Location: NL

PostPosted: Thu 04 May '17 9:21    Post subject: Reply with quote

Hi Jan,

No change; I tried this before, but to be sure, I retested this again last night.

Thanks
Hans
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sun 14 May '17 12:29    Post subject: Reply with quote

You may exclude the phpmyadmin path in the ProxyPass

Code:

<VirtualHost *:80>
    ServerName example.com
    ServerAlias example.com
    ServerAdmin admin@example.com

    ProxyPass /phpmyadmin/ !
    ProxyPass / http://localhost:10002/
    ProxyPassReverse / localhost:10002/

    <Location /phpmyadmin/>
        ProxyPass http://localhost:5001/
        ProxyPassReverse http://localhost:5001/
    </Location>
</VirtualHost>
Back to top


Reply to topic   Topic: Configuration broke after upgrade deb jessie to stretch View previous topic :: View next topic
Post new topic   Forum Index -> Apache