You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/03/13 16:53:07 UTC

DO NOT REPLY [Bug 52902] New: Apache-2.4: mod_rewrite's [P] doesn't work

https://issues.apache.org/bugzilla/show_bug.cgi?id=52902

             Bug #: 52902
           Summary: Apache-2.4: mod_rewrite's [P] doesn't work
           Product: Apache httpd-2
           Version: 2.4.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mail@stephan-jansen.eu
    Classification: Unclassified


Following modules are loaded:

LoadModule access_compat_module modules/mod_access_compat.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule mpm_worker_module modules/mod_mpm_worker.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule headers_module modules/mod_headers.so


This is the virtualhost:

<VirtualHost _default_:11850>
        ServerName my_server_name.com

        LogLevel debug
        ErrorLog "|/opt/SP/apache/current24/bin/rotatelogs \
                /opt/SP/apache/logs/http_error_11850.%Y%m%d%H%M 86400 120"
        CustomLog "|/opt/SP/apache/current24/bin/rotatelogs \
                /opt/SP/apache/logs/http_access_11850.%Y%m%d%H%M 86400 120"
combined

        RewriteEngine On
        RewriteRule ^/$ /Gui/login.htm [R,L]
        RewriteCond %{REQUEST_URI} ^/Gui [OR]
        RewriteCond %{REQUEST_URI} ^/Maintenance
        RewriteRule ^/(.*) http://<backend_ip>:8080/$1 [P,L,QSA]
        RewriteRule ^.* - [F]
        ProxyPassReverse / http://<backend_ip>:8080/

        RequestHeader    unset  Accept-Encoding

        SSLEngine on
        SSLProtocol -all +TLSv1 +SSLv3
        SSLHonorCipherOrder On
        SSLCipherSuite RC4-SHA:HIGH:!ADH:!SSLv2:!aNULL:!eNULL:!NULL
        SSLCertificateFile /opt/SP/apache/certificates/cert.crt
        SSLCertificateKeyFile /opt/SP/apache/certificates/cert.key
        SSLCertificateChainFile /opt/SP/apache/certificates/chain.crt
</VirtualHost>

The request result in http 404, this is what appears in the logs:

[Tue Mar 13 16:48:28.783323 2012] [core:info] [pid 22966:tid 1241569600]
[client 145.230.37.32:42090] AH00128: File does not exist:
proxy:http://195.233.222.199:8080/GDSPGui/login.htm

It looks like the request is not passed to mod_proxy.

Many thanks,
Stephan Jansen

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 52902] Apache-2.4: mod_rewrite's [P] doesn't work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52902

Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from Ruediger Pluem <rp...@apache.org> 2012-03-19 13:48:38 UTC ---


*** This bug has been marked as a duplicate of bug 52935 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 52902] Apache-2.4: mod_rewrite's [P] doesn't work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52902

--- Comment #1 from Stephan Jansen <ma...@stephan-jansen.eu> 2012-03-13 15:57:39 UTC ---
Hm. I removed the backend IPs from the config, but not from the log snippet...

Anyway, here are the Rewrite Rules as they are in the real config:
        RewriteRule ^/$ /GDSPGui/login.htm [R,L]
        RewriteCond %{REQUEST_URI} ^/GDSPGui [OR]
        RewriteCond %{REQUEST_URI} ^/GDSPDataMaintenanceJSPClients
        RewriteRule ^/(.*) http://195.233.222.199:8080/$1 [P,L,QSA]
        RewriteRule ^.* - [F]
        ProxyPassReverse / http://195.233.222.199:8080/

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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