RE: [EMAIL PROTECTED] Using a proxy manually from a webbrowser?

2007-11-07 Thread Axel-Stephane SMORGRAV
you're cruising for a bruising. 

The only way I can imagine it would possible to achieve this would be by 
creating a reverse proxy.

First of all, even if this is possible using mod_rewrite, you will not be able 
to rewrite the Location headers (ProxyPassReverse) to make redirects work 
correctly. You will also need to rewrite all links in HTML (and even non-HTML) 
contents so that they point to your proxy and use the correct URL path, which 
may work for a number of web sites, but which will certainly fail for others.

If that was not enough, you expose yourself to all kinds of troubles by 
allowing anyone to hide themselves behind your (reverse) proxy.


-ascs
 
-Message d'origine-
De : Martin Fick [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 8 novembre 2007 08:31
À : users@httpd.apache.org
Objet : [EMAIL PROTECTED] Using a proxy manually from a webbrowser?

Hi,

This may sound like a strange question, but I am trying to use mod_proxy in a 
way which I have not yet seen described anywhere.  What I would like to do is 
accept connections on my webserver for certain URLs,
say:  

http://myapache.com/useproxy/website.com/webpage.html

where example myapache.com is my web server and website.com/webpage.html is the 
http URL of some page that I would like the user to be proxied to.  The trick 
that makes my question different from a normal ProxyPass setup is that I would 
like to chain the request through a proxy server, say privoxy.  The end result 
should be that the page returned by th webserver (myapache.com) should actually 
be http://website.com/webpage.html but the request has to go through privoxy! 

The idea is that a user could make use of privoxy running on my website without 
having to configure a proxy in their browser (imagine that they already have to 
use a proxy to get out of their corporate firewall).  Then they could still 
benefit from using privoxy by accessing it with my web server manually.

If there are any other ways of manually making use of a proxy server from a 
browser without using the proxy setting in a browser that would be a welcomed 
alternative to what I am suggesting.

Thanks,

-Martin


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Using a proxy manually from a webbrowser?

2007-11-07 Thread Martin Fick
Hi,

This may sound like a strange question, but I am
trying to use mod_proxy in a way which I have not yet
seen described anywhere.  What I would like to do is
accept connections on my webserver for certain URLs,
say:  

http://myapache.com/useproxy/website.com/webpage.html

where example myapache.com is my web server and
website.com/webpage.html is the http URL of some page
that I would like the user to be proxied to.  The
trick that makes my question different from a normal
ProxyPass setup is that I would like to chain the
request through a proxy server, say privoxy.  The end
result should be that the page returned by th
webserver (myapache.com) should actually be
http://website.com/webpage.html but the request has to
go through privoxy! 

The idea is that a user could make use of privoxy
running on my website without having to configure a
proxy in their browser (imagine that they already have
to use a proxy to get out of their corporate
firewall).  Then they could still benefit from using
privoxy by accessing it with my web server manually.

If there are any other ways of manually making use of
a proxy server from a browser without using the proxy
setting in a browser that would be a welcomed
alternative to what I am suggesting.

Thanks,

-Martin


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache Hangs.. Server-Status shows all Reading

2007-11-07 Thread Christian Folini
Hey Andrew,

You have to try and isolate the problem.
It's a start to remove modules and make the issue
go away in a lab setup and thus identify the component
that is causing the problem. Try to nail down the
individual requests that cause a server process/thread
to hang.

Ideally mod_forensic should tell you about this
requests as the forensic log will tell you about incoming
requests before they are handled. But I am not sure
they are in the forensic log as your status suggests
they are still being read. 

tcpdump outside of your apache could help here (start
with "tcpdump -A -s 0 port xxx" here. Unless it is
https traffic, then it would not tell you much.

regs,

Christian

On Wed, Nov 07, 2007 at 09:31:58AM -0800, Andrew Rosolino wrote:
> 
> Hi this keeps happening a lot where my server will be unresponsive... it just
> hangs forever.. so I checked the apache server-status and there was 131
> requests that looked like this..
> 
> 39-16 2177 0/67/114 R  0.95 47 562 0.0 0.48 0.66  ? ? ..reading..  
> 40-16 29189 0/220/220 R  3.40 47 135 0.0 0.67 0.67  ? ? ..reading..  
> 41-16 3959 0/7/111 R  0.21 48 81 0.0 0.01 0.42  ? ? ..reading..  
> 
> They were all just in the "reading" state and i couldnt get an open slot nor
> anyone else who was viewing our websites..
> 
> I restarted apache and all was fine.. but then 20 minutes later they went
> back all into a reading state.. it appears as if slowly each processes goes
> into the reading state?? I dont understand what the problem is.
> -- 
> View this message in context: 
> http://www.nabble.com/Apache-Hangs..-Server-Status-shows-all-Reading-tf4766110.html#a13631744
> Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Timeout problem with apache benchmark

2007-11-07 Thread Lahiru Gunathilake
Hi,
I'm testing performance of Apache Axis2/c using apache Bechmark.I'm
sending requests in a linux machine but when i'm sending a big xml
file with my request
apache benchmark is time out.I don't know how to set apache benchmark
timeout.And when i'm setting the apache web server's timeout parameter
it's not responding to that set value.I just edit the
conf/extras/httpd-default.conf and included that file in the
conf/httpd.conf file.I think there's a problem with apache benchmark
in linux.Then i tried to send request in windows now it can send big
files but the performance is very slow.
In linux some services requests per second:1
In window some services requests per seconde:2500
Do i need to do any settings with windows before using apache
benchmark or there's a performance issue with windows.what should i
do...?

Regs
lahiru


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] How to recover the disappeared icon

2007-11-07 Thread Can Le
Thank Tom Hart 

<[EMAIL PROTECTED]> wrote:
>It might be helpful if you were able to provide us with more information about 
>your >system and your apache setup.

I am using Window XP Home, Redhat 9.0, apache2 with Active Perl 5.8.

 Checked folder htdocs I have file favicon.ico in it, but properties and 
attributes show a checked mark on [x] Read only, after I uncheck it and clicked 
OK, I re-opened to check: It is [x] Read only again! I tried to change folder 
apache2.2 too, it won't change this permission [x]Read only!

You may be right about file permission, may be network with 16 bits mixed to my 
WindowsXP 32 bits?. 

Please help.
Can Le

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[EMAIL PROTECTED] TCP Connections go to FIN state after each request

2007-11-07 Thread Tapan Nanawati
Hi
I am trying to upgrade from apache 2.2.4 to 2.2.6 on Red Hat AS4
update4-x64  configuration

I compiled apache with following options. My 2.2.4 apache was also
compiled with below configuration. 

./configure --enable-proxy --enable-proxy-http --enable-proxy-connect 
--enable-proxy-ftp --enable-http-core --enable-rewrite --enable-ssl 
--enable-deflate --enable-expires --enable-so --enable-headers 
--enable-logio --with-ssl=/cust/openssl-0.9.8f 
--prefix=/usr/opt/apache2 --with-mpm=prefork  
--enable-maintainer-mode


I connected 2.2.6 using the httpd.conf file which I was using in 2.2.4.

I collected tcpdump { tcpdump -s 0 host webServ -w dump.log } on one of
the servers where apache was proxypassing requests.
On analysing with etheral I observe that apache is closing the
connection after every request.
Here is a section from etheral which keeps repeating after every
request->

Header
"No","time","Source","destination","protocol","Info logicalport >
listening port [Status].. "

Data ->
"3","0.018626","208.246.226.171","208.246.226.166","TCP","33164 > 9380
[FIN, ACK] Seq=0 Ack=1379 Win=17 Len=0 TSV=380276575 TSER=327971424"

Then next request starts from next port ->
"4","0.018668","208.246.226.171","208.246.226.166","TCP","33165 > 9380
[SYN] Seq=0 Len=0 MSS=1460 TSV=380276575 TSER=0 WS=9"


This problem is not there when I connect with 2.2.4 to the same server.

I read the release notes, googled etc.. but could not find a clue. 
Any clues where to look for?

Tapan

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] dbd and mysql in apache 2.2.6

