403 Forbidden in Apache proxy reversed mode

3,622 views
Skip to first unread message

Stanislav Feldman

unread,
Feb 25, 2011, 6:07:06 PM2/25/11
to ChicagoBoss
I ran CB App named erchat in folder /var/www/erchat on
stanislavfeldman.com:8001, and want to show it from
erchat.stanislavfeldman.com.
my conf:
<VirtualHost *:80>
ServerName erchat.stanislavfeldman.com
ProxyPass / http://stanislavfeldman.com:8001
ProxyPassReverse / http://stanislavfeldman.com:8001
# Alias to serve the assets directly by apache
Alias "/erchat/static" /var/www/erchat/static
</VirtualHost>
And this doesn't work. Returns 403. What's wrong?

Stanislav Feldman

unread,
Mar 1, 2011, 12:05:52 AM3/1/11
to ChicagoBoss
Evan, pls, help me. What am I doing wrong?

On 26 фев, 02:07, Stanislav Feldman <stanislavfeld...@gmail.com>
wrote:
> I ran CB App named erchat in folder /var/www/erchat on
> stanislavfeldman.com:8001, and want to show it from
> erchat.stanislavfeldman.com.
> my conf:
> <VirtualHost *:80>
>     ServerName erchat.stanislavfeldman.com
>     ProxyPass /http://stanislavfeldman.com:8001
>     ProxyPassReverse /http://stanislavfeldman.com:8001

Evan Miller

unread,
Mar 1, 2011, 1:56:48 AM3/1/11
to chica...@googlegroups.com
What does the Apache error log say?

--
Evan Miller
http://www.evanmiller.org/

Jose Luis Gordo Romero

unread,
Mar 1, 2011, 3:28:31 AM3/1/11
to chica...@googlegroups.com
Can you test if the following directive solves the problem?

<Proxy http://localhost:8001/>
   Order Allow,Deny 
   Allow from all 
</Proxy>

Best

--
Jose Luis Gordo Romero



2011/3/1 Evan Miller <emmi...@gmail.com>

Stanislav Feldman

unread,
Mar 1, 2011, 3:33:12 AM3/1/11
to ChicagoBoss
Jose, these lines didn't help. Evan, apache error log is empty.

Jose Luis Gordo Romero

unread,
Mar 1, 2011, 3:40:40 AM3/1/11
to chica...@googlegroups.com
The last thing that comes to mind is you do have proxy_http_module loaded?

--
Jose Luis Gordo Romero



2011/3/1 Stanislav Feldman <stanisla...@gmail.com>

Stanislav Feldman

unread,
Mar 1, 2011, 3:44:34 AM3/1/11
to ChicagoBoss
Oh! It solved.
Configuration must be

ProxyRequests Off
ProxyPass / http://localhost:8001/
ProxyPassReverse / http://localhost:8001/
<Proxy *>
Order Allow,Deny
Allow from all
</Proxy>
# Alias to serve the assets directly by apache
Alias "/static" /path/to/your/project/static

I changed deployment wiki.

Jose Luis Gordo Romero

unread,
Mar 1, 2011, 3:52:01 AM3/1/11
to chica...@googlegroups.com
Cool!


--
Jose Luis Gordo Romero



2011/3/1 Stanislav Feldman <stanisla...@gmail.com>

Vitaliy Kulchevych

unread,
Mar 1, 2011, 3:41:29 AM3/1/11
to chica...@googlegroups.com
+1)))

--
live free or die;

Vitaliy Kulchevych

unread,
Mar 1, 2011, 3:40:02 AM3/1/11
to chica...@googlegroups.com
Stanislav, change LogLevel to debug

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

check with docs http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

On Tue, Mar 1, 2011 at 10:33 AM, Stanislav Feldman
<stanisla...@gmail.com> wrote:
> Jose, these lines didn't help. Evan, apache error log is empty.

--
live free or die;

Reply all
Reply to author
Forward
0 new messages