Jump to content

mod_proxy only redirecting


tomfmason

Recommended Posts

I have done this particular setup many times and have never seen this before.  Basically I want to proxy all requests to this vhost to an application running on a local port. This a default install of apache2 on debian etch with mod_proxy. I have both mod_proxy and mod_proxy_http loaded. Here are the configs in question:

 

#proxy config
<IfModule mod_proxy.c>
        ProxyRequests Off
        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
	ProxyFtpDirCharset UTF-8
        </Proxy>
        ProxyVia On
</IfModule>


#example virtualhost
<VirtualHost 127.0.0.1:80>

        ServerAdmin admin@domain
        ServerName domain
        DocumentRoot /path/to/app/public

        <Directory />

                Options FollowSymLinks

                AllowOverride None

        </Directory>

        <Directory /path/to/app/public>

                Options Indexes FollowSymLinks MultiViews

                AllowOverride ALL

                Order allow,deny

                allow from all

        </Directory>



<Proxy *>
	Order allow,deny
	Allow from all
</Proxy>

        #RewriteEngine on

        #RewriteRule ^(.*)$ http://127.0.0.1:5000/$1 [P,L]

        ProxyPass / http://127.0.0.1:5000/

        ProxyPassReverse / http://127.0.0.1:5000/

        ProxyPreserveHost On

        CustomLog /var/log/apache2/access.log combined

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        ServerSignature On

</VirtualHost>

 

Both the rewrite and proxy pass are redirecting to 127.0.0.1:5000. I don't see anything at all in either the access or error logs. It doesn't even appear that the request ever touches apache.

 

Any ideas or suggestions?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.