Re: [Zope] apache rewrite quit working

2007-05-09 Thread Thomas Bennett
I've just now been able to get back to this.  netstat was 
listening on appropriate ports. Two things appear to be the
 issue here.  The  user for apache was the default user 
apache  and this user does not exist on my server, I changed 
it to the username I made for apache to run under.  Then there 
was a firewall issue.

error log for virtual host had this:

[Wed May 09 13:23:29 2007] [error] (13)Permission denied: proxy: HTTP: attempt 
to connect to 127.0.0.1:8086 (*) failed
[Wed May 09 13:25:55 2007] [error] (13)Permission denied: proxy: HTTP: attempt 
to connect to 127.0.0.1:8086 (*) failed
[Wed May 09 13:26:02 2007] [error] (13)Permission denied: proxy: HTTP: attempt 
to connect to 127.0.0.1:8086 (*) failed

until allowed port 8086 on firewall and then this:

[Wed May 09 13:32:50 2007] [error] [client 86.120.184.161] Directory index 
forbidden by Options directive: /var/www/html/
[Wed May 09 13:32:50 2007] [error] [client 86.120.184.161] Directory index 
forbidden by Options directive: /var/www/html/
[Wed May 09 13:33:04 2007] [error] [client 152.10.156.23] File does not exist: 
/var/www/html/vdb, referer: http://www.library.appstate
.edu/

which is Apache serving from its own document root.  I commented 
out the DocumentRoot setting in httpd.conf and it started working.  I 
don't  remember ever having to comment that part out.  As a matter 
of fact I have an older linux, apache, and zope with apache rewriting 
to zope and serving from the file system through redirects.

Any thing I have obviously missed here?

Thanks for the replies,

Thomas




On Thursday 26 April 2007 03:18, John Snowdon wrote:
 What did `netstat -an` say about your listening ports?

  John Snowdon - IT Support Specialist
 -==-
  School of Medical Education Development
  Faculty of Medical Sciences Computing
  University of Newcastle

  Email : [EMAIL PROTECTED]

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Thomas Bennett
 Sent: 25 April 2007 22:44
 To: zope@zope.org
 Subject: Re: [Zope] apache rewrite quit working
 
 
 Don't think that is it because it works fine if I change Zope
 to port 80.
 And, I was accessing apache on port 80 using the ip number,
 localhost, the
 machine's real name, and the URL domain  it just wouldn't
 rewrite to 8086.
 nslookup showed name was still set to my ip number.
 Thomas
 
 On Wednesday 25 April 2007 15:50, Jonathan wrote:
  - Original Message -
  From: Thomas Bennett [EMAIL PROTECTED]
  To: zope@zope.org
  Sent: Wednesday, April 25, 2007 4:15 PM
  Subject: Re: [Zope] apache rewrite quit working
 
   web-dav server  is listening on 9800
   http server is now listening on 80
   http was listening on 8086 until rewrite quit working,
 
 explained below.
 
   Thanks anyway,
 
  Any chance your nameserver settings got changed?
 
  Jonathan
 
 --
 
 Thomas McMillan Grant BennettAppalachian State University
 Computer Consultant III  P O Box 32026
 University Library   Boone, North
 Carolina 28608
 (828) 262 6587
 
 If it's not as simple as possible to try it, then the barrier
 to entry is too
 high.
 
 Library Systems Help Desk: http://www.library.appstate.edu/help/
 
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] apache rewrite quit working

2007-05-09 Thread Thomas Bennett
Forget the previous reply about it working.  I found I was accessing the web 
server with the 8086 port number on the end of the URL which did work.

Thomas

On Thursday 26 April 2007 03:18, John Snowdon wrote:
 What did `netstat -an` say about your listening ports?

  John Snowdon - IT Support Specialist
 -==-
  School of Medical Education Development
  Faculty of Medical Sciences Computing
  University of Newcastle

  Email : [EMAIL PROTECTED]

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Thomas Bennett
 Sent: 25 April 2007 22:44
 To: zope@zope.org
 Subject: Re: [Zope] apache rewrite quit working
 
 
 Don't think that is it because it works fine if I change Zope
 to port 80.
 And, I was accessing apache on port 80 using the ip number,
 localhost, the
 machine's real name, and the URL domain  it just wouldn't
 rewrite to 8086.
 nslookup showed name was still set to my ip number.
 Thomas
 
 On Wednesday 25 April 2007 15:50, Jonathan wrote:
  - Original Message -
  From: Thomas Bennett [EMAIL PROTECTED]
  To: zope@zope.org
  Sent: Wednesday, April 25, 2007 4:15 PM
  Subject: Re: [Zope] apache rewrite quit working
 
   web-dav server  is listening on 9800
   http server is now listening on 80
   http was listening on 8086 until rewrite quit working,
 
 explained below.
 
   Thanks anyway,
 
  Any chance your nameserver settings got changed?
 
  Jonathan
 
 --
 
 Thomas McMillan Grant BennettAppalachian State University
 Computer Consultant III  P O Box 32026
 University Library   Boone, North
 Carolina 28608
 (828) 262 6587
 
 If it's not as simple as possible to try it, then the barrier
 to entry is too
 high.
 
 Library Systems Help Desk: http://www.library.appstate.edu/help/
 
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] apache rewrite quit working

