httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Al <shase...@yahoo.com>
Subject [users@httpd] Couple of questions about rewrite and proxypass
Date Sat, 19 Feb 2011 23:49:08 GMT
Hi,
   i am trying to get http binding to work for jwchat and openfire and i found some examples
and would like to make sure i understand couple of things:

<VirtualHost *>

  ServerName myserver.com
  DocumentRoot "C:/apache2/htdocs/"

  <Directory "C:/apache2/htdocs/">
  Options  +Indexes +MultiViews

  </Directory>

  AddDefaultCharset UTF-8

  RewriteEngine on

  RewriteRule http-bind/ http://myserver.com/http-bind/

</VirtualHost>
ProxyPass /http-bind/ http://127.0.0.1:8080/http-bind/ 

So what RewriteRule here is doing is when it detects "http-bind/" it will direct me to "http://myserver.com/http-bind/"?
and when ProxyPass detects the "/http-bind/" it will try to direct me to "http://127.0.0.1:8080/http-bind/"
?

couple of questions...
1. when I entered "http://myserver.com/http-bind/" i ended up in the same URL though - is
that what should happen?

2. is RewrieRule neccessary here? if i just enter http://myserver.com/http-bind/ directly
wouldnt it bypass it? I am a bit confused here..

thanks...





      

---------------------------------------------------------------------
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


Mime
View raw message