FAQ
Hello -

I need to create some kind of proxy using Apache Server.

I tried to use something like
ProxyPass /test1/test2/ http://example.com but had no success because
ProxyPass require "/" suffix after the second URL. In my case adding "/" is
not working because my URL ends with example.dll and now example.dll part is
meant as a directory instead of a file example.dll inside test directory (my
IIS server thinks so).

After that I tried to use RewriteRule. For example:
RewriteRule /example/ http://example.com. This time redirection is working
perfectly - I see the desired page, but the URL is completely changed to the
new one and I want end users to see the first part of the URL unchanged (the
part with the server name and port). E.g. if user enters like
_http://server1:port1/example/ I would like him to see something like
_http://server1:port1/example/... after redirection.

Are there any ability to achieve this?

Any kind of help is greatly appreciated.

Thanks in advance.
--
View this message in context: http://old.nabble.com/RewriteRule-question-tp32332990p32332990.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Search Discussions

  • Igor Cicimov at Aug 25, 2011 at 10:24 am
    RewriteRule /example/ http://example.com [P,L]
    On Thu, Aug 25, 2011 at 8:19 PM, Denys wrote:


    Hello -

    I need to create some kind of proxy using Apache Server.

    I tried to use something like
    ProxyPass /test1/test2/ http://example.com but had no success because
    ProxyPass require "/" suffix after the second URL. In my case adding "/" is
    not working because my URL ends with example.dll and now example.dll part
    is
    meant as a directory instead of a file example.dll inside test directory
    (my
    IIS server thinks so).

    After that I tried to use RewriteRule. For example:
    RewriteRule /example/ http://example.com. This time redirection is working
    perfectly - I see the desired page, but the URL is completely changed to
    the
    new one and I want end users to see the first part of the URL unchanged
    (the
    part with the server name and port). E.g. if user enters like
    _http://server1:port1/example/ I would like him to see something like
    _http://server1:port1/example/... after redirection.

    Are there any ability to achieve this?

    Any kind of help is greatly appreciated.

    Thanks in advance.
    --
    View this message in context:
    http://old.nabble.com/RewriteRule-question-tp32332990p32332990.html
    Sent from the Apache HTTP Server - Users mailing list archive at
    Nabble.com.


    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesapache
postedAug 25, '11 at 10:20a
activeAug 25, '11 at 10:24a
posts2
users2
websitehttpd.apache.org
irc#httpd

2 users in discussion

Denys: 1 post Igor Cicimov: 1 post

People

Translate

site design / logo © 2022 Grokbase