You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Haim Ashkenazi <ha...@gmail.com> on 2007/09/23 14:13:49 UTC
[users@httpd] Question about proxy_ajp, sessions and paths...
Hi
I'm trying to reverse proxy a tomcat server with proxy_ajp.
If The path of the URL is identical to the path of ajp, sessions are
kept without a problem:
ProxyPass /abc/ ajp://localhost:8009/abc/
But if I do it like this:
ProxyPass / ajp://localhost:8009/abc/
sessions are not kept in tomcat. every request is like a new one.
Is this a normal behavior? Is there a workaround for that?
Please help
--
Haim
---------------------------------------------------------------------
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
Re: [users@httpd] Question about proxy_ajp, sessions and paths...
Posted by Haim Ashkenazi <ha...@gmail.com>.
On 9/24/07, Sander Temme <sc...@apache.org> wrote:
>
> On Sep 23, 2007, at 5:13 AM, Haim Ashkenazi wrote:
>
> > ProxyPass / ajp://localhost:8009/abc/
> > sessions are not kept in tomcat. every request is like a new one.
> >
> > Is this a normal behavior? Is there a workaround for that?
>
> Yes, because Tomcat will set a JSESSIONID cookie for path /abc, and
> the browser will not send that back because it's going to path /
> foo.jsp and not /abc/foo.jsp.
>
> You need to have mod_proxy munge the cookie path on the way out. It
> has a directive for that, but I'm too tired to look that up right now.
Thanx, I've looked it up, found it and it solved the problem.
The directive was:
ProxyPassReverseCookiePath /abc /
Bye
--
Haim
---------------------------------------------------------------------
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
Re: [users@httpd] How can I limit access only to specific URLs?
Posted by Vitaly <vi...@yahoo.com>.
--- Thomas Antony <th...@antony.eu> wrote:
>
> > I have a website (virtual server) and many DNS
> > aliases pointed to the same server.
> >
> > But I have some directory which should be
> accessible
> > only via specific DNS alias (== URL).
> > If/How this can be done?
> >
> > E.g, I have a.example.com, b.example.com,
> > c.example.com pointed to the same virtualhost.
> > And for a.example.com I'd like to provide access
> to
> > some dir as http://a.example.com/only_for_a.
> > (it sholdn't be accessible as
> > http://b.example.com/only_for_a)
> >
> >
>
> Hi.
>
> Use the Location directive in each virtual host
> block.
>
http://httpd.apache.org/docs/2.2/en/mod/core.html#location
>
> <Location />
> Order Deny,Allow
> Deny from all
> Allow from 192.168.1 192.168.99
> </Location>
>
> or
>
> <Location />
> Order Allow,Deny
> Allow from all
> Deny from 192.168.22.5 192.168.33
> </Location>
>
>
Thomas, Thanks for your answer!
In fact, I want to limit access by URL, not by source
IP/domain.
Solution with Apache variables, suggested by Thomas,
solved my problem.
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.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
Re: [users@httpd] How can I limit access only to specific URLs?
Posted by Thomas Antony <th...@antony.eu>.
> I have a website (virtual server) and many DNS
> aliases pointed to the same server.
>
> But I have some directory which should be accessible
> only via specific DNS alias (== URL).
> If/How this can be done?
>
> E.g, I have a.example.com, b.example.com,
> c.example.com pointed to the same virtualhost.
> And for a.example.com I'd like to provide access to
> some dir as http://a.example.com/only_for_a.
> (it sholdn't be accessible as
> http://b.example.com/only_for_a)
>
>
Hi.
Use the Location directive in each virtual host block.
http://httpd.apache.org/docs/2.2/en/mod/core.html#location
<Location />
Order Deny,Allow
Deny from all
Allow from 192.168.1 192.168.99
</Location>
or
<Location />
Order Allow,Deny
Allow from all
Deny from 192.168.22.5 192.168.33
</Location>
Thomas
---------------------------------------------------------------------
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
[users@httpd] How can I limit access only to specific URLs?
Posted by Vitaly <vi...@yahoo.com>.
I have a website (virtual server) and many DNS
aliases pointed to the same server.
But I have some directory which should be accessible
only via specific DNS alias (== URL).
If/How this can be done?
E.g, I have a.example.com, b.example.com,
c.example.com pointed to the same virtualhost.
And for a.example.com I'd like to provide access to
some dir as http://a.example.com/only_for_a.
(it sholdn't be accessible as
http://b.example.com/only_for_a)
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.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
Re: [users@httpd] Question about proxy_ajp, sessions and paths...
Posted by Sander Temme <sc...@apache.org>.
On Sep 23, 2007, at 5:13 AM, Haim Ashkenazi wrote:
> ProxyPass / ajp://localhost:8009/abc/
> sessions are not kept in tomcat. every request is like a new one.
>
> Is this a normal behavior? Is there a workaround for that?
Yes, because Tomcat will set a JSESSIONID cookie for path /abc, and
the browser will not send that back because it's going to path /
foo.jsp and not /abc/foo.jsp.
You need to have mod_proxy munge the cookie path on the way out. It
has a directive for that, but I'm too tired to look that up right now.
S.
--
Sander Temme
sctemme@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF
Re: [users@httpd] Help for first time user
Posted by Joshua Slive <jo...@slive.ca>.
On 9/23/07, Judy Hulsey <ja...@yahoo.com> wrote:
> I get this error in my log files:
> [Sun Sep 23 10:06:45 2007] [error] [client 127.0.0.1] client denied by
> server configuration: C:/Course
> Technology/1687-5/Chapter.01/Chapter/DessertShop.html
This means you have Allow/Order/Deny directives in httpd.conf that
prevent access to the relevant directory/files. Some debugging help is
here:
http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration
Joshua.
---------------------------------------------------------------------
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
Re: [users@httpd] Help for first time user
Posted by Andrew WC Brown <om...@gmail.com>.
I'm guessing your developing on a windows machine since I see C:/
What did you do to launch apache?
Did you change your conf file? If so what did you change? was it your
DirectoryRoot?
On 9/23/07, edwardspl@ita.org.mo <ed...@ita.org.mo> wrote:
>
> Hello Judy,
>
> What is your environment ?
>
> Edward.
>
> Judy Hulsey wrote:
>
>
>
> I am an Information Technology student and I am taking PHP this semester.
> I have downloaded and installed Apache and when I test it I get the message
> It works! But when I try to open a page with Apache I get
>
> HTTP 403 (Forbidden)
> Forbidden You don't have permission to access
> /PHP_Projects/Chapter.01/Chapter/DessertShop.html on this server.
> I get this error in my log files:
> [Sun Sep 23 10:06:45 2007] [error] [client 127.0.0.1] client denied by
> server configuration: C:/Course
> Technology/1687-5/Chapter.01/Chapter/DessertShop.html
> [Sun Sep 23 10:10:09 2007] [error] [client 127.0.0.1] File does not exist:
> C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico.
>
> Please someone help me!!!!
>
> ------------------------------
> Shape Yahoo! in your own image. Join our Network Research Panel today!<http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7>
>
>
>
Re: [users@httpd] Help for first time user
Posted by Judy Hulsey <ja...@yahoo.com>.
I am working from home with no network.
edwardspl@ita.org.mo wrote: Hello Judy,
What is your environment ?
Edward.
Judy Hulsey wrote:
I am an Information Technology student and I am taking PHP this semester. I have downloaded and installed Apache and when I test it I get the message It works! But when I try to open a page with Apache I get
HTTP 403 (Forbidden)
Forbidden You don't have permission to access /PHP_Projects/Chapter.01/Chapter/DessertShop.html on this server.
I get this error in my log files:
[Sun Sep 23 10:06:45 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Course Technology/1687-5/Chapter.01/Chapter/DessertShop.html
[Sun Sep 23 10:10:09 2007] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico.
Please someone help me!!!!
---------------------------------
Shape Yahoo! in your own image. Join our Network Research Panel today!
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
Re: [users@httpd] Help for first time user
Posted by ed...@ita.org.mo.
Hello Judy,
What is your environment ?
Edward.
Judy Hulsey wrote:
>
>
> I am an Information Technology student and I am taking PHP this
> semester. I have downloaded and installed Apache and when I test it I
> get the message
>
>
> It works!
>
> But when I try to open a page with Apache I get
> HTTP 403 (Forbidden)
>
>
> Forbidden
>
> You don't have permission to access
> /PHP_Projects/Chapter.01/Chapter/DessertShop.html on this server.
> I get this error in my log files:
> [Sun Sep 23 10:06:45 2007] [error] [client 127.0.0.1] client denied by
> server configuration: C:/Course
> Technology/1687-5/Chapter.01/Chapter/DessertShop.html
> [Sun Sep 23 10:10:09 2007] [error] [client 127.0.0.1] File does not
> exist: C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs/favicon.ico.
> Please someone help me!!!!
>
> ------------------------------------------------------------------------
> Shape Yahoo! in your own image. Join our Network Research Panel today!
> <http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7>
[users@httpd] Help for first time user
Posted by Judy Hulsey <ja...@yahoo.com>.
I am an Information Technology student and I am taking PHP this semester. I have downloaded and installed Apache and when I test it I get the message It works! But when I try to open a page with Apache I get
HTTP 403 (Forbidden)
Forbidden You don't have permission to access /PHP_Projects/Chapter.01/Chapter/DessertShop.html on this server.
I get this error in my log files:
[Sun Sep 23 10:06:45 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Course Technology/1687-5/Chapter.01/Chapter/DessertShop.html
[Sun Sep 23 10:10:09 2007] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico.
Please someone help me!!!!
---------------------------------
Shape Yahoo! in your own image. Join our Network Research Panel today!