2007-11-07 Thread Res


Daniel,. this sounds like you did not run ./configure from teh very top 
source directory first.

This needs to be done to make the apr stuff available from what I can see.
Like I said earlier do a dummy ./configure run from the main source 
directory first.




On Wed, 7 Nov 2007, Daniel Campbell wrote:

I did the following but get a configure error with --with-apr=../apr Any 
Ideas?


Thanks,
Dan

build_machine:/usr/local/src#tar -xjf httpd-2.2.6.tar.bz2
build_machine:/usr/local/src#cd httpd-2.2.6
build_machine:/usr/local/src/httpd-2.2.6#cd srclib/apr
apr   apr-util
build_machine:/usr/local/src/httpd-2.2.6#cd srclib/apr-util/dbd/
build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#cat 
../INSTALL.MySQL

The MySQL driver is not distributed from apache.org due to licensing issues.

If you wish to build the driver, download apr_dbd_mysql.c from
http://apache.webthing.com/database/
and copy it into the dbd directory.
Now run buildconf, followed by configure.

It is distributed under the GPL to conform with MySQL License terms
This means it cannot be distributed from apache.org, as that would
violate ASF policy.

Using the driver with APR and Apache is of course allowed,
and there is no problem with a third party bundling the driver,
provided you respect both the ASF and GPL licenses.
build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#wget 
http://apache.webthing.com/database/apr_dbd_mysql.c