2007-04-26 Thread John Snowdon
What did `netstat -an` say about your listening ports? 

 John Snowdon - IT Support Specialist
-==-
 School of Medical Education Development 
 Faculty of Medical Sciences Computing
 University of Newcastle

 Email : [EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
Behalf Of Thomas Bennett
Sent: 25 April 2007 22:44
To: zope@zope.org
Subject: Re: [Zope] apache rewrite quit working


Don't think that is it because it works fine if I change Zope 
to port 80.  
And, I was accessing apache on port 80 using the ip number, 
localhost, the 
machine's real name, and the URL domain  it just wouldn't 
rewrite to 8086.
nslookup showed name was still set to my ip number.
Thomas


On Wednesday 25 April 2007 15:50, Jonathan wrote:
 - Original Message -
 From: Thomas Bennett [EMAIL PROTECTED]
 To: zope@zope.org
 Sent: Wednesday, April 25, 2007 4:15 PM
 Subject: Re: [Zope] apache rewrite quit working

  web-dav server  is listening on 9800
  http server is now listening on 80
  http was listening on 8086 until rewrite quit working, 
explained below.
 
  Thanks anyway,

 Any chance your nameserver settings got changed?

 Jonathan

-- 

Thomas McMillan Grant Bennett  Appalachian State University
Computer Consultant IIIP O Box 32026
University Library Boone, North 
Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier 
to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
Zope Version(Zope 2.9.7-final, python 2.4.4, linux2) 
Python Version  2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red Hat 
4.1.1-30)] 
System Platform linux2 
SOFTWARE_HOME   /var/zope/lib/python 
ZOPE_HOME   /var/zope 
INSTANCE_HOME   /var/zope 
CLIENT_HOME /var/zope/var 
Network ServicesZServer.HTTPServer.zhttp_server (Port: 80)
ZServer.HTTPServer.zwebdav_server (Port: 9800)

(Red Hat 4.1.1-30) is actually Fedora Core 6

Campus maintenance tested the backup generator this morning.  
When the power was cut off the circuit breaker tripped on the battery
 backup that kicks in momentarily until the generator takes over so 
all hardware rebooted.  After starting zeostorage and zope I found 
the apache rewrite rule that has been working since at least April 3,
 2007 has quit working.  Zeo, Zope, and apache have been restarted 
quite a few times since April 3 and worked fine.  This is the first time 
the server has totally rebooted since that date.  

NameVirtualHost 152.10.10.8:80

VirtualHost 152.10.10.8:80
  ServerAdmin [EMAIL PROTECTED]
  ServerName www.library.appstate.edu
  ServerSignature Off
  RewriteLog /var/log/httpd/libweb-rewrite_log
  ErrorLog /var/log/httpd/libweb-error_log
  LogLevel warn
  TransferLog /var/log/httpd/libweb-access_log
  ProxyVia on
  RewriteEngine On
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
  RewriteRule ^/(.*) 
http://localhost:8086/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostRoot/$1 
[L,P]
/VirtualHost

Since apache quit rewriting I have changed the Zope port to 80 so we 
could get back online.  The rewrites

  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]

were added in after a nessus3 scan from suggestions on the report 
but the server had been running fine after that.  The syntax is correct 
according to httpd -t.

Any suggestions on getting or testing apache rewrite, or problems seen
with my rewrite rules would be appreciated.  


Thomas
-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] apache rewrite quit working

2007-04-25 Thread Jonathan


- Original Message - 
From: Thomas Bennett [EMAIL PROTECTED]

To: zope@zope.org
Sent: Wednesday, April 25, 2007 3:24 PM
Subject: [Zope] apache rewrite quit working



Zope Version (Zope 2.9.7-final, python 2.4.4, linux2)
Python Version 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red 
Hat 4.1.1-30)]

