Coder Social home page Coder Social logo

Comments (6)

gnif avatar gnif commented on August 26, 2024

Interesting, can you please provide some traffic dumps so I can reproduce the issue here.

from mod_rpaf.

brablc avatar brablc commented on August 26, 2024

The setup:

mkdir -p /var/www/domain1 && echo "WRONG" >$_/test.html
mkdir -p /var/www/domain2 && echo "OK" >$_/test.html
<VirtualHost *:80>
ServerName domain1.dev
RewriteEngine On
RewriteLogLevel 9
RewriteLog /var/log/apache2/rewrite.log
RewriteRule /domain2/(.*) http://domain2.dev/$1 [P]
DocumentRoot /var/www/domain1
</VirtualHost>

<VirtualHost *:80>
ServerName domain2.dev
DocumentRoot /var/www/domain2
</VirtualHost>

Test curl http://domain1.dev/domain2/test.html

  • with RPAFsethostname off:
127.0.0.1 - - [14/Oct/2015:22:45:53 +0200] [domain1.dev/sid#7fdc2cf82c78][rid#7fdc2d953040/initial] (2) init rewrite engine with requested uri /domain2/test.html
127.0.0.1 - - [14/Oct/2015:22:45:53 +0200] [domain1.dev/sid#7fdc2cf82c78][rid#7fdc2d953040/initial] (3) applying pattern '/domain2/(.*)' to uri '/domain2/test.html'
127.0.0.1 - - [14/Oct/2015:22:45:53 +0200] [domain1.dev/sid#7fdc2cf82c78][rid#7fdc2d953040/initial] (2) rewrite '/domain2/test.html' -> 'http://domain2.dev/test.html'
127.0.0.1 - - [14/Oct/2015:22:45:53 +0200] [domain1.dev/sid#7fdc2cf82c78][rid#7fdc2d953040/initial] (2) forcing proxy-throughput with http://domain2.dev/test.html
127.0.0.1 - - [14/Oct/2015:22:45:53 +0200] [domain1.dev/sid#7fdc2cf82c78][rid#7fdc2d953040/initial] (1) go-ahead with proxy request proxy:http://domain2.dev/test.html [OK]
  • with RPAFsethostname on:
127.0.0.1 - - [14/Oct/2015:22:46:32 +0200] [domain1.dev/sid#7fc5de794c78][rid#7fc5df15f010/initial] (2) init rewrite engine with requested uri /domain2/test.html
127.0.0.1 - - [14/Oct/2015:22:46:32 +0200] [domain1.dev/sid#7fc5de794c78][rid#7fc5df15f010/initial] (3) applying pattern '/domain2/(.*)' to uri '/domain2/test.html'
127.0.0.1 - - [14/Oct/2015:22:46:32 +0200] [domain1.dev/sid#7fc5de794c78][rid#7fc5df15f010/initial] (2) rewrite '/domain2/test.html' -> 'http://domain2.dev/test.html'
127.0.0.1 - - [14/Oct/2015:22:46:32 +0200] [domain1.dev/sid#7fc5de794c78][rid#7fc5df15f010/initial] (2) forcing proxy-throughput with http://domain2.dev/test.html
127.0.0.1 - - [14/Oct/2015:22:46:32 +0200] [domain1.dev/sid#7fc5de794c78][rid#7fc5df15f010/initial] (1) go-ahead with proxy request proxy:http://domain2.dev/test.html [OK]
127.0.0.1 - - [14/Oct/2015:22:46:32 +0200] [domain1.dev/sid#7fc5de794c78][rid#7fc5df15f010/initial] (2) init rewrite engine with requested uri /test.html
127.0.0.1 - - [14/Oct/2015:22:46:32 +0200] [domain1.dev/sid#7fc5de794c78][rid#7fc5df15f010/initial] (3) applying pattern '/domain2/(.*)' to uri '/test.html'
127.0.0.1 - - [14/Oct/2015:22:46:32 +0200] [domain1.dev/sid#7fc5de794c78][rid#7fc5df15f010/initial] (1) pass through /test.html

from mod_rpaf.

gnif avatar gnif commented on August 26, 2024

Please provide the rpaf comfig also

from mod_rpaf.

brablc avatar brablc commented on August 26, 2024
<IfModule mod_rpaf.c>
RPAFenable On
RPAFsethostname Off
RPAFproxy_ips 127.0.0.1 10.0.2.15
</IfModule>

from mod_rpaf.

gnif avatar gnif commented on August 26, 2024

This config is invalid for the current version of mod_rpaf, please confirm you are running a recent version.

from mod_rpaf.

brablc avatar brablc commented on August 26, 2024

OK, let's close this until I migrate to newer version. I do not have testing environment for this right now.

from mod_rpaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.