--17:36:22--  http://apache.webthing.com/database/apr_dbd_mysql.c
  => `apr_dbd_mysql.c'
Resolving apache.webthing.com... 195.50.92.131
Connecting to apache.webthing.com[195.50.92.131]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18,999 [text/plain]

100%[>] 
18,999   115.34K/s


17:36:23 (114.69 KB/s) - `apr_dbd_mysql.c' saved [18999/18999]

build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#cd ..
build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util#./buildconf

Looking for apr source in /usr/local/src/httpd-2.2.6/srclib/apr
Creating include/private/apu_config.h ...
Creating configure ...
Generating 'make' outputs ...
Invoking xml/expat/buildconf.sh ...
Copying libtool helper files ...
Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ...
Creating config.h.in ...
autoheader: WARNING: Using auxiliary files such as `acconfig.h', 
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for 
`config.h.in'

autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see 
the

autoheader: WARNING: documentation.
Creating configure ...
rebuilding rpm spec file
build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util#./configure 
--with-apr=../apr

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for working mkdir -p... yes
APR-util Version: 1.2.10
checking for chosen layout... apr-util
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... configure: error: the --with-apr parameter is incorrect. 
It must specify an install prefix, a build directory, or an apr-config file.

build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util#

Res wrote:



Daniel Campbell schrieb:
Has anyone had any luck building mysql into apache version 2.2.6?  I am 
able to get it to compile fine but if I "ldd httpd" there is no mysql 
library linked in and if I try and use the "DBDriver mysql" in the 
httpd.conf file I get "DBD: No driver for mysql" when starting it.


I have followed the INSTALL.MYSQL instructions under the srclib/apr-util 
directory which says to download the apr_dbd_mysql.c file from the 
http://apache.webthing.com/database/ website to the srclib/apr-util/dbd 
directory and run the main buildconf and configure.  My configure is long 
but should work.  I have even tried it with a very short basic one to no 
avail.


Daniel, can you indicate what steps you are doing for us to see that way we 
can advise you further.


Should be... firstly, you may need to run a du

Re: [EMAIL PROTECTED] Multiple Wikis, Multiple DB's, Single User Table

2007-11-07 Thread Dragon

Liz Kim wrote:

We have four separate wiki's set up on our server each using a
different db in MySQL.
Each of the db contain their own tables with a list different users...

Would it be possible to only use one of the four tables and have the
three wikis point to this one user table?
I would assume some major restructuring may be needed as the user_id's
differ on each db's but as we have very small number of users, I can
try to clean/match them up some how...
Any suggestions?

 End original message. -

This isn't an Apache server issue. I would suggest finding a support 
list or forum for the wiki software you are using and asking them.




Dragon

~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Multiple Wikis, Multiple DB's, Single User Table

