RE: [EMAIL PROTECTED] ProxyPassReverse on Windows

2006-05-19 Thread Axel-Stéphane SMORGRAV
If I understand you correctly, you are saying that your reverse proxy does not 
serve the documents that you expect it to, but that any document requested is 
served by the backend. 

That is because of the ProxyPass directive that passes all requests having the 
URL path prefix / to the backend. If you give a more specific path as the first 
argument to ProxyPass, only requests for URL paths starting with that prefix 
will be passed to the backend.

You can also specify exceptions that are to be served by the reverse proxy by 
adding the following line to the top of your list of ProxyPass directives:

ProxyPass /path/to/exception !

-ascs


-Original Message-
From: Avraham Shapiro [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 18, 2006 10:05 PM
To: Axel-Stéphane SMORGRAV; users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] ProxyPassReverse on Windows
Importance: Low

** Low Priority **

Yes.  I tried  and:
At this point the ip address works as reverse proxy
  the DNS address works as reverse proxy
  hardcoding address 192.168.0.2 works.

For some strange reason 192.168.0.1 (the local host) doesn't work (i.e. get 
served by the connected host).  I'm looking into that one, though we really 
wont have much need for it, given the above

Thanks.

Avi

 [EMAIL PROTECTED] 05/18/06 5:54 AM 
Replace
 
ProxyPass http://tswwma.lib.loc.gov/  http://192.168.0.2/ 
ProxyPassReverse http://tswwma.lib.loc.gov/  http://192.168.0.2/ 

with

ProxyPass/  http://192.168.0.2/ 
ProxyPassReverse /  http://192.168.0.2/ 


-ascs

-Original Message-
From: Avraham Shapiro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 17, 2006 8:48 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] ProxyPassReverse on Windows
Importance: Low

** Low Priority **

Brian

I read the applicable part of the doc and tried ProxyPassReverse with and 
without dns names and with and without the proxy section but I still can't get 
reverse proxy to work.  When I fire up my browser I always get the local Apache 
server. 

Here's the relevant part of my httpd.conf:
==

ServerName tswwma.lib.loc.gov
UseCanonicalName On
ProxyRequests Off

Proxy *

Order deny,allow
Allow from all

/Proxy

ProxyPass http://tswwma.lib.loc.gov/  http://192.168.0.2/ 
ProxyPassReverse http://tswwma.lib.loc.gov/  http://192.168.0.2/ 

=

There's nothing in my error log when I use a domain name and proxy section.  as 
abpve.
But when I omit them it actually seems to come close to executing the proxy.  
Then I get the following in error.log:

[Tue May 16 15:30:15 2006] [notice] Apache/2.2.2 (Win32) configured -- resuming 
normal operations [Tue May 16 15:30:15 2006] [notice] Server built: Apr 29 2006 
18:32:31 [Tue May 16 15:30:15 2006] [notice] Parent: Created child process 588 
[Tue May 16 15:30:15 2006] [debug] mpm_winnt.c(481): Parent: Sent the 
scoreboard  to the child [Tue May 16 15:30:15 2006] [notice] Child 588: Child 
process is running [Tue May 16 15:30:15 2006] [debug] mpm_winnt.c(402): Child 
588: Retrieved our sc oreboard from the parent.
[Tue May 16 15:30:15 2006] [info] Parent: Duplicating socket 208 and sending it 
to child process 588 [Tue May 16 15:30:15 2006] [debug] mpm_winnt.c(599): 
Parent: Sent 1 listeners to  child 588 [Tue May 16 15:30:15 2006] [debug] 
mpm_winnt.c(558): Child 588: retrieved 1 list eners from parent [Tue May 16 
15:30:15 2006] [debug] proxy_util.c(1625): proxy: grabbed scoreboard  slot 0 in 
child 588 for worker http://192.168.0.2/ [Tue May 16 15:30:15 2006] [debug] 
proxy_util.c(1708): proxy: initialized worker  0 in child 588 for (192.168.0.2) 
min=0 max=250 smax=250 [Tue May 16 15:30:15 2006] [debug] proxy_util.c(1625): 
proxy: grabbed scoreboard  slot 1 in child 588 for worker proxy:reverse [Tue 
May 16 15:30:15 2006] [debug] proxy_util.c(1708): proxy: initialized worker
 1 in child 588 for (*) min=0 max=250 smax=250 [Tue May 16 15:30:15 2006] 
[notice] Child 588: Acquired the start mutex.
[Tue May 16 15:30:15 2006] [notice] Child 588: Starting 250 worker threads.
[Tue May 16 15:30:15 2006] [notice] Child 588: Starting thread to listen on 
port  80.


It seems to be attempting the reverse proxy but fails.  I noticed someone else 
in the mail list using VirtualHost to do ProxyPassReverse.  But I didn't see 
the doc instructing me to do it that way.
Also, I don't remember the scoreboard, which is prominent in the log,  being 
discussed in the docs.  
BTW if I didn't already mention it, this is 2.2.

Any ideas?  

Thanks in advance!

Avi

 Brian Rectanus [EMAIL PROTECTED] 05/16/06 11:31 AM 
On 5/16/06, Avraham Shapiro [EMAIL PROTECTED] wrote:
 ** Low Priority **

 I loaded mod_proxy, and it no longer complains about the ProxyPassReverse 
 line.
 But when I open http://localhost in my browser the reverse proxy doesn't 
 happen.
 Instead it says can't find server.  

Re: [EMAIL PROTECTED] url reformat - howto

2006-05-19 Thread Oliver A. Rojo

Brian Rectanus wrote:


What you had will strip the mydir off at the backend.

ProxyRequests off
ProxyPass /mydir/ http://www.mydomain.com:8080/mydir/

-B

On 5/18/06, Oliver A. Rojo [EMAIL PROTECTED] wrote:


Krist van Besien wrote:

 On 5/18/06, Oliver A. Rojo [EMAIL PROTECTED] wrote:

 Hi all!

 Im running Java pages on my server. Basically, all pages will have a
 direct url like http://mydomain.com:8080/mydir

 What I did is for user not to type a long url by simply typing the
 normal domain such as http://www.mydomain.com and redirecting to
 http://www.mydomain.com:8080/mydir.

 What appears to be my problem is how to avoid the whole
 http://www.mydomain.com:8080/mydir url appear on the browser which is
 when I type in the absolute domain, 
http://www.mydomain.com:8080/mydir

 url will just map into http://www.mydomain.com which will eventually
 appear on the client's browser.


 This is what happens when you do a redirect:

 - Browser requests  http://www.mydomain.com
 - Server answers with I don't have this, but try
 http://www.mydomain.com:8080/mydir in stead.
 - Browser requests http://www.mydomain.com:8080/mydir

 And for this reason the new URL apears on the adress line of the
 browser. This is by design.

 If you want to hide the fact that resources are not where they apear
 to be you need to use reverse proxying, not redirection.

 Krist

Ok what I did is:



ProxyRequests off
ProxyPass /mydir http://www.mydomain.com:8080

But it didn't worked at all

--


Oliver A. Rojo




__

This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email in error
please notify the system manager. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for the
 presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






ok this is my whole config...

VirtualHost 69.16.199.98
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /var/www/html
   ServerName mydomain.com.com
   ServerAlias www
   ProxyRequests off
   ProxyPass /mydir http://www.domain.com:8080/mydir/
   ErrorLog logs/mydomain.com-error_log
   CustomLog logs/mydomain.com-access_log combined
/VirtualHost

Still not workin'. By the way, what will be the content of my 
index.html? thanks again!


--


Oliver A. Rojo




__

This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this email in error 
please notify the system manager. Please note that any views or 
opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, 
the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any 
damage caused by any virus transmitted by this email.



-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] apxs vs. configure to add modules

2006-05-19 Thread Richard de Vries
I had a similiar problem with the mod_proxy modules,
but even specifiying these modules during the
./configure phase did not work properly for me.

Try this:

cd $source_dir/modules/proxy
$apache-home/bin/apxs -i -a -c *.c

R.

--- JP [EMAIL PROTECTED] wrote:

 Hi.  My question is:
 Is there a proper method to adding delivered modules
 to httpd 2.2.2 after
 the initial run of configure, make, and install? 
 That is, should I be able
 to use apxs to add modules, as DSOs, after the
 initial build, or should I be
 using configure to compile and add them?
 
 I'm using AIX 5.2ML7, C for AIX 5.2.0.9.  Initially,
 I'd like to build httpd
 to use all shared objects, so I used this configure
 command:
 ./configure --prefix=/usr/local/apache
 --with-ssl=/usr/linux
 --enable-mods-shared=all --disable-deflate
 --without-berkeley-db
 
 Later, I tried to add mod_proxy, and mod_proxy_ajp
 using apxs:
 executed from $source_dir/modules/proxy
 apxs -i -a -c mod_proxy.c
 apxs -i -a -c mod_proxy_ajp.c
 
 They compiled and seemed to build/install correctly,
 but I got the following
 error when testing the config:
 /usr/local/apache/bin/httpd -t
 httpd: Syntax error on line 102 of
 /usr/local/apache/conf/httpd.conf: Cannot
 load /usr/local/apache/modules/mod_proxy.so into
 server: rtld: 0712-001
 Symbol ap_proxy_lb_workers was referenced\n 
 from module
 /usr/local/apache/modules/mod_proxy.so(), but a
 runtime definition\n  of
 the symbol was not found.
 ...
 
 So, I eventually found the problem was that a
 library, proxy_util, was not
 being linked into mod_proxy.so by the apxs commands
 I used.  It turns out
 that if the proxy modules are specified explicitly
 in the configure command,
 then the build is performed correctly.  It occurred
 to me that maybe apxs is
 doing exactly what I told it to, and that I might be
 left up to the user to
 sort out dependencies.  
 
 If I'm missing a flag or something in the apxs
 command, please let me know.
 
 Thanks for your help,
 JP
 
 
 
 
 

-
 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:
 [EMAIL PROTECTED]
   from the digest:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
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 URL: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] Hacked Web Site

2006-05-19 Thread Jaqui Greenlees

--- Don O'Neil [EMAIL PROTECTED] wrote:

 Well I would tend to agree with you, except for the
 fact that the 3 sites
 did not use any SQL, they were all simple html sites
 with very little
 content.
 
 I did find something that referenced hidden field
 injections as well, but
 again, none of the sites had hidden fields.
 
 This is why I am puzzled as to what could be going
 on here. 

I wasn't looking at the sites you arehosting, I was
looking at the 3000+ sites listed as being hacked by
them. Most of them are database driven sites, making
sql injection the most propable vector.
for static html, apache configuration for the hosting
server will very much dictate what happened and how,
the server logs for the time the hack happened will
contain a lot of data to point you at where they found
entry to hack the site.

The error log to show the fails, the access log to
show sucessful traffic, look for ip numbers in the
error log that are requesting action that is not
appropriate, then look in the access log for the same
ones. this will show what they tried, and how they
succeded.


__
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 URL: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] rotatelogs and rewriteLog

2006-05-19 Thread Browne, Anthony A
Hello everyone,

Is it possible to use rotatelogs with a rewriteLog on a Windows
OS? If so, how.

TIA

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] rotatelogs and rewriteLog

2006-05-19 Thread Joshua Slive

On 5/19/06, Browne, Anthony A [EMAIL PROTECTED] wrote:

Hello everyone,

Is it possible to use rotatelogs with a rewriteLog on a Windows
OS? If so, how.


I've never tried it, but I don't believe this is possible.

But you shouldn't need to rotate the RewriteLog.  This should be used
for debugging only.

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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] rotatelogs and rewriteLog

2006-05-19 Thread Browne, Anthony A
It didn't appear to be possible when I tried it, but I was wondering if
someone knew a way to do it. We need to use the rewriteLog if our
customers, who will use a gui to change the verbosity, experience
problems. Our goal was to rotate the logs when they reached a certain
size so they could be compressed and sent to us for analysis. Also, if
they get too big, the gui takes a long time to load them into the log
viewer.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua
Slive
Sent: Friday, May 19, 2006 10:47 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] rotatelogs and rewriteLog

On 5/19/06, Browne, Anthony A [EMAIL PROTECTED] wrote:
 Hello everyone,

 Is it possible to use rotatelogs with a rewriteLog on a
Windows
 OS? If so, how.

I've never tried it, but I don't believe this is possible.

But you shouldn't need to rotate the RewriteLog.  This should be used
for debugging only.

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: [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 URL: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] apxs vs. configure to add modules

2006-05-19 Thread Richard de Vries
Ok, how about

cd $source_dir/modules/proxy
$apache-home/bin/apxs -i -a -c *proxy*.c

I know I got it to work using some sort of wildcards.
I'll try to see if I can find it back in my shell's
history.


