Re: [EMAIL PROTECTED] Apache able to cache entire HTML page?

2007-09-04 Thread Vincent Bray
On 04/09/07, Ben Spencer <[EMAIL PROTECTED]> wrote:
> Question:
> Can apache cache everything for an undefined amount of time
> (days/months/years) without concern of the backend server's headers? With
> some playing, we got this to work by removing headers, but, this seemed
> overly complicated and not foolproof. The first non-cached request also
> responded with some of the backend server headers while cached responses
> responded with the appropriate Apache headers.

It sounds like you're on the right track. I can only really advise you
to look carefully at the headers sent by your backend, make sure
you're using apache 2.2.x, set LogLevel debug in apache (very helpful
during cache configuration), and see the CacheIgnore* directives.

http://httpd.apache.org/docs/2.2/mod/mod_cache.html
http://wiki.apache.org/httpd/WatchingHttpHeaders

-- 
noodl

-
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 2.2.4 [an error occurred while processing this directive]

2007-09-04 Thread Vincent Bray
On 04/09/07, Malcolm Walker <[EMAIL PROTECTED]> wrote:
> Your jibe is forgiven. {8;-))  But just because the technology is old
> doesn't mean it isn't any use.  I assume there are `better' and newer
> ways of achieving the same object.  Perhaps PHP is more appropriate?

Depends on what you're trying to achieve. mod_includes can be fine for
(very) simple needs, but quickly becomes limitting.

> I did `stick' the lines you kindly provided into the httpd.conf file and
> the mcjdreamweaver site is displayed in my browsers with the URL:
> http://localhost.  So thank you for that step forward.

But.. Your includes are still not working?

> By edit do you mean delete 127.0.0.1 localhost and add (say) 127.0.0.1
> mcjlocalhost?

No, don't delete the localhost entry as lots of software assumes it's
there. Instead, just add to the line so you've got:

127.0.0.1 localhost mcjlocalhost whatever-else


-- 
noodl

-
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 2.2.4 [an error occurred while processing this directive]

2007-09-04 Thread Malcolm Walker

Vincent Bray wrote:

I did `stick' the lines you kindly provided into the httpd.conf file and
the mcjdreamweaver site is displayed in my browsers with the URL:
http://localhost.  So thank you for that step forward.


But.. Your includes are still not working?
  

Sorry that I didn't make that clear to you.  Yes the includes are displayed.


No, don't delete the localhost entry as lots of software assumes it's
there. Instead, just add to the line so you've got:

127.0.0.1 localhost mcjlocalhost whatever-else
  

Noted

Thank you for your assistance.

Malcolm
PS I'm still quite good at playing FreeCell {8;-))

-
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 2.2.4 [an error occurred while processing this directive]

2007-09-04 Thread Vincent Bray
On 04/09/07, Malcolm Walker <[EMAIL PROTECTED]> wrote:
> PS I'm still quite good at playing FreeCell {8;-))

Ah ha! I discovered that recently (along with hearts), and am 98%
games won. Time for an online Freecell deathmatch? :-)

-- 
noodl

-
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 2.2.4 [an error occurred while processing this directive]

2007-09-04 Thread Malcolm Walker

Vincent Bray wrote:

On 04/09/07, Malcolm Walker <[EMAIL PROTECTED]> wrote:
  

PS I'm still quite good at playing FreeCell {8;-))



Ah ha! I discovered that recently (along with hearts), and am 98%
games won. Time for an online Freecell deathmatch? :-)
  

Naagh -Spider for Solitaire for highest points.  Toss for the difficulty level!


-
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] Unable to run the xampp

2007-09-04 Thread Morgan Gangwere
I'e had this problem too -- seems to be related to having win98... I'd
go for either updating to an NT kernel (check out 2000 or XP -- not
Vista), or a linux server. look at a LAMP (Linux Apache MySQL PHP)
such as Ubuntu 6.06 Server with a LAMP install.

On 8/22/07, raju  wrote:
>
>
>
>
>
>
> HI,
> Under win98,
> I installed xampp; Apache 2.0 when started, starts for a few mins, and later 
> stops,
> No other server is installed in my system and port 80 is idle, checked this 
> with tcpview
> Can anybody advise what to do?
>
>
>
> The following is the error log
> [Fri aug 25 21:54:20 2000][crit](22)Invalid argument unable to replace stderr 
> with error_log
> [Fri aug 25 21:54:20 2000][crit](2) No such file or directory unable to 
> replace stderr with/dev/null
> [Fri aug 25 21:54 20 2000][notice] Digest generating secret for digest 
> authentication...
> [Fri aug 25 21:54 20 2000][crit](-214617381)Unknown erroryeDigest:error
>
> Generatinmgsecret:unknowerror
> [Fri aug 25 21:54 20 2000][crit](22) Invalid argument unable to replace 
> stderr withh error_log
> [Fri aug 25 21:54 20 2000][crit](2) No such file or directory unable to 
> replace stderr with /dev/null
> [Fri aug 25 21:54 20 2000][crit](22)Invalid argument unable to replace stderr 
> with error_log
> [Fri aug 25 21:54 20 2000][crit](2) No such file or directory.unable to 
> replace stderr with /dev/null
> [Fri aug 25 21:54 20 2000][notice]Digest generating secret for digest 
> authentication...
> [Fri aug 25 21:54 20 2000][crit](-2146173818)unknow error.Digest:error 
> generating secret:unknow Error
>
> Bye
> R.e.raju
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>



-- 
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.
-BEGIN PGP SIGNATURE-
Version: Gmail/GnuPG Min32 Hack
Comment: Using GnuPG and Gmail - ask me about Grim Fandango

iD8DBQFGV3KQCF9T/dUsmAgRAvESAKDfZYbRtebNO+WPfx6DryIvIwt9TgCgukZG
cIj5nSWws/pAeW2ESlj7GuM=
=Y4uC
-END PGP SIGNATURE-

-
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] More virtualhost with the same Pubblic Ip

2007-09-04 Thread netmail
Hi

I want configure apache with this site :

http://Thidlevel.mydomain.com à DNS entry Ok from Pubblic Ip XXX.XXX.XXX.XX1

http://Test.mydomain.com à DNS Entry ok from the same Pubblic Ip XXX.XXX.XXX.XX1

http://Mywebserver/intranetsite from intranet



When I configure the virtualHost with the third level domain

VirtualHost IP:port>
DocumentRoot /var/www/mydomain/thirdlevel
ServerName IP
ErrorLog 
CustomLog 




the http://Mywebserver/intranetsite don't work and receive the message that 
don't found the page etc... Why ?



thanks







RE: [EMAIL PROTECTED] Apache able to cache entire HTML page?

2007-09-04 Thread Ben Spencer
Thanks. I will take a look at the wiki page (didn't know about it before)

benji

---
Benji Spencer
System Administrator
Ph: 312-329-2288

> -Original Message-
> From: Vincent Bray [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 04, 2007 2:38 AM
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] Apache able to cache entire HTML page?
> 
> On 04/09/07, Ben Spencer <[EMAIL PROTECTED]> wrote:
> > Question:
> > Can apache cache everything for an undefined amount of time
> > (days/months/years) without concern of the backend server's headers?
> With
> > some playing, we got this to work by removing headers, but, this seemed
> > overly complicated and not foolproof. The first non-cached request also
> > responded with some of the backend server headers while cached responses
> > responded with the appropriate Apache headers.
> 
> It sounds like you're on the right track. I can only really advise you
> to look carefully at the headers sent by your backend, make sure
> you're using apache 2.2.x, set LogLevel debug in apache (very helpful
> during cache configuration), and see the CacheIgnore* directives.
> 
> http://httpd.apache.org/docs/2.2/mod/mod_cache.html
> http://wiki.apache.org/httpd/WatchingHttpHeaders
> 
> --
> noodl
> 
> -
> 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]



smime.p7s
Description: S/MIME cryptographic signature


Re: [EMAIL PROTECTED] Unable to run the xampp

2007-09-04 Thread raju
Hi,
Thanks for your reply. But i would like to work in windows os, I want it for
php,
Can you advise any other web server(open source) which suits php and which
works on win 98?

bye
r.e.raju 

 
---Original Message---
 
From: Morgan Gangwere
Date: 09/04/07 18:03:57
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Unable to run the xampp
 
I'e had this problem too -- seems to be related to having win98... I'd
go for either updating to an NT kernel (check out 2000 or XP -- not
Vista), or a linux server. look at a LAMP (Linux Apache MySQL PHP)
such as Ubuntu 6.06 Server with a LAMP install.
 
On 8/22/07, raju  wrote:
>
>
>
>
>
>
> HI,
> Under win98,
> I installed xampp; Apache 2.0 when started, starts for a few mins, and
later stops,
> No other server is installed in my system and port 80 is idle, checked
this with tcpview
> Can anybody advise what to do?
>
>
>
> The following is the error log
> [Fri aug 25 21:54:20 2000][crit](22)Invalid argument unable to replace
stderr with error_log
> [Fri aug 25 21:54:20 2000][crit](2) No such file or directory unable to
replace stderr with/dev/null
> [Fri aug 25 21:54 20 2000][notice] Digest generating secret for digest
authentication...
> [Fri aug 25 21:54 20 2000][crit](-214617381)Unknown erroryeDigest:error
>
> Generatinmgsecret:unknowerror
> [Fri aug 25 21:54 20 2000][crit](22) Invalid argument unable to replace
stderr withh error_log
> [Fri aug 25 21:54 20 2000][crit](2) No such file or directory unable to
replace stderr with /dev/null
> [Fri aug 25 21:54 20 2000][crit](22)Invalid argument unable to replace
stderr with error_log
> [Fri aug 25 21:54 20 2000][crit](2) No such file or directory.unable to
replace stderr with /dev/null
> [Fri aug 25 21:54 20 2000][notice]Digest generating secret for digest
authentication...
> [Fri aug 25 21:54 20 2000][crit](-2146173818)unknow error.Digest:error
generating secret:unknow Error
>
> Bye
> R.e.raju
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
 
 
 
--
Morgan gangwere
 
"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.
-BEGIN PGP SIGNATURE-
Version: Gmail/GnuPG Min32 Hack
Comment: Using GnuPG and Gmail - ask me about Grim Fandango
 
iD8DBQFGV3KQCF9T/dUsmAgRAvESAKDfZYbRtebNO+WPfx6DryIvIwt9TgCgukZG
cIj5nSWws/pAeW2ESlj7GuM=
=Y4uC
-END PGP SIGNATURE-
 
-
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] Unable to run the xampp

2007-09-04 Thread Ken Robinson
On 8/22/07, raju <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
> Thanks for your reply. But i would like to work in windows os, I want it for 
> php,
> Can you advise any other web server(open source) which suits php and which 
> works on win 98?
>

XP is Windows. Xampp works fine with Windows XP. Windows 98 is almost
10 years old (maybe older) -- time to get a more modern OS if you want
to run xampp. ISTR that I was able to run a very early version of
xampp on Windows 98, but it's been so long that I really can't
remember how it functioned.

Ken

-
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] More virtualhost with the same Pubblic Ip

2007-09-04 Thread Neil A. Hillard
Hi,

netmail wrote:
> Hi
> 
> I want configure apache with this site :
> 
> http://Thidlevel.mydomain.com à DNS entry Ok from Pubblic Ip XXX.XXX.XXX.XX1
> 
> http://Test.mydomain.com à DNS Entry ok from the same Pubblic Ip
> XXX.XXX.XXX.XX1
> 
> http://Mywebserver/intranetsite from intranet
> 
>  
> 
> When I configure the virtualHost with the third level domain
> 
> VirtualHost IP:port>
> DocumentRoot /var/www/mydomain/thirdlevel
> ServerName IP
> ErrorLog 
> CustomLog 
> 
> 
>  
> 
> the http://Mywebserver/intranetsite don’t work and receive the message
> that don’t found the page etc… Why ?

You may find a lack of responses to your question.  Firstly, you will
want to post in plain text format _only_.  Secondly you should include
the exact error message and not your interpretation of it (along with
anything that appears in the error log).

My suspicion is that you have the incorrect ServerName directive.  The
clue is in the name - 'Name'.  Your config snippet has 'ServerName IP'.
 You should not specify the IP address here.

Please refer to
http://httpd.apache.org/docs/2.2/mod/core.html#servername for the
documentation for the ServerName directive.


Neil.

-- 
Neil Hillard[EMAIL PROTECTED]
AgustaWestland  http://www.whl.co.uk/

Disclaimer: This message does not necessarily reflect the
views of Westland Helicopters Ltd.

-
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] Force to Push data from a reverse proxy

2007-09-04 Thread Coulter, Ryan

> From: Matus UHLAR - fantomas <[EMAIL PROTECTED]>
> Reply-To: 
> Date: Thu, 30 Aug 2007 17:15:32 +0200
> To: 
> Subject: Re: [EMAIL PROTECTED] Force to Push data from a reverse proxy
> 
>> On 7/24/07, Jean-Baptiste Mayer <[EMAIL PROTECTED]> wrote: I have a trouble 
>> using
>>> a reverse proxy:
>>> 
>>> Server A (HTTP) <---> Reverse-Proxy (apache-2.0) <---> Client
>>> 
>>> The client is a java application that displays real time financial data
>>> that uses HTTP as transport.
>>> 
>>> Without the reverse proxy in the middle, everything is working fine.
>>> 
>>> Using the reverse proxy, we loose the real time aspect of the
>>> application because data come once in a while (every ten seconds or so)
>>> by "big chunks".
> 
> Chunked transfer encoding probably?
> 
> On 25.07.07 18:11, Jean-Baptiste Mayer wrote:
>> I solved my problem by installing and configuring squid which does not seem
>> to bufferize data.
> 
> Yes, because squid doesn't support transfer encoding yet.
> Maybe disabling of chunking by forcing http/1.0 protocol between proxy and
> client would solve the problem between apache proxy and client too.

I would suspect this is the case as well. I recently resolved a problem with
a similar java applet. I forced HTTP 1.0 between the proxy server and the
backend server and turned off keepalives and the applet works fine through
mod_proxy.


Ryan Coulter
UNIX System Administrator
HealthEast Care System




The information included in this e-mail message, including any attachments, is 
intended only for the person or organization to which it is addressed. This 
e-mail message may contain information that is privileged or confidential. If 
you receive this e-mail message and are not the intended recipient or 
responsible for delivering the message to the intended recipient, you may not 
use, disseminate, distribute or copy the information included in this e-mail 
and any attachments. If you received this e-mail message by mistake, please 
reply by e-mail and destroy all copies of this message and any attachments. 
Thank you.

-
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] Testing Python Mod

2007-09-04 Thread Chris Howell

Brian Munroe wrote:

On 8/31/07, Chris Howell <[EMAIL PROTECTED]> wrote:

  

 AddHandler python-program .py
 PythonHandler mptest
 PythonDebug On




Chris:

I would suggest you use the Publisher mod_python handler, at least to
get started.

Here is a simple hello, world in mod_python.  I assume you fixed your
other problem with mod_python from yesterday?  Let me guess, reinstall
everything? :)

In my httpd.conf file, in a global scope.

LoadModule python_module modules/mod_python.so
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On

Then inside of my DocumentRoot (default is htdocs), I have a file
called hello.py that looks like:

def world(req):
return "hello, world"

Then finally, I access it via:

http://localhost/hello.py/world

which renders "hello, world" in plain text to the browser.

-- brian

PS.  Don't cross-post to lists, you are going to get flamed by the moderators!

-
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]



Brian:
I made the modifications you suggested my httpd conf file now has 
this entry in it.


LoadModule python_module modules/mod_python.so

Foundation/Apache2.2/htdocs/Test">

  Order deny,allow
  Satisfy all
  AddHandler mod_python .py
  PythonHandler mod_python.publisher
  PythonDebug On



My test.py file looks like.

   def world(req):
  return "Hello World"   


When I try to access it like
http://localhost:9000/Test/test.py/world

I get a 404.

Any other ideas ?





Re: [EMAIL PROTECTED] apache redirect

2007-09-04 Thread Matus UHLAR - fantomas
On 04.09.07 00:44, Mandy Singh wrote:
> I would like to learn how to redirect a subdomain on my website back to the
> parent site once again.

> My main site is: www.example.com
> I created subdomain.example.com
> 
> Now I want that when user types subdomain.example.com in the url bar it
> goes to www.example.com
> 
> Want to learn 2 things -
> 1) Redirection without url bar url getting unchanged

just add subdomain.example.com to ServerAlias list, no need for redirection

> 2) Redirection with url also getting changed to www.example.com

create another virtualhost:

ServerName subdomain.example.com
Redirect / http://www.example.com/

-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Micro$oft random number generator: 0, 0, 0, 4.33e+67, 0, 0, 0...

-
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] Unable to run the xampp

2007-09-04 Thread Dragon

raju wrote:

Hi,
Thanks for your reply. But i would like to work in windows os, I 
want it for php,
Can you advise any other web server(open source) which suits php and 
which works on win 98?



 End original message. -

Why in the world would you want to continue running Windows 98?

Microsoft no longer supports it and most software vendors (and open 
source projects) stopped developing for it a long time ago.


Upgrade your OS. If you want to stick with Windows, update to at 
least Windows XP, Vista would be better if your hardware can support 
it. Both of those versions are still supported by Microsoft with 
security and bug fixes and both are supported by the majority of 
software vendors if they are doing Windows development.



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] SERVER_PORT always reported at 80 (apache 2.2)

2007-09-04 Thread Mike Heald
Hi all,

I'm running apache 2.2 on ubuntu 7.04 and I'm seeing come strange behaviour 
with the SERVER_PORT environment variable.

My server does not listen on port 80. My ports.conf contains :
Listen *:4242

and an nmap of my host shows only port 4242 listening. However, when I make a 
request to a cgi application, the SERVER_PORT env variable is set to 80. I've 
seen a few people with the same problem, but they were running 1.3 so the 
solution of having a Port directive does not work for me.

Here's the output of a session :

[EMAIL PROTECTED]:/etc/apache2$ nmap localhost

Starting Nmap 4.20 ( http://insecure.org ) at 2007-09-04 16:10 BST
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
4242/tcp   open  http

[EMAIL PROTECTED]:/etc/apache2$ telnet localhost 4242
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /cgi-bin/test.php HTTP/1.0

Content-type: text/html

SERVER_PORT is 80


content of test.php :



I've tried this with perl and python to make sure it's not a php problem.

What am I missing?

Cheers,

Mike

-
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] SERVER_PORT always reported at 80 (apache 2.2)

2007-09-04 Thread Joshua Slive
On 9/4/07, Mike Heald <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm running apache 2.2 on ubuntu 7.04 and I'm seeing come strange behaviour
> with the SERVER_PORT environment variable.
>
> My server does not listen on port 80. My ports.conf contains :
> Listen *:4242
>
> and an nmap of my host shows only port 4242 listening. However, when I make a
> request to a cgi application, the SERVER_PORT env variable is set to 80. I've
> seen a few people with the same problem, but they were running 1.3 so the
> solution of having a Port directive does not work for me.

Check your setting of UseCanonicalName and ServerName. Note that
ServerName now takes a :port argument, so it does exactly what the
Port directive did in 1.3.

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] Testing Python Mod

2007-09-04 Thread Brian Munroe
On 9/4/07, Chris Howell <[EMAIL PROTECTED]> wrote:
>

> Brian:
> I made the modifications you suggested my httpd conf file now has this
> entry in it.
>
>  LoadModule python_module modules/mod_python.so
>
>   Foundation/Apache2.2/htdocs/Test">
> Order deny,allow
> Satisfy all
> AddHandler mod_python .py
> PythonHandler mod_python.publisher
> PythonDebug On
>  
>
>  My test.py file looks like.
>
>  def world(req):
> return "Hello World"
>
>  When I try to access it like
>  http://localhost:9000/Test/test.py/world
>
>  I get a 404.
>
>  Any other ideas ?
>

At least you are getting a new kind of error!

Well, it isn't exactly like I suggested, but I tried your
configuration (you have a 'Listen 9000' in your httpd.conf, right?)
and everything worked fine for me.

I know this is a pain, but comment out the  
related to the mod_python stuff, restart apache and see if you still
get the 404 when trying to hit

http://localhost:9000/Test/test.py

You should get the raw python code rendered in your browser.

-- brian

-
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] Testing mod_python

2007-09-04 Thread Chris Howell

FYI, I fixed the 404 error I was receiving so please disregard my post.


  


-
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] SERVER_PORT always reported at 80 (apache 2.2)

2007-09-04 Thread Mike Heald

Thank you, that's what I was missing!

Cheers!

Mike

On Tuesday 04 September 2007 16:19:28 Joshua Slive wrote:
> On 9/4/07, Mike Heald <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I'm running apache 2.2 on ubuntu 7.04 and I'm seeing come strange
> > behaviour with the SERVER_PORT environment variable.
> >
> > My server does not listen on port 80. My ports.conf contains :
> > Listen *:4242
> >
> > and an nmap of my host shows only port 4242 listening. However, when I
> > make a request to a cgi application, the SERVER_PORT env variable is set
> > to 80. I've seen a few people with the same problem, but they were
> > running 1.3 so the solution of having a Port directive does not work for
> > me.
>
> Check your setting of UseCanonicalName and ServerName. Note that
> ServerName now takes a :port argument, so it does exactly what the
> Port directive did in 1.3.
>
> 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]



-
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] Testing Python Mod

2007-09-04 Thread Chris Howell

Brian Munroe wrote:

On 9/4/07, Chris Howell <[EMAIL PROTECTED]> wrote:
  

  

Brian:
I made the modifications you suggested my httpd conf file now has this
entry in it.

 LoadModule python_module modules/mod_python.so

 
Order deny,allow
Satisfy all
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
 

 My test.py file looks like.

 def world(req):
return "Hello World"

 When I try to access it like
 http://localhost:9000/Test/test.py/world

 I get a 404.

 Any other ideas ?




At least you are getting a new kind of error!

Well, it isn't exactly like I suggested, but I tried your
configuration (you have a 'Listen 9000' in your httpd.conf, right?)
and everything worked fine for me.

I know this is a pain, but comment out the  
related to the mod_python stuff, restart apache and see if you still
get the 404 when trying to hit

http://localhost:9000/Test/test.py

You should get the raw python code rendered in your browser.

-- brian

-
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]
  


Brian:

Yes I have set it up to listen on port 9000 and everything works fine. I 
fixed the 404 error. This is the error I am getting now.


MOD_PYTHON ERROR

ProcessId:  2932
Interpreter:'192.168.0.42'

ServerName: '192.168.0.42'
DocumentRoot:   'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs'

URI:'/Test/test.py'
Location:   None
Directory:  'C:/Program Files/Apache Software 
Foundation/Apache2.2/htdocs/Test/'
Filename:   'C:\\Program Files\\Apache Software 
Foundation\\Apache2.2\\htdocs\\Test\\test.py'
PathInfo:   ''

Phase:  'PythonHandler'
Handler:'mod_python.publisher'

Traceback (most recent call last):

 File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in 
HandlerDispatch
   default=default_handler, arg=req, silent=hlist.silent)

 File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in 
_process_target
   result = _execute_target(config, req, object, arg)

 File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in 
_execute_target
   result = object(arg)

 File "C:\Python25\Lib\site-packages\mod_python\publisher.py", line 204, in 
handler
   module = page_cache[req]

 File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1059, in 
__getitem__
   return import_module(req.filename)

 File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 296, in 
import_module
   log, import_path)

 File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 680, in 
import_module
   execfile(file, module.__dict__)

 File "C:\Program Files\Apache Software 
Foundation\Apache2.2\htdocs\Test\test.py", line 1

   def world(req):

  ^

IndentationError: unexpected indent


MODULE CACHE DETAILS

Accessed:   Tue Sep 04 11:28:20 2007
Generation: 1

_mp_55aa27656fb6b0a34cdceffae0e6fbab {
 FileName: 'C:\\Program Files\\Apache Software 
Foundation\\Apache2.2\\htdocs\\Test\\test.py'
 Instance: 4 [RELOAD]
 Generation:   1 [ERROR]
 Modified: Tue Sep 04 11:25:29 2007
 Imported: Tue Sep 04 11:24:38 2007
}


I suspect it's related to the format of my .py file, so I am in the process of addressing it at that avenue right now. 
  


Cheers
Chris


  




Re: [EMAIL PROTECTED] Testing Python Mod

2007-09-04 Thread Chris Howell

Chris Howell wrote:

Brian Munroe wrote:

On 9/4/07, Chris Howell <[EMAIL PROTECTED]> wrote:
  

  

Brian:
I made the modifications you suggested my httpd conf file now has this
entry in it.

 LoadModule python_module modules/mod_python.so

 
Order deny,allow
Satisfy all
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
 

 My test.py file looks like.

 def world(req):
return "Hello World"

 When I try to access it like
 http://localhost:9000/Test/test.py/world

 I get a 404.

 Any other ideas ?




At least you are getting a new kind of error!

Well, it isn't exactly like I suggested, but I tried your
configuration (you have a 'Listen 9000' in your httpd.conf, right?)
and everything worked fine for me.

I know this is a pain, but comment out the  
related to the mod_python stuff, restart apache and see if you still
get the 404 when trying to hit

http://localhost:9000/Test/test.py

You should get the raw python code rendered in your browser.

-- brian

-
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]
  


Brian:

Yes I have set it up to listen on port 9000 and everything works fine. 
I fixed the 404 error. This is the error I am getting now.


MOD_PYTHON ERROR

ProcessId:  2932
Interpreter:'192.168.0.42'

ServerName: '192.168.0.42'
DocumentRoot:   'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs'

URI:'/Test/test.py'
Location:   None
Directory:  'C:/Program Files/Apache Software 
Foundation/Apache2.2/htdocs/Test/'
Filename:   'C:\\Program Files\\Apache Software 
Foundation\\Apache2.2\\htdocs\\Test\\test.py'
PathInfo:   ''

Phase:  'PythonHandler'
Handler:'mod_python.publisher'

Traceback (most recent call last):

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in 
HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in 
_process_target
result = _execute_target(config, req, object, arg)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in 
_execute_target
result = object(arg)

  File "C:\Python25\Lib\site-packages\mod_python\publisher.py", line 204, in 
handler
module = page_cache[req]

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1059, in 
__getitem__
return import_module(req.filename)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 296, in 
import_module
log, import_path)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 680, in 
import_module
execfile(file, module.__dict__)

  File "C:\Program Files\Apache Software 
Foundation\Apache2.2\htdocs\Test\test.py", line 1

def world(req):

   ^

IndentationError: unexpected indent


MODULE CACHE DETAILS

Accessed:   Tue Sep 04 11:28:20 2007
Generation: 1

_mp_55aa27656fb6b0a34cdceffae0e6fbab {
  FileName: 'C:\\Program Files\\Apache Software 
Foundation\\Apache2.2\\htdocs\\Test\\test.py'
  Instance: 4 [RELOAD]
  Generation:   1 [ERROR]
  Modified: Tue Sep 04 11:25:29 2007
  Imported: Tue Sep 04 11:24:38 2007
}

I suspect it's related to the format of my .py file, so I am in the process of addressing it at that avenue right now. 
  


Cheers
Chris
  




No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 9/3/2007 9:31 AM
  

Brian:

Finally got it working thanks so MUCH for your help.

Cheers
Chris Howell
Software Engineer
[EMAIL PROTECTED]
the PYXIS innovation - /Common Ground for Digital Earth
/Kingston, Ontario
w: www.pyxisinnovation.com




[EMAIL PROTECTED] R: [EMAIL PROTECTED] More virtualhost with the same Pubblic Ip

2007-09-04 Thread netmail
Sorry ..
When restart the service received:
[warn] NameVirtualHost MYLOCALIPOFWEBSERVER:0 has no VirtualHosts
[warn] NameVirtualHost MYLOCALIPOFWEBSERVER:0 has no VirtualHosts

NameVirtualHost localipwebserver

DocumentRoot /var/www/html/
ServerName hostnamewebserver/egroupware


NameVirtualHost localipwebserver

DocumentRoot /var/www/html/
ServerName hostnamewebserver/hinventory


NameVirtualHost localipwebserver

DocumentRoot /var/www/html/mydomain/thirdleveldomain1
ServerName thirdleveldomain1.mydomain.com

AllowOverride None
allow from all
Options Indexes



NameVirtualHost localipwebserver

DocumentRoot /var/www/html/mydomain/thirdleveldomain2
ServerName thirdleveldomain2.mydomain.com 

AllowOverride None
allow from all
Options Indexes




The website work it correctly but receive the warn message 
thanks

-Messaggio originale-
Da: Neil A. Hillard [mailto:[EMAIL PROTECTED] 
Inviato: martedì 4 settembre 2007 16.26
A: users@httpd.apache.org
Oggetto: Re: [EMAIL PROTECTED] More virtualhost with the same Pubblic Ip

Hi,

netmail wrote:
> Hi
> 
> I want configure apache with this site :
> 
> http://Thidlevel.mydomain.com à DNS entry Ok from Pubblic Ip XXX.XXX.XXX.XX1
> 
> http://Test.mydomain.com à DNS Entry ok from the same Pubblic Ip
> XXX.XXX.XXX.XX1
> 
> http://Mywebserver/intranetsite from intranet
> 
>  
> 
> When I configure the virtualHost with the third level domain
> 
> VirtualHost IP:port>
> DocumentRoot /var/www/mydomain/thirdlevel
> ServerName IP
> ErrorLog 
> CustomLog 
> 
> 
>  
> 
> the http://Mywebserver/intranetsite don’t work and receive the message
> that don’t found the page etc… Why ?

You may find a lack of responses to your question.  Firstly, you will
want to post in plain text format _only_.  Secondly you should include
the exact error message and not your interpretation of it (along with
anything that appears in the error log).

My suspicion is that you have the incorrect ServerName directive.  The
clue is in the name - 'Name'.  Your config snippet has 'ServerName IP'.
 You should not specify the IP address here.

Please refer to
http://httpd.apache.org/docs/2.2/mod/core.html#servername for the
documentation for the ServerName directive.


Neil.

-- 
Neil Hillard[EMAIL PROTECTED]
AgustaWestland  http://www.whl.co.uk/

Disclaimer: This message does not necessarily reflect the
views of Westland Helicopters Ltd.

-
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] R: [EMAIL PROTECTED] More virtualhost with the same Pubblic Ip

2007-09-04 Thread Joshua Slive
On 9/4/07, netmail <[EMAIL PROTECTED]> wrote:
> Sorry ..
> When restart the service received:
> [warn] NameVirtualHost MYLOCALIPOFWEBSERVER:0 has no VirtualHosts

You should use only a single NameVirtualHost directive for each
IP-Address:port. This directive simply tells apache to expect multiple
 sections for this address.

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] Testing Python Mod

2007-09-04 Thread Dragon

Chris Howell wrote:

Yes I have set it up to listen on port 9000 and everything works 
fine. I fixed the 404 error. This is the error I am getting now.



MOD_PYTHON ERROR

ProcessId:  2932
Interpreter:'192.168.0.42'

ServerName: '192.168.0.42'
DocumentRoot:   'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs'

URI:'/Test/test.py'
Location:   None
Directory:  'C:/Program Files/Apache Software 
Foundation/Apache2.2/htdocs/Test/'
Filename:   'C:\\Program Files\\Apache Software 
Foundation\\Apache2.2\\htdocs\\Test\\test.py'

PathInfo:   ''

Phase:  'PythonHandler'
Handler:'mod_python.publisher'

Traceback (most recent call last):

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 
1537, in HandlerDispatch

default=default_handler, arg=req, silent=hlist.silent)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 
1229, in _process_target

result = _execute_target(config, req, object, arg)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 
1128, in _execute_target

result = object(arg)

  File "C:\Python25\Lib\site-packages\mod_python\publisher.py", 
line 204, in handler

module = page_cache[req]

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 
1059, in __getitem__

return import_module(req.filename)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 
296, in import_module

log, import_path)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 
680, in import_module

execfile(file, module.__dict__)

  File "C:\Program Files\Apache Software 
Foundation\Apache2.2\htdocs\Test\test.py", line 1


def world(req):

   ^

IndentationError: unexpected indent


MODULE CACHE DETAILS

Accessed:   Tue Sep 04 11:28:20 2007
Generation: 1

_mp_55aa27656fb6b0a34cdceffae0e6fbab {
  FileName: 'C:\\Program Files\\Apache Software 
Foundation\\Apache2.2\\htdocs\\Test\\test.py'

  Instance: 4 [RELOAD]
  Generation:   1 [ERROR]
  Modified: Tue Sep 04 11:25:29 2007
  Imported: Tue Sep 04 11:24:38 2007
}

 End original message. -

That is solely a python error. Your python script is not properly 
formatted. In python, white space is significant and code blocks are 
defined by the indentation. BTW, you read the trace back in reverse 
order the last thing listed is the cause of the error, the rest is 
just a trace of the calling stack.


You cannot have any indentation on line 1 of your script as that is 
the top level of coade and must have zero indentation until you enter 
a new code block with a different execution scope.


Anyway, this is not an Apache issue any longer, you should read up on 
python and its syntactical requirements to fix the problem you have now.


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] print label on dot matrix printer

2007-09-04 Thread Hiep Nguyen

Hi all,

i use php & mysql to product a page so that user can use web browser 
(explorer, firefox, netscape, ... etc) to print some labels.  my question 
is how am i going to format the page so that user can print on continuous 
label with dot matrix printer?


Label size is: 7.5in x 3.5in (width x heigth)

appreciates any help.

T. Hiep

-
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] R: [EMAIL PROTECTED] R: [EMAIL PROTECTED] More virtualhost with the same Pubblic Ip

2007-09-04 Thread netmail
Thanks 
Now don't received the error messagge !

-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Joshua Slive
Inviato: martedì 4 settembre 2007 17.41
A: users@httpd.apache.org
Oggetto: Re: [EMAIL PROTECTED] R: [EMAIL PROTECTED] More virtualhost with the 
same Pubblic Ip

On 9/4/07, netmail <[EMAIL PROTECTED]> wrote:
> Sorry ..
> When restart the service received:
> [warn] NameVirtualHost MYLOCALIPOFWEBSERVER:0 has no VirtualHosts

You should use only a single NameVirtualHost directive for each
IP-Address:port. This directive simply tells apache to expect multiple
 sections for this address.

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]


-
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] mod_rewrite: LoadModule order is important?

2007-09-04 Thread Rainer Traut

Hi,

am running Redhat EL4 U5 with redhat's Apache/2.0.52.

I noticed the order of loading the modules is important?

Part of httpd.conf:

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

If I load the rewrite modul after the proxy modules I lose the 
rewriteengine function in my SSL virtual host. It uses the mod_proxy 
module there.


Is this possible? Maybe a bug?

Thx
Rainer


-
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] mod_rewrite: how to discard tail of the URL?

2007-09-04 Thread Sennott, Mark
I'm running RHEL4 update 3 with Apache/2.2.4 
 
I want to redirect this:
 
http://foo.bar.com/search/search-events.front?keywords=&x=35&y=6
 
to this:
 
http://foo.bar.com/events/
 
 
I am using this rewrite rule:
 
RewriteCond %{HTTP_HOST} ^foo.bar.com$
RewriteRule ^/search/search-events(.*) http://foo.bar.com/events/ [L]

 
The problem is that the redirect returns this:
 
/events/?keywords=&x=35&y=6
 
 
 
How the heck do I discard the tail end of the URL??
 
 


Re: [EMAIL PROTECTED] print label on dot matrix printer

2007-09-04 Thread Dragon

Hiep Nguyen wrote:

Hi all,

i use php & mysql to product a page so that user can use web browser 
(explorer, firefox, netscape, ... etc) to print some labels.  my 
question is how am i going to format the page so that user can print 
on continuous label with dot matrix printer?


Label size is: 7.5in x 3.5in (width x heigth)

appreciates any help.

 End original message. -

Sorry, but I doubt you are going to find much help here, this is not 
an Apache web server issue and not an appropriate topic for this list.


But to give you a nudge in the right direction, you will want to look 
into Cascading Style Sheets (CSS) and setting up a style sheet for 
printing devices. Go to http://www.w3.org/ to get started with the 
CSS documentation.


From there, if you still need help, I suggest finding a list or 
forum that deals with CSS and web design issues.


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]



Re: [EMAIL PROTECTED] print label on dot matrix printer

2007-09-04 Thread Hiep Nguyen

On Tue, 4 Sep 2007, Dragon wrote:


Hiep Nguyen wrote:

Hi all,

i use php & mysql to product a page so that user can use web browser 
(explorer, firefox, netscape, ... etc) to print some labels.  my question 
is how am i going to format the page so that user can print on continuous 
label with dot matrix printer?


Label size is: 7.5in x 3.5in (width x heigth)

appreciates any help.

 End original message. -

Sorry, but I doubt you are going to find much help here, this is not an 
Apache web server issue and not an appropriate topic for this list.


But to give you a nudge in the right direction, you will want to look into 
Cascading Style Sheets (CSS) and setting up a style sheet for printing 
devices. Go to http://www.w3.org/ to get started with the CSS documentation.


From there, if you still need help, I suggest finding a list or forum that 
deals with CSS and web design issues.


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]



thanks.
T. Hiep

-
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] Testing Python Mod

2007-09-04 Thread Brian Munroe
On 9/4/07, Dragon <[EMAIL PROTECTED]> wrote:

>
> You cannot have any indentation on line 1 of your script as that is
> the top level of coade and must have zero indentation until you enter
> a new code block with a different execution scope.
>
> Anyway, this is not an Apache issue any longer, you should read up on
> python and its syntactical requirements to fix the problem you have now.
>

yep, that will get you every time!

Chris - this is the last I am going to comment on this thread.  I
highly recommend the book Practical Python.  In my opinion, it gives a
great overview of the language and ramps up to more advanced topics at
a very nice pace.

http://hetland.org/writing/practical-python/

Good Luck!

-- brian

-
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] mod_rewrite: LoadModule order is important?

2007-09-04 Thread Joshua Slive
On 9/4/07, Rainer Traut <[EMAIL PROTECTED]> wrote:
> Hi,
>
> am running Redhat EL4 U5 with redhat's Apache/2.0.52.
>
> I noticed the order of loading the modules is important?
>
> Part of httpd.conf:
>
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
>
> If I load the rewrite modul after the proxy modules I lose the
> rewriteengine function in my SSL virtual host. It uses the mod_proxy
> module there.
>
> Is this possible? Maybe a bug?

Could be. LoadModule order isn't supposed to have an effect in 2.x.
But you are using an ancient version. You should try with something
more modern before reporting a bug.

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]



[EMAIL PROTECTED] Exit codes reference for httpd binary

2007-09-04 Thread Fermín Galán Márquez

Hi,

I would like to know if there is a reference of the "exit codes" of the 
httpd binary (apache2 in the Debian distribution I'm using). After 
browsing at http://httpd.apache.org/docs/2.2/ (and specially 
http://httpd.apache.org/docs/2.2/programs/httpd.html), I haven't found 
any document that describe the topic, so I come to the list in the hope 
of someone could help me, please :)


Maybe it sound a estrange question, but I'm trying to debug a complex 
utilization of the apache2ctl script. The httpd binary is failing to 
start (returning 141 instead of the usual 0) and I'm wondering why...


Thank you very much in advance!

Best regards,


Fermín Galán Márquez
CTTC - Centre Tecnològic de Telecomunicacions de Catalunya
Parc Mediterrani de la Tecnologia, Av. del Canal Olímpic s/n, 08860
Castelldefels, Spain
Room 1.02
Tel : +34 93 645 29 12
Fax : +34 93 645 29 01
Email address: fermin dot galan at cttc dot es

-
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] mod_rewrite: how to discard tail of the URL?

2007-09-04 Thread Joshua Slive
On 9/4/07, Sennott, Mark <[EMAIL PROTECTED]> wrote:
>
>
> I'm running RHEL4 update 3 with Apache/2.2.4
>
> I want to redirect this:
>
> http://foo.bar.com/search/search-events.front?keywords=&x=35&y=6
>
> to this:
>
> http://foo.bar.com/events/
>
>
> I am using this rewrite rule:
>
> RewriteCond %{HTTP_HOST} ^foo.bar.com$
> RewriteRule ^/search/search-events(.*) http://foo.bar.com/events/ [L]
>
>
> The problem is that the redirect returns this:
>
> /events/?keywords=&x=35&y=6
>
>
>
> How the heck do I discard the tail end of the URL??

Add a ? to the end of the substitution string. See:
http://wiki.apache.org/httpd/RewriteQueryString
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule
(the box: "Modifying the Query String").

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] mod_rewrite: LoadModule order is important?

2007-09-04 Thread Jim Jagielski


On Sep 4, 2007, at 1:15 PM, Joshua Slive wrote:


On 9/4/07, Rainer Traut <[EMAIL PROTECTED]> wrote:

Hi,

am running Redhat EL4 U5 with redhat's Apache/2.0.52.

I noticed the order of loading the modules is important?

Part of httpd.conf:

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

If I load the rewrite modul after the proxy modules I lose the
rewriteengine function in my SSL virtual host. It uses the mod_proxy
module there.

Is this possible? Maybe a bug?


Could be. LoadModule order isn't supposed to have an effect in 2.x.
But you are using an ancient version. You should try with something
more modern before reporting a bug.



Yep... but also recall that most modules use APR_HOOK_MIDDLE as
the ordering, and so the order of when the hooks actually
get run does depend on when the modules are loaded in and
when they call the ap_hook_* func. And unlike 1.3, 2.x
is such that the 1st modules loaded are also run 1st
unless the sort changes that (export SHOW_HOOKS and
then run Apache to see what happens)...

(mostly an issue with AAA routines where the fall-through
matters)


-
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] mod_rewrite: LoadModule order is important?

2007-09-04 Thread Joshua Slive
On 9/4/07, Jim Jagielski <[EMAIL PROTECTED]> wrote:

> Yep... but also recall that most modules use APR_HOOK_MIDDLE as
> the ordering, and so the order of when the hooks actually
> get run does depend on when the modules are loaded in and
> when they call the ap_hook_* func. And unlike 1.3, 2.x
> is such that the 1st modules loaded are also run 1st
> unless the sort changes that (export SHOW_HOOKS and
> then run Apache to see what happens)...
>
> (mostly an issue with AAA routines where the fall-through
> matters)

Yes, but I would still consider it a bug if the ordering of LoadModule
has an effect in this case. (It is a bug that is easy to fix simply by
explicitly specifying the hook ordering in the code.)

In the AAA case, it is a little more complicated. I guess the ability
to reorder using LoadModule could be considered a feature given that
there is no other way to do it.

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] mod_rewrite: LoadModule order is important?

2007-09-04 Thread Jim Jagielski
Joshua Slive wrote:
> 
> On 9/4/07, Jim Jagielski <[EMAIL PROTECTED]> wrote:
> 
> > Yep... but also recall that most modules use APR_HOOK_MIDDLE as
> > the ordering, and so the order of when the hooks actually
> > get run does depend on when the modules are loaded in and
> > when they call the ap_hook_* func. And unlike 1.3, 2.x
> > is such that the 1st modules loaded are also run 1st
> > unless the sort changes that (export SHOW_HOOKS and
> > then run Apache to see what happens)...
> >
> > (mostly an issue with AAA routines where the fall-through
> > matters)
> 
> Yes, but I would still consider it a bug if the ordering of LoadModule
> has an effect in this case. (It is a bug that is easy to fix simply by
> explicitly specifying the hook ordering in the code.)
> 

Agreed.

> In the AAA case, it is a little more complicated. I guess the ability
> to reorder using LoadModule could be considered a feature given that
> there is no other way to do it.

Yep. Undocumented feature ;)
-- 
===
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
"If you can dodge a wrench, you can dodge a ball."

-
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 and mod_ssl

2007-09-04 Thread Aaron Smith
I have a feeling that I'm missing something elementary here.
I have an install of apache 2.0.55 with mod_ssl enabled on a HP-UX
system in /opt/apache2.   This one runs fine.  I recompiled another copy
of apache (same version) into /opt/apache2a (for testing purposes) to
add mod_ldap support and that one worked as well.  Then I tried
recreating apache2a in apache2 by doing a recompile using a prefix of
apache2 and then doing an install after backing everything up and moving
the old apache install out of the way.  However, this one DOESN'T work.
If I launch it WITHOUT SSL turned on (i.e, no SSLEngine on) directive,
everything works great.  But as soon as I turn on SSL in a VirtualHost,
then strange things happen.  A client will connect to the test port via
SSL, the SSL negotiation appears to work just fine (tested using openssl
s_client), but when you attempt to do a GET, the request is sent, but a
reply never shows up.  Nothing appears in the access_log, and child
processes begin to spawn with each request.  I can pull up the
server-status url and everytime I hit refresh, one child process goes to
"W" and another one is spawned.  Clicking repeatedly will continue this
process until there are a ton of processes, all stuck at "Waiting" with
0/0/0 under the Acc columntDo it enough, the server's load average
starts to climb.

I've checked and double checked every permission I can
possible find.  The User and Group directives are both set to "webadmin"
which is the same in all configurations. The permissions of the
sub-directories in both directories match between the two.  I have this
feeling that it's simple with the directory permissions and/or structure
but I just can't seem to locate it.  Anyone have any ideas on what else
I might need to look at?

 

Aaron

 

 

 



RE: [EMAIL PROTECTED] mod_rewrite: how to discard tail of the URL?

2007-09-04 Thread Sennott, Mark
Thanks for the help Joshua. I didn't even think about the ?... As being
treated differently because it's a query string. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua
Slive
Sent: Tuesday, September 04, 2007 12:24 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] mod_rewrite: how to discard tail of the URL?

On 9/4/07, Sennott, Mark <[EMAIL PROTECTED]> wrote:
>
>
> I'm running RHEL4 update 3 with Apache/2.2.4
>
> I want to redirect this:
>
> http://foo.bar.com/search/search-events.front?keywords=&x=35&y=6
>
> to this:
>
> http://foo.bar.com/events/
>
>
> I am using this rewrite rule:
>
> RewriteCond %{HTTP_HOST} ^foo.bar.com$ RewriteRule 
> ^/search/search-events(.*) http://foo.bar.com/events/ [L]
>
>
> The problem is that the redirect returns this:
>
> /events/?keywords=&x=35&y=6
>
>
>
> How the heck do I discard the tail end of the URL??

Add a ? to the end of the substitution string. See:
http://wiki.apache.org/httpd/RewriteQueryString
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule
(the box: "Modifying the Query String").

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]

-
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] Exit codes reference for httpd binary

2007-09-04 Thread Joshua Slive
On 9/4/07, Fermín Galán Márquez <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to know if there is a reference of the "exit codes" of the
> httpd binary (apache2 in the Debian distribution I'm using). After
> browsing at http://httpd.apache.org/docs/2.2/ (and specially
> http://httpd.apache.org/docs/2.2/programs/httpd.html), I haven't found
> any document that describe the topic, so I come to the list in the hope
> of someone could help me, please :)
>
> Maybe it sound a estrange question, but I'm trying to debug a complex
> utilization of the apache2ctl script. The httpd binary is failing to
> start (returning 141 instead of the usual 0) and I'm wondering why...
>
> Thank you very much in advance!

The server itself just issues 0 for success and 1 for failure as far
as I know. apachectl has some other codes documented in comments at
the top of the script.

I don't know where 141 would be coming from. Do you get any
interesting error messages at the prompt or in the error log? If not,
try running httpd under strace or the equivalent.

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]



[EMAIL PROTECTED] Apache and mod_ssl (extra info)

2007-09-04 Thread Aaron Smith
So I tried something kind of new.  I completely removed the
directory with the non-functioning apache install.  I went back to the
source, did a make clean, a new configure using the same parameters as
before:  

 

./configure --prefix=/opt/apache3 --enable-auth-dbm=shared
--enable-expires=shared --enable-headers=shared --enable-rewrite=shared
--enable-mime-magic=shared --enable-info=shared --enable-status=shared
--enable-userdir=shared --enable-http --enable-so --enable-ssl=static
--with-ssl=/opt/openssl098d --with-perl=/opt/perl58 --with-ndbm
--enable-ldap=shared --enable-auth_ldap=shared
--with-ldap=/usr/local/OpenLDAP.2.3

 

 Had SHLIB_PATH set to
"/opt/openssl098d/lib:/usr/local/OpenLDAP.2.3/lib"  as well as CPPFLAGS
and LDFLAGS set with -I and -L flags for those two non-standard
directories.  This is all the same as what I had done before.

 

After the make, make install, I went in to the installed directory and
made as minimal changes as I could.  I changed Listen port in the main
httpd.conf to 8040 and the Listen port (as well as the VirtualHost port)
in ssl.conf to 8045 so it wouldn't step on the toes of the production
apache process.  I then changed the User and Group directives in
httpd.conf to the webadmin user which the other apache process runs as.
Launched this just about plain jane apache using apachectl startssl.
Connecting via http to 8040, everything looks fine.  Connecting via
https to port 8045 shows the behavior of child processing hanging in a
waiting state.

 

Am I wrong in thinking this is a permissions issue?  Or perhaps
something is funky with the fact that the SSL libraries are in a strange
spot?  I've tried adding the library path to envvars in apache3/bin and
having PassEnv SHLIB_PATH in the httpd.conf.  However, the WORKING
installation is linked to these exact same libraries and although
there's a PassEnv command in it's httpd.conf, nothing was added to
envvars.

 

If it *is* a permissions issue, what does mod_ssl need permission to get
to in order to function properly?  I notice that the ssl_scache.dir and
ssl_scache.pag files are created in the logs directory, (though the .dir
file is 0 bytes) both owned by webadmin, so that user can at least
CREATE files in that directory.

 

 



Re: [EMAIL PROTECTED] Apache and mod_ssl (extra info)

2007-09-04 Thread Graeme Fowler
On Tue, 2007-09-04 at 16:30 -0400, Aaron Smith wrote:
> Connecting via https to port 8045 shows the behavior of child
> processing hanging in a waiting state.

Sounds like your system isn't generating enough entropy to me, which can
affect SSL/TLS connections on lots of protocols. I have no experience of
HP/UX though, so suggestions are limited...

Which SSL libraries are you compiling mod_ssl against? OpenSSL, or some
HP ones? Do you have /dev/random and /dev/urandom?

If you do "cat /dev/random" and "cat /dev/urandom", what comes back?
It'll be garbage, but do the rates differ significantly?

When you start up this new Apache instance, what does it log in the
error log?

Graeme


-
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] Directory Vs Location.

2007-09-04 Thread Chris Howell

Hi all.

Can somebody please explain what the difference is between using the 
/directory/ directive and the /location/ directive in my apache 
httpd.conf file. Also when it is appropriate to use which. The reason I 
am asking is, I am trying to get Trac running with Apache and both Trac 
& Apache with mod_python installed work fine independently of one 
another. I've tested apache, and I've tested trac with the the stand 
alone server.


The reason I am asking is trying to get Trac working I am told to put.

Foundation/Apache2.2/htdocs/Worldview">

 Satisfy all
 SetHandler mod_python
 PythonInterpreter main_interpreter
 PythonHandler trac.web.modpython_frontend
 PythonOption TracUriRoot /Worldview


But it doesn't seem to work and I am thinking that I could make a better 
decision if I fully understood the location directive.


Cheers
Chris Howell
[EMAIL PROTECTED]
Software Engineer
the PYXIS innovation - /Common Ground for Digital Earth
/w: www.pyxisinnovation.com



Re: [EMAIL PROTECTED] Directory Vs Location.

2007-09-04 Thread Dragon

Chris Howell sent the message below at 14:27 9/4/2007:

Hi all.

Can somebody please explain what the difference is between using the 
directory directive and the location directive in my apache 
httpd.conf file. Also when it is appropriate to use which. The 
reason I am asking is, I am trying to get Trac running with Apache 
and both Trac & Apache with mod_python installed work fine 
independently of one another. I've tested apache, and I've tested 
trac with the the stand alone server.


The reason I am asking is trying to get Trac working I am told to put.

Foundation/Apache2.2/htdocs/Worldview">

  Satisfy all
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracUriRoot /Worldview


But it doesn't seem to work and I am thinking that I could make a 
better decision if I fully understood the location directive.

 End original message. -

Location is for controlling access based on URLs which may or may not 
reside on your local file system. Directory is for directories which 
are on your local file system. The path shown in the example is 
clearly a local file system directory so you should use Directory.


Now while that change is semantically and syntactically correct, 
whether the rest of the configuration is correct I have no way to 
know as I have never used Trac.


Please see:

http://httpd.apache.org/docs/2.2/mod/core.html#directory

and:

http://httpd.apache.org/docs/2.2/mod/core.html#location

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]



Re: [EMAIL PROTECTED] Baffled for two months - Need help

2007-09-04 Thread Frederick Lamartin

Joshua,

Thanks for your attention. I'm trying to follow your guidance and, at the 
same time, develop a deeper understanding of the concepts involved in 
configuring Apache. Here's my latest failure:


DocumentRoot "C:/Users/Lamartin/My Website/"



   Options Multiviews Indexes FollowSymLinks Includes ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all



Alias /lamartin "C:/Users/Lamartin/My Website"

URL: "http://localhost/";  opens the default Apache index.html

URL: "http://localhost/~lamartin/"; leads to an Internet Explorer http #404 
error


Can you resteer me towards a solution?

Apache novice, Fred Lamartin


- Original Message - 
From: "Joshua Slive" <[EMAIL PROTECTED]>

To: 
Sent: Monday, September 03, 2007 12:36 PM
Subject: Re: [EMAIL PROTECTED] Baffled for two months - Need help



On 9/3/07, Frederick Lamartin <[EMAIL PROTECTED]> wrote:

I need help with a BASIC problem that has baffled me for two months. Here
are the
pertinent data.

1. Using a Windows Vista Home Premium platform, I cannot open my website 
in

the server.

2. The path to my website is "C:\Users\Lamartin\My Website".

3. Major elements of the configuration are:
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
Listen 80
ServerName localhost:80
UserDir Enabled lamartin
UserDir "C:/Users/Lamartin/My Website"

 AllowOverride None
 Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
 Order allow,deny
  Allow from all


index.html index.html.var index.cgi


4. I have tried to get an index of my site in both I.E. and FireFox, by
using the following URL: http://localhost/~lamartin/. In I.E., the URL 
gives

an error ("Internet Explorer cannot display the webpage"),  and the URL
gives a comparable error in Firefox.

5. The Apache error log entries for these trials are of this type: "[Sun 
Aug
05 19:09:13 2007] [error] [client 127.0.0.1] File does not exist: 
C:/Program

Files/Apache Software Foundation/Apache2.2/htdocs/lamartin".


The last time you posted the exact same question I said:

On 8/6/07, Joshua Slive <[EMAIL PROTECTED]> wrote:

Do you really want to be using UserDir? Why not just use an Alias or
just change your DocumentRoot to point to the correct directory?

For example, get rid of the UserDir stuff and use
Alias /lamartin "C:/Users/Lamartin/My Website"


Was there something you didn't understand there? Why didn't you at
least answer my explicit questions?

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]






-
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] Overriding

2007-09-04 Thread Aaron Dalton
I have an overarching  directive that passes everything in
my virtual host through a home-rolled handler.  I would like create a
few directory aliases, though, that bypass this handler.  As far as I
know, however, Locations are processed before Directories.  How can I
accomplish this?  Here's what I want to do:

Alias /js /foo/bar/js

Allow from all



# mod_perl handler stuff


Thanks for your time and attention.
-- 
Aaron Dalton   |   Super Duper Games
[EMAIL PROTECTED]   |   http://superdupergames.org


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [EMAIL PROTECTED] Baffled for two months - Need help

2007-09-04 Thread Joshua Slive
On 9/4/07, Frederick Lamartin <[EMAIL PROTECTED]> wrote:
> Joshua,
>
> Thanks for your attention. I'm trying to follow your guidance and, at the
> same time, develop a deeper understanding of the concepts involved in
> configuring Apache. Here's my latest failure:
>
> DocumentRoot "C:/Users/Lamartin/My Website/"
>
> 
>
> Options Multiviews Indexes FollowSymLinks Includes ExecCGI
> AllowOverride None
> Order allow,deny
> Allow from all
>
> 
>
> Alias /lamartin "C:/Users/Lamartin/My Website"
>
> URL: "http://localhost/";  opens the default Apache index.html
>
> URL: "http://localhost/~lamartin/"; leads to an Internet Explorer http #404
> error
>
> Can you resteer me towards a solution?

Forget about the Alias and the ~lamartin stuff until you have the
basic DocumentRoot working.

Did you restart apache after changing the config file?

Are there other DocumentRoot directives in httpd.conf? (There should
only be one unless you are running VirtualHosts.)

Are you sure you are editting the correct config file?

-
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] Overriding

2007-09-04 Thread Joshua Slive
On 9/4/07, Aaron Dalton <[EMAIL PROTECTED]> wrote:
> I have an overarching  directive that passes everything in
> my virtual host through a home-rolled handler.  I would like create a
> few directory aliases, though, that bypass this handler.  As far as I
> know, however, Locations are processed before Directories.  How can I
> accomplish this?  Here's what I want to do:
>
> Alias /js /foo/bar/js
> 
> Allow from all
> 
>
> 
> # mod_perl handler stuff
> 

No, Location is processed after Directory and the last match usually wins.

Why not put the mod_perl stuff in a  section instead?

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] Overriding

2007-09-04 Thread Aaron Dalton
Joshua Slive wrote:
> On 9/4/07, Aaron Dalton <[EMAIL PROTECTED]> wrote:
>> I have an overarching  directive that passes everything in
>> my virtual host through a home-rolled handler.  I would like create a
>> few directory aliases, though, that bypass this handler.  As far as I
>> know, however, Locations are processed before Directories.  How can I
>> accomplish this?  Here's what I want to do:
>>
>> Alias /js /foo/bar/js
>> 
>> Allow from all
>> 
>>
>> 
>> # mod_perl handler stuff
>> 
> 
> No, Location is processed after Directory and the last match usually wins.
> 
> Why not put the mod_perl stuff in a  section instead?

Thanks for the reply, Joshua.  The  is used because the
handler implements a RESTful system where the urls do not map to the
file system.  Some urls, however, need to reference specific files, thus
the Alias+.  I tried moving the  directive after
the  but the Location handler is still intercepting the request.

-- 
Aaron Dalton   |   Super Duper Games
[EMAIL PROTECTED]   |   http://superdupergames.org


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [EMAIL PROTECTED] Overriding

2007-09-04 Thread Joshua Slive
On 9/4/07, Aaron Dalton <[EMAIL PROTECTED]> wrote:
> Joshua Slive wrote:
> > On 9/4/07, Aaron Dalton <[EMAIL PROTECTED]> wrote:
> >> I have an overarching  directive that passes everything in
> >> my virtual host through a home-rolled handler.  I would like create a
> >> few directory aliases, though, that bypass this handler.  As far as I
> >> know, however, Locations are processed before Directories.  How can I
> >> accomplish this?  Here's what I want to do:
> >>
> >> Alias /js /foo/bar/js
> >> 
> >> Allow from all
> >> 
> >>
> >> 
> >> # mod_perl handler stuff
> >> 
> >
> > No, Location is processed after Directory and the last match usually wins.
> >
> > Why not put the mod_perl stuff in a  section instead?
>
> Thanks for the reply, Joshua.  The  is used because the
> handler implements a RESTful system where the urls do not map to the
> file system.  Some urls, however, need to reference specific files, thus
> the Alias+.  I tried moving the  directive after
> the  but the Location handler is still intercepting the request.

The order in the config file is irrelevant.

You can either be more specific in your  sections -- they
probably don't really need to cover EVERYTHING. Or you can try
something like

SetHandler default-handler


Or you can play with  to find a regex that excludes
some specific URLs.

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] Overriding

2007-09-04 Thread Aaron Dalton
Joshua Slive wrote:
> On 9/4/07, Aaron Dalton <[EMAIL PROTECTED]> wrote:
>> Joshua Slive wrote:
>>> On 9/4/07, Aaron Dalton <[EMAIL PROTECTED]> wrote:
 I have an overarching  directive that passes everything in
 my virtual host through a home-rolled handler.  I would like create a
 few directory aliases, though, that bypass this handler.  As far as I
 know, however, Locations are processed before Directories.  How can I
 accomplish this?  Here's what I want to do:

 Alias /js /foo/bar/js
 
 Allow from all
 

 
 # mod_perl handler stuff
 
>>> No, Location is processed after Directory and the last match usually wins.
>>>
>>> Why not put the mod_perl stuff in a  section instead?
>> Thanks for the reply, Joshua.  The  is used because the
>> handler implements a RESTful system where the urls do not map to the
>> file system.  Some urls, however, need to reference specific files, thus
>> the Alias+.  I tried moving the  directive after
>> the  but the Location handler is still intercepting the request.
> 
> The order in the config file is irrelevant.
> 
> You can either be more specific in your  sections -- they
> probably don't really need to cover EVERYTHING. Or you can try
> something like
> 
> SetHandler default-handler
> 
> 
> Or you can play with  to find a regex that excludes
> some specific URLs.
> 
> Joshua.

Thanks again.   would be fine but how do I then associate
/js with somewhere in the filesystem?  I kept the Alias and 
directives too, but no go.  I am confused about why  slurps
everything in if it is indeed resolved last as the documentation states.
 Why is the Alias +  not being seen and invoked first?

-- 
Aaron Dalton   |   Super Duper Games
[EMAIL PROTECTED]   |   http://superdupergames.org


smime.p7s
Description: S/MIME Cryptographic Signature


[EMAIL PROTECTED] Help: running apache virtualhosts as regular users and groups

2007-09-04 Thread Jaysen Johnson
Hello,

I am running Apache 2.2.4 on Fedora Core 6.  This is an RPM install.  I host 
several sites and I would like to setup each virtualhost to run as the user and 
group I am hosting for.  How do I configure apache to do this?

Example:  user joe has domain joesite.com configured in home directory 
/home/joe  How do I make his virtualhost run as user joe and group joe?  

Any help would be appreciated


Kind Regards,

--
Jaysen B. Johnson

Re: [EMAIL PROTECTED] Help: running apache virtualhosts as regular users and groups

2007-09-04 Thread Joshua Slive
On 9/4/07, Jaysen Johnson <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I am running Apache 2.2.4 on Fedora Core 6.  This is an RPM install.  I host
> several sites and I would like to setup each virtualhost to run as the user
> and group I am hosting for.  How do I configure apache to do this?
>
> Example:  user joe has domain joesite.com configured in home directory
> /home/joe  How do I make his virtualhost run as user joe and group joe?
>
> Any help would be appreciated

You should probably start by reading this:
http://wiki.apache.org/httpd/PrivilegeSeparation

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] Help: running apache virtualhosts as regular users and groups

2007-09-04 Thread Jaysen Johnson
I read that and it looks like Peruser MPM and MPM-ITK would do what I need. 
However.  These are patches and I am not familiar with how to patch an RPM 
install of apache.   Sorry I am a newbie when it comes to this.  Isn't there 
a module that I can install that would take care of this for me?


Thanks

Jaysen

- Original Message - 
From: "Joshua Slive" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, September 04, 2007 6:53 PM
Subject: Re: [EMAIL PROTECTED] Help: running apache virtualhosts as regular 
users and groups




On 9/4/07, Jaysen Johnson <[EMAIL PROTECTED]> wrote:



Hello,

I am running Apache 2.2.4 on Fedora Core 6.  This is an RPM install.  I 
host
several sites and I would like to setup each virtualhost to run as the 
user

and group I am hosting for.  How do I configure apache to do this?

Example:  user joe has domain joesite.com configured in home directory
/home/joe  How do I make his virtualhost run as user joe and group joe?

Any help would be appreciated


You should probably start by reading this:
http://wiki.apache.org/httpd/PrivilegeSeparation

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] 



-
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] Unable to run the xampp

2007-09-04 Thread Morgan Gangwere
On 9/4/07, Dragon <[EMAIL PROTECTED]> wrote:
> raju wrote:
> >Hi,
> >Thanks for your reply. But i would like to work in windows os, I
> >want it for php,
> >Can you advise any other web server(open source) which suits php and
> >which works on win 98?
> >
>  End original message. -
>
> Why in the world would you want to continue running Windows 98?
>
> Microsoft no longer supports it and most software vendors (and open
> source projects) stopped developing for it a long time ago.
>
> Upgrade your OS. If you want to stick with Windows, update to at
> least Windows XP, Vista would be better if your hardware can support
> it. Both of those versions are still supported by Microsoft with
> security and bug fixes and both are supported by the majority of
> software vendors if they are doing Windows development.
>
>
> Dragon
>

Basically, your SOL. Win98 cant even run wamp2, apache1.0.2, php2, mysql1.0.

I have no clue why you are so reluctant because PHP is availible on
all platforms now (in fact, windows is only recent -- php2 was the
first version to be released for windows. windows 2000 to be exact.)
Linux is going to be alot more stable for what you want. I have one
(1) windows apache php mysql machine and it has its issues (usually
because PHP5 was NOT made for windows, it was made for Linux/UNIX.)

Ubuntu server (6.06 is really stable) has an option to install Apache,
PHP and MySQL out of the box -- just select "LAMP INSTALL" from the
boot menu.

if you HAVE to use windows though, 2000 is the only route that sounds
like it should be able to handle your hardware.

-- 
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

-
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]