2007-11-07 Thread Liz Kim
We have four separate wiki's set up on our server each using a
different db in MySQL.
Each of the db contain their own tables with a list different users...

Would it be possible to only use one of the four tables and have the
three wikis point to this one user table?
I would assume some major restructuring may be needed as the user_id's
differ on each db's but as we have very small number of users, I can
try to clean/match them up some how...
Any suggestions?

Thank you,
-- Liz

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] dbd and mysql in apache 2.2.6

2007-11-07 Thread Nick Kew
On Wed, 07 Nov 2007 17:39:48 -0500
Daniel Campbell <[EMAIL PROTECTED]> wrote:

> I did the following but get a configure error with --with-apr=../apr 
> Any Ideas?

--with-apr needs to point to your /path-to-apr-1-config
(as does --with-apr-util).

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] dbd and mysql in apache 2.2.6

2007-11-07 Thread Daniel Campbell
I did the following but get a configure error with --with-apr=../apr 
Any Ideas?


Thanks,
Dan

build_machine:/usr/local/src#tar -xjf httpd-2.2.6.tar.bz2
build_machine:/usr/local/src#cd httpd-2.2.6
build_machine:/usr/local/src/httpd-2.2.6#cd srclib/apr
apr   apr-util
build_machine:/usr/local/src/httpd-2.2.6#cd srclib/apr-util/dbd/
build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#cat 
../INSTALL.MySQL

The MySQL driver is not distributed from apache.org due to licensing issues.

If you wish to build the driver, download apr_dbd_mysql.c from
http://apache.webthing.com/database/
and copy it into the dbd directory.
Now run buildconf, followed by configure.

It is distributed under the GPL to conform with MySQL License terms
This means it cannot be distributed from apache.org, as that would
violate ASF policy.

Using the driver with APR and Apache is of course allowed,
and there is no problem with a third party bundling the driver,
provided you respect both the ASF and GPL licenses.
build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#wget 
http://apache.webthing.com/database/apr_dbd_mysql.c

--17:36:22--  http://apache.webthing.com/database/apr_dbd_mysql.c
   => `apr_dbd_mysql.c'
Resolving apache.webthing.com... 195.50.92.131
Connecting to apache.webthing.com[195.50.92.131]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18,999 [text/plain]

100%[>] 
18,999   115.34K/s


17:36:23 (114.69 KB/s) - `apr_dbd_mysql.c' saved [18999/18999]

build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#cd ..
build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util#./buildconf

Looking for apr source in /usr/local/src/httpd-2.2.6/srclib/apr
Creating include/private/apu_config.h ...
Creating configure ...
Generating 'make' outputs ...
Invoking xml/expat/buildconf.sh ...
Copying libtool helper files ...
Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ...
Creating config.h.in ...
autoheader: WARNING: Using auxiliary files such as `acconfig.h', 
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for 
`config.h.in'

autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template 
without

autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, 
see the

autoheader: WARNING: documentation.
Creating configure ...
rebuilding rpm spec file
build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util#./configure 
--with-apr=../apr

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for working mkdir -p... yes
APR-util Version: 1.2.10
checking for chosen layout... apr-util
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... configure: error: the --with-apr parameter is 
incorrect. It must specify an install prefix, a build directory, or an 
apr-config file.

build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util#

Res wrote:



Daniel Campbell schrieb:
Has anyone had any luck building mysql into apache version 2.2.6?  I 
am able to get it to compile fine but if I "ldd httpd" there is no 
mysql library linked in and if I try and use the "DBDriver mysql" in 
the httpd.conf file I get "DBD: No driver for mysql" when starting it.


I have followed the INSTALL.MYSQL instructions under the 
srclib/apr-util directory which says to download the apr_dbd_mysql.c 
file from the http://apache.webthing.com/database/ website to the 
srclib/apr-util/dbd directory and run the main buildconf and 
configure.  My configure is long but should work.  I have even tried 
it with a very short basic one to no avail.


Daniel, can you indicate what steps you are doing for us to see that way 
we can advise you further.


Should be... firstly, you may need to run a dummy ./configure in the 
main source dir (to generate some other stuff it needs, if this is a 
fresh install)