--- JP [EMAIL PROTECTED] wrote:

 
 
 
 
  
  I had a similiar problem with the mod_proxy
 modules,
  but even specifiying these modules during the
  ./configure phase did not work properly for me.
  
  Try this:
  
  cd $source_dir/modules/proxy
  $apache-home/bin/apxs -i -a -c *.c
  
  R.
  
 
 Hey.  Here's what I get:
 
 Put apxs in PATH.
 cd $source_dir/modules/proxy
 
 $apxs -i -a -c *.c
 /usr/local/apache/build/libtool --silent
 --mode=compile cc -prefer-pic
 -U__STR__ -D_THREAD_SAFE -D_USE_IRS
 -D_LARGEFILE64_SOURCE -g -qHALT=E
 -I/usr/local/apache/include 
 -I/usr/local/apache/include
 -I/usr/local/apache/include   -c -o ajp_header.lo
 ajp_header.c  touch
 ajp_header.slo
 ...
 /usr/local/apache/build/libtool --silent --mode=link
 cc -o ajp_header.la
 -rpath /usr/local/apache/modules -module
 -avoid-version  -Wl,-brtl
 proxy_util.lo mod_proxy_http.lo mod_proxy_ftp.lo
 mod_proxy_connect.lo
 mod_proxy_balancer.lo mod_proxy_ajp.lo mod_proxy.lo
 ajp_msg.lo ajp_link.lo
 ajp_header.lo
 apxs:Error: Sorry, cannot determine bootstrap symbol
 name.
 apxs:Error: Please specify one with option `-n'.
 
 I think it's hanging up on the libraries that aren't
 modules themselves like
 proxy_util, ajp_msg, etc.
 
 JP
 
 

-
 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:
 [EMAIL PROTECTED]
   from the digest:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
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 URL: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 and Tomcat 4.0.6

2006-05-19 Thread Colleen Cubitt


We are now using Apache 1.3.31 and Tomcat 4.0.6 on Unix. We want to upgrade the Apache to 2.0. Just wondering if anyone has done this, or if this will cause problems with Tomcat.
Thanks
Colleen


RE: [EMAIL PROTECTED] Apache and Tomcat 4.0.6

2006-05-19 Thread Tribley William-cwt010



Colleen,
I strongly recommend 
going straight to Apache 2.2 and Tomcat 5.5. You can get rid of the (in my 
opinion horrible) mod_jk setups and all the tricky stuff involved with setting 
up Tomcat connectors. Over the past 4 years of working with Apache and Tomcat, 
I wasted 2 days getting Apache 1.3 to talk to Tomcat 3, 1 day getting 
Apache 2.0 on Unix to talk to Tomcat 4 (never did get it to work in Windows). It 
only took about an hour to connect Apache 2.2 to Tomcat 5.5 . Tomcat 5.5 also 
supports separate files to configure each webapp instead of glomming it all in 
server.xml, a huge win for the configuration management and risk management 
camps.
Bill


From: Colleen Cubitt [mailto:[EMAIL PROTECTED] Sent: 
Friday, May 19, 2006 11:00 AMTo: 
users@httpd.apache.orgSubject: [EMAIL PROTECTED] Apache and Tomcat 
4.0.6

We are now using Apache 1.3.31 and Tomcat 4.0.6 on Unix. We want to 
upgrade the Apache to 2.0. Just wondering if anyone has done this, or if 
this will cause problems with Tomcat.
Thanks
Colleen


Re: [EMAIL PROTECTED] Apache and Tomcat 4.0.6

2006-05-19 Thread Ricardo Stella


Tribley William-cwt010 wrote:
  It only took about an hour to connect Apache 2.2 to Tomcat 5.5 .
 Tomcat 5.5 also supports separate files to configure each webapp
 instead of glomming it all in server.xml, a huge win for the
 configuration management and risk management camps.
 Bill

 
 **

One hour ???  How about 5 minutes.  If you compile and enable mod_proxy
and mod_proxy_ajp, you then simply add a one line to your config like
below, and you have apache talking to tomcat !!!

ProxyPass /servlets-examples ajp://127.0.0.1:8009/servlets-examples

My .02...

-- 

°(((=((===°°°(((===

begin:vcard
fn:Ricardo Stella
n:Stella;Ricardo
org:Rider University
adr;dom:;;2083 Lawrenceville Rd;Lawrenceville;NJ;08648
version:2.1
end:vcard


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [EMAIL PROTECTED] apxs vs. configure to add modules

2006-05-19 Thread JP
 
 Ok, how about
 
 cd $source_dir/modules/proxy
 $apache-home/bin/apxs -i -a -c *proxy*.c
 


That compiles, but produces the symbol resolution error at runtime.   I was
wondering if I am missing something obvious.  The docs say to use apxs to
compile modules outside of the source tree, so I was wondering if one is
only supposed to use configure to compile modules that are delivered (inside
the source tree).  Or, maybe there's an issue with apxs.  I was thinking on
filing a bug report, but wanted to ask some more experienced users about
this before doing that.

Thanks for your help,
JP




-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Apache and Tomcat 4.0.6

2006-05-19 Thread Tribley William-cwt010
Hi Ricardo,
You are right. I was thinking that if you are used to the Apache 1.3 world and 
have to read the new material on 2.2, Tomcat 5.5 and the way they connect, then 
install and test it, an hour will go by.  

Frankly I was amazed at how easy it was. I am a big Apache 2.2/Tomcat 5.5 fan. 
In my opinion, this is the first combo that you can install really easily and 
administer without being a semi-expert.
Bill

-Original Message-
From: Ricardo Stella [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 19, 2006 11:27 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Apache and Tomcat 4.0.6



Tribley William-cwt010 wrote:
  It only took about an hour to connect Apache 2.2 to Tomcat 5.5 .
 Tomcat 5.5 also supports separate files to configure each webapp 
 instead of glomming it all in server.xml, a huge win for the 
 configuration management and risk management camps.
 Bill

 --
 --
 **

One hour ???  How about 5 minutes.  If you compile and enable mod_proxy and 
mod_proxy_ajp, you then simply add a one line to your config like below, and 
you have apache talking to tomcat !!!

ProxyPass /servlets-examples ajp://127.0.0.1:8009/servlets-examples

My .02...

-- 

°(((=((===°°°(((===


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] url reformat - howto

2006-05-19 Thread Krist van Besien

On 5/19/06, Oliver A. Rojo [EMAIL PROTECTED] wrote:


ok this is my whole config...

VirtualHost 69.16.199.98
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/html
ServerName mydomain.com.com
ServerAlias www
ProxyRequests off
ProxyPass /mydir http://www.domain.com:8080/mydir/
ErrorLog logs/mydomain.com-error_log
CustomLog logs/mydomain.com-access_log combined
/VirtualHost


You ought to use
ProxyPass /mydir/ http://www.domain.com:8080/mydir/

(Mind the slashes).

Make sure that
http://www.domain.com:8080/mydir/whatever
works, before you use
http://mydomain.com/mydir/whatever

Furthermore you might have made an error in configuring your virtual host.




Still not workin'. By the way, what will be the content of my
index.html? thanks again!


The content of index.html will be whatever you put in in.

Krist

--
[EMAIL PROTECTED]
Solothurn, Switzerland

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] piped log on Windows 2003 doesn't work

2006-05-19 Thread DEBIN GAO

Hi,

I'm trying to use the piped log on Windows 2003 (apache httpd 2.2), but it 
doesn't work.  I tried it out on linux and it works great.  My log.exe 
program is called 5 times when server starts, and were not killed after 
server stops.  And my log.exe program doesn't seem to capture the logs.  My 
log.exe is as simple as this:


while (cin) {
cin.getline(buf, MAX_BUF_SIZE);
if (!cin) {
break;
} else {
fprintf(file, %s\n, buf);
fflush(file);
}
  }

Can anyone help?  Thanks.



-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] mod_cache

2006-05-19 Thread Bill Moseley

Is there a better list to use for questions about core modules?



I'm using mod_cache on Apache 2.0.55 (Debian Sid) with the following
config:


ProxyViaOn
CacheRoot   /var/cache/apache2/proxy
CacheSize   1000
CacheMaxExpire  300
CacheIgnoreHeaders  Set-Cookie
ProxyReceiveBufferSize 16384

CacheEnable disk /
proxy *
allow from all
/proxy

And I'm using a reverse proxy to connect to the back end machine.
The back end machine provides Last-Modified, Expires, and
Cache-Control headers.


When I first start up Apache files are cached.  But, once they expire
then they are no longer cached and *always* fetch from the back end
server.  It's as if the front end mod_cache server is not updating
it's Expires date.

Maybe I don't understand CacheMaxExpire setting??


For example here's two requests that were handled by the cache (note
the Age: header.  The back end server was not accessed for these
requests.


[EMAIL PROTECTED]:~/WS2$ HEAD  http://bumby:82/css/style.css
200 OK
Cache-Control: max-age=300
Connection: close
Date: Fri, 19 May 2006 20:35:57 GMT
Via: 1.1 localhost:82
Age: 223
Server: Apache/2.0.55 (Debian) mod_ssl/2.0.55 OpenSSL/0.9.8a
Content-Length: 2264
Content-Type: text/css
Expires: Fri, 19 May 2006 20:37:14 GMT
Last-Modified: Sun, 29 Jan 2006 14:59:44 GMT
Client-Date: Fri, 19 May 2006 20:35:57 GMT
Client-Peer: 192.168.1.2:82
Client-Response-Num: 1

[EMAIL PROTECTED]:~/WS2$ date -u
Fri May 19 20:36:19 UTC 2006

[EMAIL PROTECTED]:~/WS2$ HEAD  http://bumby:82/css/style.css
200 OK
Cache-Control: max-age=300
Connection: close
Date: Fri, 19 May 2006 20:36:21 GMT
Via: 1.1 localhost:82
Age: 247
Server: Apache/2.0.55 (Debian) mod_ssl/2.0.55 OpenSSL/0.9.8a
Content-Length: 2264
Content-Type: text/css
Expires: Fri, 19 May 2006 20:37:14 GMT
Last-Modified: Sun, 29 Jan 2006 14:59:44 GMT
Client-Date: Fri, 19 May 2006 20:36:21 GMT
Client-Peer: 192.168.1.2:82
Client-Response-Num: 1

Now, once it got to 300 seconds the front-end server (running
mod_cache) *always* fetches the document from the back-end server:

[EMAIL PROTECTED]:~/WS2$ HEAD  http://bumby:82/css/style.css
200 OK
Cache-Control: max-age=300
Connection: close
Date: Fri, 19 May 2006 20:37:41 GMT
Via: 1.1 localhost:82
Server: Apache/2.0.55 (Debian) mod_perl/2.0.2 Perl/v5.8.8
Content-Length: 2264
Content-Type: text/css
Expires: Fri, 19 May 2006 20:42:41 GMT
Last-Modified: Sun, 29 Jan 2006 14:59:44 GMT
Client-Date: Fri, 19 May 2006 20:37:42 GMT
Client-Peer: 192.168.1.2:82
Client-Response-Num: 1

[EMAIL PROTECTED]:~/WS2$ HEAD  http://bumby:82/css/style.css
200 OK
Cache-Control: max-age=300
Connection: close
Date: Fri, 19 May 2006 20:37:47 GMT
Via: 1.1 localhost:82
Server: Apache/2.0.55 (Debian) mod_perl/2.0.2 Perl/v5.8.8
Content-Length: 2264
Content-Type: text/css
Expires: Fri, 19 May 2006 20:42:47 GMT
Last-Modified: Sun, 29 Jan 2006 14:59:44 GMT
Client-Date: Fri, 19 May 2006 20:37:47 GMT
Client-Peer: 192.168.1.2:82
Client-Response-Num: 1


Note that the back-end server returns both Cache-Control and Expires
headers without regard to http/1.0 vs http/1.1.  Not sure if that
might be a problem or not.






-- 
Bill Moseley
[EMAIL PROTECTED]


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] piped log on Windows 2003 doesn't work

2006-05-19 Thread William A. Rowe, Jr.

Have you enabled some exception handling that would bypass exceptions
on cin?  cin should be closed on the write end of the pipe, before or
as the parent process exits.  The only way this would fail is if somehow
the write end of the pipe is inhereted by the child process.

Launching your program 5x isn't a bug, depending on your config.  Both
the parent process and child process will launch during startup.  That
behavior is unique to windows because child isn't forked.

Bill

DEBIN GAO wrote:

Hi,

I'm trying to use the piped log on Windows 2003 (apache httpd 2.2), but 
it doesn't work.  I tried it out on linux and it works great.  My 
log.exe program is called 5 times when server starts, and were not 
killed after server stops.  And my log.exe program doesn't seem to 
capture the logs.  My log.exe is as simple as this:


while (cin) {
cin.getline(buf, MAX_BUF_SIZE);
if (!cin) {
break;
} else {
fprintf(file, %s\n, buf);
fflush(file);
}
  }

Can anyone help?  Thanks.



-
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: [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 URL: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] [error] (9)Bad file descriptor: apr_socket_accept: (c lient socket)

2006-05-19 Thread jh
I've spent hours googling and asked about this error message on a PHP list and 
was directed here. 

Every time I gracefully restart Apache 2.2.2, the error log reports:

[Thu May 18 19:59:29 2006] [notice] Graceful restart requested, doing restart
[Thu May 18 19:59:29 2006] [error] (9)Bad file descriptor: apr_socket_accept: 
(client socket)
[Thu May 18 19:59:30 2006] [notice] Apache configured -- resuming normal 
operations
[Thu May 18 19:59:30 2006] [warn] long lost child came home! (pid 2881)

On rare occasion, Apache 2.2.2 is crashing with:
[Fri May 19 17:29:05 2006] [notice] child pid 11243 exit signal Segmentation 
fault (11)
(Long list, all the child pids different of course.)

I've searched the bug list and found nothing for apr_socket_accept. From 
googling, I've found messages about errors with apr_socket_accept in very old 
versions of Apache, but none seemed helpful.

Since I see client socket, it certainly sounds like it's an interaction with 
something else that's causing the problem, but I don't know how to determine 
what that something else is. I could include my strace, but it's long and I'm 
not a progammer so I can't really get anywhere with it.

I get the same error even if I take out the only external module I use 
(PHP5.1.4). I've tried using a totally stripped-down version of httpd.conf as 
well, with the same results. I've tried building Apache without some of the 
standard modules, with the same results. (The list of modules is below.)

It seems possibly related to my operating/build environment:
gcc version 3.3.5 (Debian 1:3.3.5-13)
ReiserFS on (software) RAID-1
Linux version 2.6.8-11-amd64-generic
Debian Stable

dmesg reports no file system errors. I did reboot the system once, and ReiserFS 
reported no problems. The only thing left that I can think of is to bring down 
the server and run reiserfsck. It's a production server, so I very much dislike 
doing it unless someone believes that this error points towards the file system.

Any suggestions appreciated.

Thank you,

Jeff Hill


# apachectl -l
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_cache.c
  mod_mem_cache.c
  mod_include.c
  mod_filter.c
  mod_deflate.c
  mod_log_config.c
  mod_env.c
  mod_usertrack.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_info.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_speling.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c



-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] piped log on Windows 2003 doesn't work

2006-05-19 Thread Debin Gao
Thanks for the reply.

The same log.exe works well in accepting inputs in, e.g., dir | log, so I
don't see why it would fail when launched by httpd.

As far as I know, httpd on windows is multi-threaded, meaning there is only
one child that creates all the threads to handle requests.  (There should be
another parent child, which doesn't create threads.)  So are you saying that
each thread launched its own log.exe process?  Doesn't sound right to me...

Please correct me if I'm wrong.  Thanks.

Debin

-Original Message-
From: William A. Rowe, Jr. [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 19, 2006 5:24 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] piped log on Windows 2003 doesn't work

Have you enabled some exception handling that would bypass exceptions
on cin?  cin should be closed on the write end of the pipe, before or
as the parent process exits.  The only way this would fail is if somehow
the write end of the pipe is inhereted by the child process.

Launching your program 5x isn't a bug, depending on your config.  Both
the parent process and child process will launch during startup.  That
behavior is unique to windows because child isn't forked.

Bill

DEBIN GAO wrote:
 Hi,
 
 I'm trying to use the piped log on Windows 2003 (apache httpd 2.2), but 
 it doesn't work.  I tried it out on linux and it works great.  My 
 log.exe program is called 5 times when server starts, and were not 
 killed after server stops.  And my log.exe program doesn't seem to 
 capture the logs.  My log.exe is as simple as this:
 
 while (cin) {
 cin.getline(buf, MAX_BUF_SIZE);
 if (!cin) {
 break;
 } else {
 fprintf(file, %s\n, buf);
 fflush(file);
 }
   }
 
 Can anyone help?  Thanks.
 
 
 
 -
 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: [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 URL: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 URL: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] mod_cache

2006-05-19 Thread Joshua Slive

On 5/19/06, Bill Moseley [EMAIL PROTECTED] wrote:


Is there a better list to use for questions about core modules?


Nope.  This is the one.



When I first start up Apache files are cached.  But, once they expire
then they are no longer cached and *always* fetch from the back end
server.  It's as if the front end mod_cache server is not updating
it's Expires date.


I can't directly help you, but you should note two things:
1. mod_disk_cache is vastly improved in 2.2 over 2.0.  You should
really upgrade, since it is likely you are hitting a bug in 2.0 that
is fixed in 2.2.

2. Try setting LogLevel to debug to get more information about
mod_cache actions.

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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Re: Is Apache mod_aspdotnet alive?

2006-05-19 Thread Oluwatope Akinniyi

Thanks Vic Feria and William Rowe.

Vic Feria wrote:


I think they have a windows version
 

Can you please point me to the windows version. I know of XSP on Windows 
and not mod_mono on Windows.


And William Rowe wrote:


Tope Akinniyi wrote:


and does not run on Windows platform.



Huh?  Since when?


I hope you are not confusing XSP with mod_mono. MONO XSP exists for 
Windows, that I know. I will appreciate you giving me the link or the 
binary of mod_mono for Windows.


Regards.

Tope.
Send instant messages to your online friends http://uk.messenger.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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Re: Is Apache mod_aspdotnet alive?

2006-05-19 Thread WDaquell
The link to mod_mono for Windows is 
http://dev.anmar.eu.org/mono/mod_mono/ . Currently, though , it only 
appears to work with the Apache 2.0.x distribution.


-Wraith

Oluwatope Akinniyi wrote:

Thanks Vic Feria and William Rowe.

Vic Feria wrote:


I think they have a windows version
 

Can you please point me to the windows version. I know of XSP on 
Windows and not mod_mono on Windows.


And William Rowe wrote:


Tope Akinniyi wrote:


and does not run on Windows platform.



Huh?  Since when?


I hope you are not confusing XSP with mod_mono. MONO XSP exists for 
Windows, that I know. I will appreciate you giving me the link or the 
binary of mod_mono for Windows.


Regards.

Tope. 



-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] AddType application/x-httpd-php behaves wrong in Mozilla/Ubuntu

2006-05-19 Thread nthwaver

After upgrading to the latest Apache and PHP on a server running
FreeBSD 6.0-release, I find that the AddType application/x-httpd-php
.php line in httpd.conf is working everywhere except for *one*
virtual host, accessed by *a single* browser.  In other words, every
v-host works as it always did from every browser on every computer in
the house (including Firefox on Ubuntu and Mozilla in XP), except that
when I open Mozilla 1.7.13 under Ubuntu 5.10 and try to access
http://www.hirstory.com:2170/ (one of many v-hosts on the server
machine) it tells me:

the file  is of type application/x-httpd-php and Mozilla does not
know how to handle this file ...

The strange thing is, typing http://www.hirstory.com:2170/index.php
works fine.  Whatever causes this particular browser's request to
confuse Apache, it happens while the index is being located.  This
doesn't happen with other virtual hosts under the same server that
also have index.php and have no problems, nor does it happen when you
change the browser or the OS.  Any thoughts on why this could be?

Many thanks,
Jordan

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] apxs vs. configure to add modules

2006-05-19 Thread ohaya
Hi,

This was with an older version of Apache (2.0.52), but I just did this this 
week to compile the mod_proxy modules on Solaris:

cd source/modules/proxy
apxs -i -a -c *.c

Jim



 JP [EMAIL PROTECTED] wrote: 
  
  Ok, how about
  
  cd $source_dir/modules/proxy
  $apache-home/bin/apxs -i -a -c *proxy*.c
  
 
 
 That compiles, but produces the symbol resolution error at runtime.   I was
 wondering if I am missing something obvious.  The docs say to use apxs to
 compile modules outside of the source tree, so I was wondering if one is
 only supposed to use configure to compile modules that are delivered (inside
 the source tree).  Or, maybe there's an issue with apxs.  I was thinking on
 filing a bug report, but wanted to ask some more experienced users about
 this before doing that.
 
 Thanks for your help,
 JP
 
 
 
 
 -
 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: [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 URL: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] Re: AddType application/x-httpd-php behaves wrong in Mozilla/Ubuntu [solved]

2006-05-19 Thread nthwaver

Oops, sorry!  The problem was solved when I cleared Mozilla's cache,
since I had been troubleshooting earlier ... too late to prevent
wasting your time, I'm afraid.  Thanks anyway!

Jordan

On 5/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

After upgrading to the latest Apache and PHP on a server running
FreeBSD 6.0-release, I find that the AddType application/x-httpd-php
.php line in httpd.conf is working everywhere except for *one*
virtual host, accessed by *a single* browser.  In other words, every
v-host works as it always did from every browser on every computer in
the house (including Firefox on Ubuntu and Mozilla in XP), except that
when I open Mozilla 1.7.13 under Ubuntu 5.10 and try to access
http://www.hirstory.com:2170/ (one of many v-hosts on the server
machine) it tells me:

the file  is of type application/x-httpd-php and Mozilla does not
know how to handle this file ...

The strange thing is, typing http://www.hirstory.com:2170/index.php
works fine.  Whatever causes this particular browser's request to
confuse Apache, it happens while the index is being located.  This
doesn't happen with other virtual hosts under the same server that
also have index.php and have no problems, nor does it happen when you
change the browser or the OS.  Any thoughts on why this could be?


-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Configuration given in online manual for php not working

2006-05-19 Thread chris

Hi,

I am trying to use apache httpd 2.2 and php 5.1.4.4 on windows xp.
the php was manually installed in c:/php

when I add the following to httpd.conf (as given in  online manual:
http://us3.php.net/manual/en/install.windows.apache2.php):

#
# For PHP 5 do something like this:
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir c:/php


the apache server service does not start (if I try using the apache
monitor stop/staRT it says ther requested opeartion has failed).
THere is no error message in the log to indicate why.
Removing the above allows the service to start.

the file for the loadmodule and ini have correct paths as shown above.

any ideas?

thanks,

chris

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] url reformat - howto

2006-05-19 Thread Brian Rectanus

Argh, this was supposed to go to the list, too...


From: Brian Rectanus [EMAIL PROTECTED]
Date: May 19, 2006 9:14 AM
Subject: Re: [EMAIL PROTECTED] url reformat - howto
To: [EMAIL PROTECTED]


Well, that is wrong, too:

 ProxyPass /mydir http://www.domain.com:8080/mydir/

should be:

 ProxyPass /mydir/ http://www.domain.com:8080/mydir/


The paths should match up as one is replaced by the other.  Otherwise
requests will be routed as:

 http://www.domain.com:8080/mydir//foo/bar.html

Now, when you go to:

 http://mydomain.com.com/mydir/foo/bar.html

it will get reverse proxied to:

 http://www.domain.com:8080/mydir/foo/bar.html

provided that it is actually getting to that virtual host in the first place :)

When you say it does not work, what do you mean?  Are you getting an
error?  What error?  Have you checked logs/mydomain.com-access_log to
see if it was served by that virtual host?  Have you checked access
logs on www.domain.com:8080 to see if it got there?  Have you checked
your error logs?

What are the HTTP headers coming back to the browser?  Perhaps there
is another redirect in there and then you will need an additional line
after the ProxyPass line:

 ProxyPassReverse /mydir/ http://www.domain.com:8080/mydir/

Are you trying to reverse proxy to the same machine?  If so, why?  Why
don't you just listen to port 80 for your java pages?

-B

On 5/19/06, Oliver A. Rojo [EMAIL PROTECTED] wrote:

Brian Rectanus wrote:

 What you had will strip the mydir off at the backend.

 ProxyRequests off
 ProxyPass /mydir/ http://www.mydomain.com:8080/mydir/

 -B

 On 5/18/06, Oliver A. Rojo [EMAIL PROTECTED] wrote:

 Krist van Besien wrote:

  On 5/18/06, Oliver A. Rojo [EMAIL PROTECTED] wrote:
 
  Hi all!
 
  Im running Java pages on my server. Basically, all pages will have a
  direct url like http://mydomain.com:8080/mydir
 
  What I did is for user not to type a long url by simply typing the
  normal domain such as http://www.mydomain.com and redirecting to
  http://www.mydomain.com:8080/mydir.
 
  What appears to be my problem is how to avoid the whole
  http://www.mydomain.com:8080/mydir url appear on the browser which is
  when I type in the absolute domain,
 http://www.mydomain.com:8080/mydir
  url will just map into http://www.mydomain.com which will eventually
  appear on the client's browser.
 
 
  This is what happens when you do a redirect:
 
  - Browser requests  http://www.mydomain.com
  - Server answers with I don't have this, but try
  http://www.mydomain.com:8080/mydir in stead.
  - Browser requests http://www.mydomain.com:8080/mydir
 
  And for this reason the new URL apears on the adress line of the
  browser. This is by design.
 
  If you want to hide the fact that resources are not where they apear
  to be you need to use reverse proxying, not redirection.
 
  Krist
 
 Ok what I did is:



 ProxyRequests off
 ProxyPass /mydir http://www.mydomain.com:8080

 But it didn't worked at all

 --


 Oliver A. Rojo




 __

 This email and any files transmitted with it are confidential
 and intended solely for the use of the individual or entity to
 whom they are addressed. If you have received this email in error
 please notify the system manager. Please note that any views or
 opinions presented in this email are solely those of the author
 and do not necessarily represent those of the company. Finally,
 the recipient should check this email and any attachments for the
  presence of viruses. The company accepts no liability for any
 damage caused by any virus transmitted by this email.


 -
 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: [EMAIL PROTECTED]
   from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




ok this is my whole config...

VirtualHost 69.16.199.98
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/html
ServerName mydomain.com.com
ServerAlias www
ProxyRequests off
ProxyPass /mydir http://www.domain.com:8080/mydir/
ErrorLog logs/mydomain.com-error_log
CustomLog logs/mydomain.com-access_log combined
/VirtualHost

Still not workin'. By the way, what will be the content of my
index.html? thanks again!

--


Oliver A. Rojo




__

This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email in error
please notify the system manager. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for the
 presence of viruses. The company 

Re: [EMAIL PROTECTED] [error] (9)Bad file descriptor: apr_socke t_accept: (client socket)

2006-05-19 Thread jh
Could you tell me a little more about your setup? Kernel, CPU (32-bit or 
64-bit), filesystem (ReiserFS or ?), compiler version, etc.? Are you running 
2.2.2? I'd really appreciate knowing.

I'm digging into this, one way or another. If it were just an occassional error 
message, I might ignore it, but I usually get bitten at some point when I 
ignore repeated error messages. The other point, as I noted, is that on rare 
occassion the server crashes (once a month, maybe).

I've been using Apache since 1996, about v.1.1. I haven't had a production 
version of Apache crash that often since about version 1.2. 

I've discovered numerous Apache bugs over the years, almost always reported by 
the time I found them, but this is unreported. It leads me to believe something 
more onerous is going on that is not Apache specific.

Call me paranoid, but this is a production environment. I like my job; I've 
never been fired. I'd like to keep it that way.

Again, I'd really appreciate any extra info on your system. When I find the 
answer, I promise I'll let you know, even if I have to pay programmers out of 
my own pocket to do it.

Thanks again,

Jeff



On Fri, 19 May 2006 23:31:13 -0400, Brian Rectanus [EMAIL PROTECTED] wrote:
 I noticed this the other day.  It happens whenever you stop the
 service as well.  I have not dug any deeper into it, though.
 
 I am on RedHat AS3 and Apache 2.2.2.
 
 -B
 
 On 5/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I've spent hours googling and asked about this error message on a PHP
 list and was directed here.

 Every time I gracefully restart Apache 2.2.2, the error log reports:

 [Thu May 18 19:59:29 2006] [notice] Graceful restart requested, doing
 restart
 [Thu May 18 19:59:29 2006] [error] (9)Bad file descriptor:
 apr_socket_accept: (client socket)
 [Thu May 18 19:59:30 2006] [notice] Apache configured -- resuming normal
 operations
 [Thu May 18 19:59:30 2006] [warn] long lost child came home! (pid 2881)

 On rare occasion, Apache 2.2.2 is crashing with:
 [Fri May 19 17:29:05 2006] [notice] child pid 11243 exit signal
 Segmentation fault (11)
 (Long list, all the child pids different of course.)

 I've searched the bug list and found nothing for apr_socket_accept. From
 googling, I've found messages about errors with apr_socket_accept in very
 old versions of Apache, but none seemed helpful.

 Since I see client socket, it certainly sounds like it's an
 interaction with something else that's causing the problem, but I don't
 know how to determine what that something else is. I could include my
 strace, but it's long and I'm not a progammer so I can't really get
 anywhere with it.

 I get the same error even if I take out the only external module I use
 (PHP5.1.4). I've tried using a totally stripped-down version of httpd.conf
 as well, with the same results. I've tried building Apache without some of
 the standard modules, with the same results. (The list of modules is
 below.)

 It seems possibly related to my operating/build environment:
 gcc version 3.3.5 (Debian 1:3.3.5-13)
 ReiserFS on (software) RAID-1
 Linux version 2.6.8-11-amd64-generic
 Debian Stable

 dmesg reports no file system errors. I did reboot the system once, and
 ReiserFS reported no problems. The only thing left that I can think of is
 to bring down the server and run reiserfsck. It's a production server, so
 I very much dislike doing it unless someone believes that this error
 points towards the file system.

 Any suggestions appreciated.

 Thank you,

 Jeff Hill


 # apachectl -l
   core.c
   mod_authn_file.c
   mod_authn_default.c
   mod_authz_host.c
   mod_authz_groupfile.c
   mod_authz_user.c
   mod_authz_default.c
   mod_auth_basic.c
   mod_cache.c
   mod_mem_cache.c
   mod_include.c
   mod_filter.c
   mod_deflate.c
   mod_log_config.c
   mod_env.c
   mod_usertrack.c
   mod_setenvif.c
   mod_ssl.c
   prefork.c
   http_core.c
   mod_mime.c
   mod_status.c
   mod_autoindex.c
   mod_asis.c
   mod_info.c
   mod_cgi.c
   mod_negotiation.c
   mod_dir.c
   mod_actions.c
   mod_speling.c
   mod_userdir.c
   mod_alias.c
   mod_rewrite.c
   mod_so.c



 -
 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: [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 URL: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