System Platform linux2
SOFTWARE_HOME /var/zope/lib/python
ZOPE_HOME /var/zope
INSTANCE_HOME /var/zope
CLIENT_HOME /var/zope/var
Network Services ZServer.HTTPServer.zhttp_server (Port: 80)
ZServer.HTTPServer.zwebdav_server (Port: 9800)

(Red Hat 4.1.1-30) is actually Fedora Core 6

NameVirtualHost 152.10.10.8:80

VirtualHost 152.10.10.8:80
 ServerAdmin [EMAIL PROTECTED]
 ServerName www.library.appstate.edu
 ServerSignature Off
 RewriteLog /var/log/httpd/libweb-rewrite_log
 ErrorLog /var/log/httpd/libweb-error_log
 LogLevel warn
 TransferLog /var/log/httpd/libweb-access_log
 ProxyVia on
 RewriteEngine On
 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
 RewriteRule .* - [F]
 RewriteRule ^/(.*) 
http://localhost:8086/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostRoot/$1 
[L,P]

/VirtualHost

Since apache quit rewriting I have changed the Zope port to 80 so we
could get back online.  The rewrites

 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
 RewriteRule .* - [F]

Any suggestions on getting or testing apache rewrite, or problems seen
with my rewrite rules would be appreciated.


Your rewrite rule points to port 8086 but according to your information 
ZServer is listening on port 9800?



Jonathan

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
web-dav server  is listening on 9800
http server is now listening on 80
http was listening on 8086 until rewrite quit working, explained below. 

Thanks anyway,

Thomas

PS: for what its worth, I found out in the mean time that NetDrive can cause 
Zope process to use over 95% of the cpu when the login in NetDrive is set and 
the password has changed on the Zope server and not on NetDrive.  It 
continuously tries to connect.  (NetDrive is a Novell program that allows you 
to map a webdav site as a drive on an MS Windows PC.)

On Wednesday 25 April 2007 14:46, Jonathan wrote:
 - Original Message -
 From: Thomas Bennett [EMAIL PROTECTED]
 To: zope@zope.org
 Sent: Wednesday, April 25, 2007 3:24 PM
 Subject: [Zope] apache rewrite quit working

  Zope Version (Zope 2.9.7-final, python 2.4.4, linux2)
  Python Version 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red
  Hat 4.1.1-30)]
  System Platform linux2
  SOFTWARE_HOME /var/zope/lib/python
  ZOPE_HOME /var/zope
  INSTANCE_HOME /var/zope
  CLIENT_HOME /var/zope/var
  Network Services ZServer.HTTPServer.zhttp_server (Port: 80)
  ZServer.HTTPServer.zwebdav_server (Port: 9800)
 
  (Red Hat 4.1.1-30) is actually Fedora Core 6
 
  NameVirtualHost 152.10.10.8:80
 
  VirtualHost 152.10.10.8:80
   ServerAdmin [EMAIL PROTECTED]
   ServerName www.library.appstate.edu
   ServerSignature Off
   RewriteLog /var/log/httpd/libweb-rewrite_log
   ErrorLog /var/log/httpd/libweb-error_log
   LogLevel warn
   TransferLog /var/log/httpd/libweb-access_log
   ProxyVia on
   RewriteEngine On
   RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
   RewriteRule .* - [F]
   RewriteRule ^/(.*)
  http://localhost:8086/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostR
 oot/$1 [L,P]
  /VirtualHost
 
  Since apache quit rewriting I have changed the Zope port to 80 so we
  could get back online.  The rewrites
 
   RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
   RewriteRule .* - [F]
 
  Any suggestions on getting or testing apache rewrite, or problems seen
  with my rewrite rules would be appreciated.

 Your rewrite rule points to port 8086 but according to your information
 ZServer is listening on port 9800?


 Jonathan

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
Don't think that is it because it works fine if I change Zope to port 80.  
And, I was accessing apache on port 80 using the ip number, localhost, the 
machine's real name, and the URL domain  it just wouldn't rewrite to 8086.
nslookup showed name was still set to my ip number.
Thomas


On Wednesday 25 April 2007 15:50, Jonathan wrote:
 - Original Message -
 From: Thomas Bennett [EMAIL PROTECTED]
 To: zope@zope.org
 Sent: Wednesday, April 25, 2007 4:15 PM
 Subject: Re: [Zope] apache rewrite quit working

  web-dav server  is listening on 9800
  http server is now listening on 80
  http was listening on 8086 until rewrite quit working, explained below.
 
  Thanks anyway,

 Any chance your nameserver settings got changed?

 Jonathan

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )