Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule [P]

.htaccess windows configuration

         

jimmyo

8:47 pm on Mar 10, 2008 (gmt 0)

10+ Year Member



Hello - I am trying to use Apache to proxy for another "mini server" running on the same server. The miniserver is an HTTP server running in VLC a streaming media encoder, and I have VLC configured to serve streaming video on port 1234 and http on port 8080. I am using Windows XP and Apache 2.2. Any help anyone can provide would be *much* appreciated. Here are the details:

For Apache:

.htaccess, which is in the root directory contains:
--------
RewriteEngine On
RewriteRule ^vlc$ [127.0.0.1:8080...] [P]
RewriteRule ^live$ [127.0.0.1:1234...] [P]
---------

The relevant (I believe) areas within httpd.conf are:
-------------

Listen 80

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so

DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo All
Order allow,deny
Allow from all
</Directory>

----------------

On the local server if I run a browser and open: [127.0.0.1...] I get index.html served by Apache. ie Apache is working correctly.

On the local server if I run a browser and open: [127.0.0.1:8080...] I get index.html served by VLC. ie VLC is serving http correctly.

On the local server if I run WMP and open url: [127.0.0.1:1234...] I get the video content streamed by VLC. ie VLC's streaming is working properly.

On the local server if I run a browser and open: [127.0.0.1...] I get no content and the error log shows that I got a 404 error. ie Apache is working correctly when I serve to an incorrect location.

On the local server if I run a browser and open: [127.0.0.1...] I get a 404 error. The Apache error log does not show any errors.

On the local server if I run WMP and open url: [127.0.0.1...] I get no content. The Apache error log does not show any errors.

Any help on the above that anyone can provide would be much appreciated.

...Jim

jdMorgan

4:56 pm on Mar 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You may have a conflict with mod_negotiation; Turn off Multiviews unless you're using them.

Jim