cd httpd-2.2.6/srclib/apr-util/dbd
get the apr_dbd_mysql.c (which I read you have) into this directory
cd ..(should now be in httpd-2.2.6/srclib/apr-util)
./buildconf
./configure --with-apr

Re: [EMAIL PROTECTED] ProxyPass // ProxyPassReverse question

2007-11-07 Thread Nick Kew
On Wed, 7 Nov 2007 16:40:49 -0500
"Van Nguyen" <[EMAIL PROTECTED]> wrote:

> I know this is a little long and somewhat confusing... but any help
> would be great!  Thanks in advance.

It looks as if you're struggling towards
http://www.apachetutor.org/admin/reverseproxies

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] ProxyPass // ProxyPassReverse question

2007-11-07 Thread Van Nguyen
I am using Apache HTTP server as a front end to JBoss.  I have my
application deployed as:

 

http://internal.domain.com/foobar

 

If I type in that URL, it works as expected.  Going to that page will
forward you to a login on page
(http://internal.domain.com/foobar/global/login.do).  This virtual host
will only be accessible internally.

 

I want to set up another virtual host on the same server (which will be
accessible from the outside world) and give it this URL:

 

http://public.domain.com/foobar_public

 

This is where I'm running into difficulties.  

 

I added this into my  section:

ProxyPass /foobar_public ajp://localhost:8009/foobar

ProxyPassReverse /foobar_public ajp://localhost:8009/foobar

 

That did not work.  It gives me:

 

Not Found

The requested URL /csapp/ was not found on this server.

 

If I then add these lines to the  section

ProxyPass /foobar_public ajp://localhost:8009/foobar

ProxyPassReverse /foobar_public ajp://localhost:8009/foobar

ProxyPass /foobar ajp://localhost:8009/foobar

ProxyPassReverse /foobar ajp://localhost:8009/foobar

 

That works... but I want it to keep the /foobar_public context.

 

So I added a RewriteRule:

RewriteRule ^/foobar/(.*) /foobar_public/$1 [R]

 

Now it does what I want... When I type in
http://public.domain.com/foobar_public... it sends me to the appropriate
login page.  BUT... the login action is /foobar/global/login.do...
instead of /foobar_public/global/login.do.

 

My jsp:

 



 

Can someone shed any light to what I might be doing wrong?

 

I know this is a little long and somewhat confusing... but any help
would be great!  Thanks in advance.



Re: [EMAIL PROTECTED] dbd and mysql in apache 2.2.6

2007-11-07 Thread Res



Daniel Campbell schrieb:
Has anyone had any luck building mysql into apache version 2.2.6?  I am 
able to get it to compile fine but if I "ldd httpd" there is no mysql 
library linked in and if I try and use the "DBDriver mysql" in the 
httpd.conf file I get "DBD: No driver for mysql" when starting it.


I have followed the INSTALL.MYSQL instructions under the srclib/apr-util 
directory which says to download the apr_dbd_mysql.c file from the 
http://apache.webthing.com/database/ website to the srclib/apr-util/dbd 
directory and run the main buildconf and configure.  My configure is long 
but should work.  I have even tried it with a very short basic one to no 
avail.


Daniel, can you indicate what steps you are doing for us to see that way 
we can advise you further.


Should be... firstly, you may need to run a dummy ./configure in the main 
source dir (to generate some other stuff it needs, if this is a fresh 
install)



cd httpd-2.2.6/srclib/apr-util/dbd
get the apr_dbd_mysql.c (which I read you have) into this directory
cd ..(should now be in httpd-2.2.6/srclib/apr-util)
./buildconf
./configure --with-apr=../apr
cd ../../(back to main source dir) and run your full configure line, 
make, install then run the test.



--
Cheers
Res



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] How to recover the disappeared icon

2007-11-07 Thread Tom Hart
Is this a file permissions problem? If you're running apache with best 
security practices in mind, you should be running it under another 
non-privileged account. If this is the case, and the icon you want to 
use is from before you reformatted (or after actually) there could be a 
file permission problem accessing your file (hence it defaulting to a 
windows icon). This is kind of a shot in the dark, though.


It might be helpful if you were able to provide us with more information 
about your system and your apache setup.


Can Le wrote:

Hello friends,

After I re-installed to recover windows XP home and Apache2, my 
personal Icon disappeared, it is replaced by Apache feathered Icon.


I copied and pasted  image file favicon.ico from Manual to htdocs, but 
it won't show the feather image as my page had it before, now it is 
showing only the notepad logo!. I use the same httpd.conf which was 
worked OK on Icon.


I restarted computer after I restarted apache2.
Please help me solve the icon problem.

Thank you
Can Le


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] How to recover the disappeared icon

2007-11-07 Thread Can Le
Hello friends,

After I re-installed to recover windows XP home and Apache2, my personal Icon 
disappeared, it is replaced by Apache feathered Icon.

I copied and pasted  image file favicon.ico from Manual to htdocs, but it won't 
show the feather image as my page had it before, now it is showing only the 
notepad logo!.  I use the same httpd.conf which was worked OK on Icon.

I restarted computer after I restarted apache2. 
Please help me solve the icon problem.

Thank you
Can Le



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

pgputKfAN5tRs.pgp
Description: pat1604059182
-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[EMAIL PROTECTED] logging php usage and directory index pages

2007-11-07 Thread alex

Two questions about logging:

1. Can I log whether or not the current request was operated on by mod_php?

I want to determine what % of my requests are PHP.  I've tried to  
determine this based on filename, but with ForceType and other  
configuration directives, it's possible for a file to be parsed as PHP  
even if it doesn't have the .php file extension.


I saw the log formatter "%...{Foobar}n  	The contents of note Foobar  
from another module.", and that sounds promising, but I'm really not  
sure what it means, or what value I might use for {Foobar}.

http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#formats

2. Can I log the actual file that was served, even for directory indexes?

I've tried the '%f' log format, and for http://site.com requests, I  
get a log of '/var/www/site.com/htdocs/'.  If the directory index file  
was 'index.html', I'd like '/var/www/site.com/htdocs/index.html' to  
get into the log somehow.


thanks,
alex

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Apache Hangs.. Server-Status shows all Reading

2007-11-07 Thread Andrew Rosolino

Hi this keeps happening a lot where my server will be unresponsive... it just
hangs forever.. so I checked the apache server-status and there was 131
requests that looked like this..

39-16 2177 0/67/114 R  0.95 47 562 0.0 0.48 0.66  ? ? ..reading..  
40-16 29189 0/220/220 R  3.40 47 135 0.0 0.67 0.67  ? ? ..reading..  
41-16 3959 0/7/111 R  0.21 48 81 0.0 0.01 0.42  ? ? ..reading..  

They were all just in the "reading" state and i couldnt get an open slot nor
anyone else who was viewing our websites..

I restarted apache and all was fine.. but then 20 minutes later they went
back all into a reading state.. it appears as if slowly each processes goes
into the reading state?? I dont understand what the problem is.
-- 
View this message in context: 
http://www.nabble.com/Apache-Hangs..-Server-Status-shows-all-Reading-tf4766110.html#a13631744
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] htaccess url redirect problem

2007-11-07 Thread Joshua Slive
On Nov 7, 2007 6:49 AM, pinky goyal <[EMAIL PROTECTED]> wrote:
> Hi All !
>
> I have stuck up due my .htaccess file.
>
> ---here in my .htaccess file - 
>
> Options +FollowSymLinks
> RewriteEngine On
>
>
> 
> # REDIRECTION FROM NONSECURE TO SECURE #
> 
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^(confirmDetails\.php|transResponse\.php)$
> https://devfoundry.com/www3/web/shop/$1 [R=301,L]
>
> 
> # REDIRECTION FROM SECURE TO NONSECURE #
> #
> #RewriteCond %{SERVER_PORT} ^443$
> #RewriteCond %{REQUEST_URI} !^(confirmDetails\.php|transResponse\.php)$
> #RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
>
> -
>
> i want to redirect url
>
> http://domain.com/www3/web/shop/new.php to
> https://domain.com/www3/web/shop/new.php
>
> and url to
>
> http://domain.com.com/www3/web/shop/pay.php to
> https://domain.com/www3/web/shop/pay.php

Your examples above don't say anything about "pay.php" or "new.php".
If you gave us some consistent examples, and perhaps RewriteLog
output, we would be more likely to be able to help.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] problem with mod_authnz_ldap with AD

2007-11-07 Thread Mark H. Wood
On Fri, Oct 26, 2007 at 03:12:59PM -0400, David Nalley wrote:
> In capturing the packets I see that it binds successfully several times and 
> then tries to authenticate. The AD box returns:
> LDAPMessage searchResDone(5) operationsError (: LdapErr: 
> DSID-0C090627, comment: In order to perform this operation a successful bind 
> must be completed on the connection., data 0, vece) [0 results]
> 
> None of the binds that occur in the capture failed though. (all the bind 
> responses reported success) 

I've seen this far too often when connecting new services to ADS.  It
means that a null bind was done.  ADS accepts null binds but grants
them no access to anything.  You need an authenticated bind to
actually execute operations successfully.

I don't see why httpd should be doing anonymous binds, given the
configuration snippet you posted, but that is what I would go looking for.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.



pgphralpXAMnj.pgp
Description: PGP signature


Re: [EMAIL PROTECTED] dbd and mysql in apache 2.2.6

2007-11-07 Thread Max Dittrich

Hi,

Daniel Campbell schrieb:
Has anyone had any luck building mysql into apache version 2.2.6?  I am 
able to get it to compile fine but if I "ldd httpd" there is no mysql 
library linked in and if I try and use the "DBDriver mysql" in the 
httpd.conf file I get "DBD: No driver for mysql" when starting it.


I have followed the INSTALL.MYSQL instructions under the srclib/apr-util 
directory which says to download the apr_dbd_mysql.c file from the 
http://apache.webthing.com/database/ website to the srclib/apr-util/dbd 
directory and run the main buildconf and configure.  My configure is 
long but should work.  I have even tried it with a very short basic one 
to no avail.


[...]

It worked for me by running buildconf from the directory "srclib/apr-util"

.max



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] htaccess url redirect problem

2007-11-07 Thread pinky goyal
Hi All !

I have stuck up due my .htaccess file.

---here in my .htaccess file - 

Options +FollowSymLinks
RewriteEngine On


# REDIRECTION FROM NONSECURE TO SECURE #

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(confirmDetails\.php|transResponse\.php)$
https://devfoundry.com/www3/web/shop/$1 [R=301,L]


# REDIRECTION FROM SECURE TO NONSECURE #
#
#RewriteCond %{SERVER_PORT} ^443$
#RewriteCond %{REQUEST_URI} !^(confirmDetails\.php|transResponse\.php)$
#RewriteRule (.*)
http://%{HTTP_HOST}%{REQUEST_URI}
[R=301,L]

-

i want to redirect url

http://domain.com/www3/web/shop/new.php to
https://domain.com/www3/web/shop/new.php

and url to

http://domain.com.com/www3/web/shop/pay.php to
https://domain.com/www3/web/shop/pay.php

but with this htaccess file when instead redirecting to
https://domain.com/www3/web/shop/new.php  it redirects to
https://domain.com/www3/web/shop/index.php

it's reallly urgent as the deadline is very tough.

can anyone please help me out what is the problem.

lot of thanx in advance

pinky


Re: [EMAIL PROTECTED] Code Pages Downloadable!

2007-11-07 Thread dugaldcurtis

Thanks for the suggestions.

In the end I found that unless the site root was handled by mono (currently
only /cashless/ is handled), the // would continue to cause problems. 
However, this change brought its own problems - php pages stopped being
served correctly and mono started to redirect subfolder pages back to the
root.  In the end, the solution which allowed me to continue serving php
pages correctly and avoid changes to my .net app was just to add:



> 
> Order allow,deny
> Deny from all
>  
> 

to my apache2.conf.  Probably not the most elegant solution in the world,
but given that the site is internal and not customer facing I think that it
is adequate.
-- 
View this message in context: 
http://www.nabble.com/Code-Pages-Downloadable%21-tf4747449.html#a13622720
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]