Re: [EMAIL PROTECTED] Apache module compatibility

2008-08-28 Thread Dragon

Steve Wong did speak thusly:

Hi,
Assume I developed a module, compiled and tested with Apache 
<http://2.2.6.>2.2.6. When I release the binary to others, what kind 
of compatibility may I claim in terms of Apache HTTP server version. 
May I say something like:


Compiled with Apache 2.2.6
Tested with Apache 2.2.6
In theory ccompatible with all 2.2.* Apache servers

If there exist a good guild line/doc regarding release binary and 
describing compatibility, I would appreciate if someone can point me there.

Thanks,
-Steve

 End original message. -

No, you really can't claim any such thing because there are a bunch 
of system libraries involved on any platform on which Apache runs. 
Unless the OS and system libraries and processor architecture are the 
same, you can only claim that it will work on the exact same environment.


Any other environment may be incompatible in any number of ways.

Dragon

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


Re: [EMAIL PROTECTED] Apache module compatibility

2008-08-28 Thread Dragon

Steve Wong did speak thusly:
Thanks for your reply. I do expect the binary releases are tied to 
platform specific information (OS, processor architecture, dependent 
libraries). If the only thing change is Apache server version, does 
it work? Or I should be prepared to add a dimension to my binary 
release matrix. The grid for the new dimension is the last part of 
the version number of Apache.


So, let me ask my question specific to a single platform again. Is 
Apache a.b.y backward compatible with a.b.x in terms of loading 
modules previously compiled with a.b.y? Do I have to recompile my 
modules for every single minor releases?

 End original message. -

I am not an expert on that but I would say that it is possible it 
might work but to be safe, you should compile against each particular 
version of Apache you wish to support.


The other option is to make your source code available so people can 
compile it against their own environment.


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] Getting back HTTP as-is like plain text sometimes

2008-09-04 Thread Dragon

Dobes Vandermeer did speak thusly:

For some reason I'm not getting any hits on my google searches for
this, so I'm trying this mailing list.

The issue I'm running into is that sometimes I get back the HTTP
response as plain text, instead of the *content* of the HTTP response
as the correct content type.  Many of my requests are served through a
reverse proxy to a glassfish server, but I've also seen this happen
for applications served directly by apache mod_php. Here's an example
of something that was returned to an AJAX query :

HTTP/1.1 200 OK
Date: Mon, 01 Sep 2008 21:52:55 GMT
Server: Sun Java System Application Server 9.1
X-Powered-By: Servlet/2.5
Content-Disposition: attachment
Content-Type: application/json;charset=utf-8
Content-Length: 55
Keep-Alive: timeout=15, max=37
Connection: Keep-Alive

//OK[1,["https://www.clarityaccounting.com/login"],0,3]

This example was served by glassfish, but I have also seen this with
PHP scripts returning something similar.

It doesn't happen consistently, nor does it seem to be targetting any
particular content-type or URL.

Has anyone seen this before?  Any ideas what might cause it?


 End original message. -

I suspect this may well be a browser problem.

Does the browser you are using know how to handle the content type?

If not, it will likely either default to plain text or prompt you to 
save the content as a file.


Also IIRC, content disposition of attachment should cause the browser 
to prompt you to save the content.


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] Getting back HTTP as-is like plain text sometimes

2008-09-04 Thread Dragon

Dobes Vandermeer did speak thusly:

On Thu, Sep 4, 2008 at 9:56 AM, Dragon <[EMAIL PROTECTED]> wrote:
> Dobes Vandermeer did speak thusly:
>>
>> For some reason I'm not getting any hits on my google searches for
>> this, so I'm trying this mailing list.
>>
>> The issue I'm running into is that sometimes I get back the HTTP
>> response as plain text, instead of the *content* of the HTTP response
>> as the correct content type.
>>
>> Has anyone seen this before?  Any ideas what might cause it?
>>
>
> Does the browser you are using know how to handle the content type?

It seems to be happening for pretty standard content-types, such as
html pages on the site, so I seem like this is the issue.

It also happens in different browsers.

 End original message. -

OK, so then are you certain that the content type header is always being sent?

I know you sent a list of headers in your original post and it was 
there, but was that for a failed request or a successful one?


If it was not for a failed request, you will need to capture the 
headers on a failed request to see if it is there. The browser must 
know what the content type is in order to know what to do with it and 
if the header is missing, it

will have to just make a guess.

Other than that, I am at a loss as to what might be happening.



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] mod_vhost_alias 404 / ErrorDocument

2008-09-04 Thread Dragon

Graham Clarke did speak thusly:
Hi - I'd like to setup a meaningful error page for a virtual host 
that uses mod_vhost_alias.   If a visitor enters a url that doesn't 
exist on the server they're served a custom error page.

Here's a simple example:

The vhost has:
VirtualDocumentRoot /var/www/html/customer/%1

Requests for http://samplesite.mydomain.com  will serve 
/var/www/html/customer/samplesite/index.html


However, if the user makes a mistake and enters 
"amplesite.mydomain.com" apache throws an error.


My question is how to catch these cases and show a friendly error 
page rather than an ugly apache error?


Thanks,
Graham

 End original message. -

I think you might be confused here.

The example you are giving would likely not even get to Apache in the 
first place as it is likely to be a DNS error you are getting as the 
"amplesite.mydomain.com" subdomain probably does not have a DNS entry.


To verify this, see if you get a valid IP address when you query DNS 
using nslookup or dig for the "amplesite.mydomain.com" host.



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] mod_vhost_alias 404 / ErrorDocument

2008-09-04 Thread Dragon

Graham Clarke did speak thusly:
mod_vhost_alias takes the requested URL and matches a directory on 
the server.  The point of using mod_vhost_alias is so you don't have 
to create vritual host record for each site on your server.


my domain is setup as a wildcard domain, so *.mydomain.com will not 
produce a DNS error.

 End original message. -

OK, so you did not state that originally which is why I made the 
assumption I did.


So does the ErrorDocument directive not work for you?

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

You would put the appropriate directive in the default vhost section 
and it should work if I am not mistaken.


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] Prevent img smoothing?

2008-09-04 Thread Dragon

Mike -- EMAIL IGNORED did speak thusly:

On my website I have a BMP picture that is 13x20 pixels.
I want it displayed as a matrix of little squares.
Displaying on Win2k with IE or Firefox, and on WinXP
using IE, that is what I get.  But on WinXP with Firefox,
the picture is "smoothed" into a blurry mess.  Is there
a way to I prevent this?

#rpm -q httpd
httpd-2.2.8-1.fc8

 End original message. -

Aside from the fact that I am uncertain what exactly you are trying 
to do here...


This is a presentation issue, in other words, it is the browser that 
decides how to display the content. Apache only serves the data 
requested, it has no bearing on how the browser presents it.


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] Problems connecting using Apache on Vista

2008-09-05 Thread Dragon

Gley, David B CTR USAF AFMC HQ AFMC/A7AQ did speak thusly:
A little background:  I have a client-server application that I 
created using Delphi. The database server is a Windows 2003 
operating system running Oracle and Oracle HTTP Server (Apache 
1.3.34). eq_prod.dll is registered with Apache as a handler.  The 
client connects to the database and all works well with this 
configuration. Development was done on Windows XP running Apache 
1.3.39.  I am able to run the client software and connect to the 
database through either the local Apache on the development machine 
or the Oracle Http Server on the database server.
The problem comes when testing Vista Ultimate as my new development 
platform.  I had no errors installing Apache 1.3.39 on Vista. Apache 
seems to run with the same httpd.conf file that I used on Windows 
XP. If I run my client software on Vista, I am able to connect to 
the database through the Oracle Http Server on the database 
server.  If I run the client using the local Apache I get the following error:
"Access violation at address 02207FE26 in module 'eq_prod.dll'. Read 
of address 0B37F330".
eq_prod.dll is the name of my server component of the client-server 
software.  Thinking that this may be a permissions error, I have 
tried running Apache as an administrator, the client as 
administrator, and both as administrator with no avail.  I get the 
same error with minor changes in the two addresses regardless.

An error.log file is created when Apache is ran but contains no data.
Any suggestions,
David Gley


 End original message. -

From the error message, it sounds like the DLL is not Vista compatible.

The error message you are getting is saying that the program is 
attempting to access a location outside of its allocated protected 
memory space. That has nothing to do with Apache or what user it or 
the application are being run as.


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] Getting back HTTP as-is like plain text sometimes

2008-09-05 Thread Dragon

Dobes Vandermeer did speak thusly:

>
> OK, so then are you certain that the content type header is always being
> sent?

Yes, as far as I can tell it is always included in the HTTP dump that
I get.  Besides, which content-type includes the HTTP response headers
in it?


I am not sure what you are asking there. As a result of an HTTP 
request to Apache, it will always send a series of headers before it 
sends content. I forget the exact specifics on this as I have not 
looked at the relevant RFC in quite a while. BTW, the relevant RFC 
for HTTP 1.1 is RFC2616


OK, after scanning through it pretty quickly, I have a suspicion what 
may be happening. When the HTTP server sends a response it sends a 
series of header lines including some details on the status of the 
request, a timestamp, and a variety of headers defining the content 
of the request. Each header line is terminated with a CRLF pair. The 
header section is then terminated with a blank line consisting of 
ONLY a CRLF pair. I suspect a blank line is getting to the browser 
before the end of the headers and definitely before the content type 
header. In such a case, the browser is likely to default to plain text.



> I know you sent a list of headers in your original post and it was there,
> but was that for a failed request or a successful one?

It was a failed request - the only reason I had a copy of the headers
was that I saw them in the browser window.


Which tends to support my theory above. If you saw them in the 
browser window, then the browser must have believed that the end of 
headers had already been sent and took everything beyond that to be 
plain text content.


This will require some more digging. If you have Firefox installed, 
you can use the LiveHeaders plugin to capture the request and 
response headers when you load the page. Or if you have a Linux or 
similar machine that supports wget, you can use it to do the same.



> Other than that, I am at a loss as to what might be happening.

Me too :-(  I wish I could reproduce this more frequently so that I
could file a bug or something


Well, we need a real good look at the HTTP transaction to determine that.

You may need to do some more digging beyond that to see where the 
problem is occuring.


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] Responding to ping

2008-09-17 Thread Dragon

Arnab Ganguly did speak thusly:

Hi All,
Is it possible that Apache server stops responding under heavy load, 
but it responds to ping? What would be the possible causes for this?
Remote client is getting connection refused when it tries to 
connect.But when the I ping the server from the client box it shows 
the server is alive.

Thanks
-A

 End original message. -

Yes, a machine can indeed respond to a ping (ICMP echo request) while 
another application is not responding.


Apache can get completely bogged down by a large number of requests 
but the ICMP mechanism is built into the TCP/IP stack in the OS and 
takes very little in the way of processor or time resources to 
implement. As far as I know, all modern OS platforms on which Apache 
runs are multitasking with a preemptive scheduler which means each 
application gets some share of the processor time on a periodic 
basis. So it is entirely possible that it will continue to work while 
Apache is overloaded.


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

2008-09-20 Thread Dragon

André Warnier did speak thusly:

You might not be aware that in non-US/UK 
versions of Windows, this will also be 
different, such as "Dokumente und Einstellunge", 
"Documentos y Parametros", and so on.
Also "Program Files" becomes variously 
"Programme", "Archivos de Programa", "Fichiers 
de Programmes", and "Application Data" becomes 
"Datos de Programa", "Anwendungsdaten" and so on.
I do not know where your classroom work takes 
places, nor if there is any concern about 
distributing these settings or instructions to a 
multi-lingual audience that might be using other 
that US/UK versions of Windows.  But if there 
is, you might want to take this into account, or it might well confuse some.


The localization issues should be handled by 
using the correct tokens in the installation 
script that represent the proper directories in 
the installation hierarchy. All of the current 
Windows installation tools (either Microsoft 
written or third party) have tools to properly 
handle the installation if these are used. The 
issue comes more so in documenting things in 
print than in installing them. I can only assume 
that the Apache developers have done the right 
thing so it gets installed where it should and there is no issue with this.


While some people may not like Microsoft's 
conventional file layout, it is well supported in 
the tools used to package distributions. Not to 
mention that most installation scripts I have 
seen give you the option of placing it in the 
default location or in a location you choose if you don't like the default.


The fact the MS uses a conventional MS way to do 
things, does not necessarily mean that everyone else has to blindly follow it.


No, it doesn't, but when the expectation of the 
majority of users is that certain things will be 
found in certain places, why should you surprise 
them? The principal of "least surprise" is a good one to follow.


I use Windows on my own machines both at home and 
for work, I EXPECT programs to be installed in 
the Program Files directory and not in the root 
directory or any non-standard location. I also 
work on a variety of other servers on other 
platforms and I generally leave things in their 
default locations to make support easier. The 
only times I don't do this is if I have a damn good reason to make changes.


Particularly open-source packages and 
particularly for such packages as Apache, where 
the audience almost by default is the world at large.


A moot point if the installation script in the 
distribution was properly set up. Again, I expect 
the developers publiching the Apache Windows 
distribution were savvy enough to do so.



There is a creeping tendency to do so however.


Let me ask you this... if you are running a 
distribution like Ubuntu or RHEL, are you going 
to follow their file hierarchy or are you going 
to decide it is all wrong and do it your own way?


Each OS has a standard for where things live, 
Microsoft is no different from any other OS 
vendor in that they too have a standard. Whether 
you like how they do it or not is all personal preference.


I am waiting impatiently for the Windows Apache 
version's "cute paperclip popup assistant" to show up.


Apache isn't a Microsoft product, this statement 
is just absurd and I think a bit insulting to the Apache developers.


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

2007-03-15 Thread Dragon

Hello all,

I am attempting to help a non-profit organization setup a new server 
and migrate over their old stuff. One of the things they want to use 
is a database application using Ruby on Rails.


This system is an up to date FC4 distribution running Plesk 8.1 
control panel, instead of the "standard" FastCGI module, they use one 
called mod_fcgid that is supposed to play better with Plesk. Plesk 
also says that enabling RoR is a simple matter of enabling FastCGI 
support, all I can say to that is it isn't as simple as they say. 
Just do a Google on "Plesk Ruby Rails" and you will see how much 
trouble people have gone through trying to get this to work in that 
environment (but I digress...)


I have been having a hell of a time attempting to get this to work 
and have come down to the point where I believe I have diagnosed the 
problem to be that both mod_fcgid and mod_cgi choke and exit giving 
an error that says "Premature end of script headers"


I have verified that Ruby and Rails are working using the test 
browser they provide, the application functions fine when I do that. 
When attempting to use Apache to serve the application via either 
FastCGI or regular CGI, it simply will not work. This is not only 
true of this Ruby-based application but also for any script or 
program I attempt to execute via FastCGI or regular CGI (Perl, 
binary, shell script, etc.).


I do get errors in my httpd error log when using FastCGI but I have 
no idea what they are really telling me. The underlying cause of the 
error is not given in the errors. Here is what I typically get when I 
try to access the script:


[Thu Mar 15 14:43:20 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959) 
started
[Thu Mar 15 14:43:21 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960) 
started
[Thu Mar 15 14:43:22 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963) 
started
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963) 
exit(communication error), terminated by calling exit(), return code: 120
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960) 
exit(server exited), terminated by calling exit(), return code: 120
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959) 
exit(server exited), terminated by calling exit(), return code: 120



If I use regular CGI, all I get is the premature end of script 
headers error without any further information.


I am at a loss on how to proceed from here.

If anyone can help me figure out how to configure this system to get 
CGI and FastCGI working, I would greatly appreciate it. I have been 
working on this for nearly a week and it is making me crazy.


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

2007-03-15 Thread Dragon

Mark Lavi wrote:

Caveat: I have no direct experience with Ruby, Plesk, or FastCGI.

I do think that by verifying that your example RoR app works via Apache
and then observing that the other database RoR app does not, you've
isolated the problem to the latter application!

"Premature end of script headers" is what I've seen whenever a PERL CGI
crashes or generates an error condition that doesn't let it output
anything (such as a syntax error). At that point, I try running the CGI
directly from the command line to partially simulate what Apache tries
to execute, e.g.: perl whateverproblem.cgi -- but this is not always
identical to what Apache encounters, it's just another step for
troubleshooting. I have no idea if you could do the same for Ruby and
your app.

Hope this helps,

 End original message. -

Actually no, you appear to have misread what I said in my original 
post. The application works with the web server bundled with Ruby 
which is simply for testing and not intended for production.


It does not work with Apache. Nothing using either FastCGI or regular 
CGI works. Period.


Everything, including scripts that run fine on other servers, simply 
fail. Everything fails with the Premature end of script headers errors.




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

2007-03-15 Thread Dragon

Mark Lavi wrote:

I see I probably replied without reading everything you've done, my
assertions may not be correct if you've not gotten anything to work
through Apache. You can try increasing the amount/level of error logging
in Apache.

 End original message. -

And how does one do this?

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

2007-03-15 Thread Dragon

Mark Lavi did speak thusly:

http://httpd.apache.org/docs/2.2/logs.html
specifically: http://httpd.apache.org/docs/2.2/mod/core.html#loglevel

 End original message. -

Thanks, I will give it a try and see if anything of interest surfaces.

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] Revisiting my FastCGI problem

2007-03-21 Thread Dragon
I originally posted here last week about a problem I am having with 
FastCGI under Apache.


After enabling debug log level and doing a few other experiments, I 
have come to the conclusion that something is blocking Apache from 
connecting to unix sockets. mod_fcgid attempts to create a socket (I 
surmise to communicate with apache...)  but it can't connect to it.


In desperation, I also loaded up Lighttpd to serve my application on 
another port and configured it to use uid apache and gid apache so I 
didn't have to go mess with directory and file permissions. It has 
the exact same problem.


This is on an FC4 system with Plesk control panel running on it.

Does anyone know if there is some way that access to these sockets 
can be restricted on a per-user basis?


If so, how is this configured (or more accurately, how do I disable 
such restriction)?



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] Revisiting my FastCGI problem

2007-03-21 Thread Dragon

Richard Lynch wrote:

I don't know much about this, but you may be running afoul of the SE
Linux settings in /etc/

 End original message. -

Yeah, I thought that might be the case but this is what is in 
/etc/selinux/config:


# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#   enforcing - SELinux security policy is enforced.
#   permissive - SELinux prints warnings instead of enforcing.
#   disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#   targeted - Only targeted network daemons are protected.
#   strict - Full SELinux protection.
SELINUXTYPE=targeted


From that, it looks like it should not even be loading selinux.

I also checked the kernel modules with modprobe to be sure and I 
don't see selinux in the output.



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] Revisiting my FastCGI problem

2007-03-21 Thread Dragon

Mark Lavi wrote:

I would recommend enabling logging of SELinux in order to confirm your
assumption rather than show us a configuration that may or may not be in
use - and may or may not be the answer for your hypothesis of the
problem.

SELinux logging and configuration, etc. are an OS based domain for
questions, you're straying outside of Apache at this point.

 End original message. -

I understand that selinux is not an Apache issue, but it is 
irrelevant to this discussion anyway as I am now certain that it is 
not a factor. After reading up on it, I used the getenforce command 
to check the state of selinux, it is disabled on this machine just 
like the config says it is and just to be sure, I also forced it off 
using setenforce 0 to disable it.


I am still stuck with the same problem and am no closer to a solution 
within Apache. The problem is with Apache and mod_fcgid trying to 
open and connect to a unix socket to communicate with each other, 
they simply can't do it. The socket gets created but the connect from 
mod_fcgid is refused which then causes it to end the script execution 
attempt and produces the premature end of script headers error.


For now, I do have a work around that I have already tested using 
lighttpd on an alternate port, this is OK for now as it is not a 
high-volume application or a heavily loaded server. However, I would 
eventually like to get it working as it should under Apache. Because 
this is on a Plesk-controlled machine and administered by some people 
who are rather unskilled in this area, I want it to run under the 
tools they have and know.


If anyone has any other ideas on what to look at next, I'm all ears.

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] Displaying wrong time

2007-03-22 Thread Dragon

Leah Newmark wrote:

Hi,

Ever since we changed the clocks here in America for DST, Apache is
showing the PHP date off by an hour.

I believe it's an Apache issue since 1)running the command date on the
server outputs correctly 2)running a PHP script through CLI outputs the
PHP date correctly 3)running the same PHP script on the web is an hour off.

I compared the php.ini files for CLI and Apache, and there is no difference.

I am not finding any timezone set anywhere on the Apache files (or PHP
globals for that matter) that would account for this problem.

All my searching reveals that Apache 1.3 which I am running should not
have time issues, provided the server time is correct -- which it is.

Stopping and restarting Apache has not solved the problem, either.

I'm stumped. Does anyone have any input?

Thank you!

 End original message. -

Perhaps I am grasping at straws here, but did you update your time 
zone definition files on your server?


These files are used by many programs to determine when DST is in effect.



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

2007-03-29 Thread Dragon

Rodman wrote:

Hello,

Have a question pertaining to using mod_ssl on one of my virtual 
sites.  I am running a web mail application in a directory on one of 
my sites and I was wondering if it would be possible to secure just 
a particular directory and everything under it.  For example, my 
site is <http://www.example.com>www.example.com but I am wanting to 
secure <http://www.example.com\mail>www.example.com\mail.  Can it be 
possible to just use SSL on that particular directory rather than 
securing an entire site.  The reason I am asking is that I am going 
to use a self signed certificate (not going to pay an outrageous 
price of $800+) and I.E. complains about a certificate not being 
signed by a root authority.  I only need a handful of users going to 
the "\mail" directory and I can have them import the certificate so 
that I.E. doesn't complain each time one of them tries to access 
that directory.  The public accessing 
<http://www.example.com>www.example.com doesn't need SSL and if I 
had to turn it on for the whole site, I.E. might scare them away 
when it says the certificate can't be verified...


Thanks guys!

Rodman

 End original message. -

Yes, you can secure any portion of a site, there is no need to do the 
whole thing.


Also, there are affordable certificates available. I paid $35 for one 
from GoDaddy for a web ticketing system I did for a non-profit event. 
VeriSign and their ridiculously inflated pricing is not the only option.


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

2007-03-30 Thread Dragon

Kyle Vorster wrote:

Hi Guys,

I am trying to tweak a apache server installed with cPanel.

What I am trying to do is set server-wide 'custom' error pages, but 
when a user uploads his own set of 'custom' error pages it should 
over-right the server-wide pages and display the users pages.


so looking at something like this

if (is_file(/home/$user/public_html/404.shtml))
{
 display /home/$user/public_html/404.shtml;
} else {
 display /usr/local/apache/htaccess/404.shtml;
}

Any one know how this could be done, or direct me to the right documents.

 End original message. -

This is getting a bit out of Apache territory and really ought to be 
asked on a cPanel forum but I will take a shot at it...


I know this is possible on Plesk (another control panel similar to 
cPanel). The way they do it is to have separate configuration files 
to handle each of the virtual host domains. You can pretty much do 
anything you want in those domain specific files.


It would surprise me if cPanel doesn't support a similar scheme. Dig 
into your cPanel documentation and see what they have to say about 
virtual host configuration.


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

2007-03-30 Thread Dragon

Dragon wrote:

Kyle Vorster wrote:

Hi Guys,

I am trying to tweak a apache server installed with cPanel.

What I am trying to do is set server-wide 'custom' error pages, but 
when a user uploads his own set of 'custom' error pages it should 
over-right the server-wide pages and display the users pages.


so looking at something like this

if (is_file(/home/$user/public_html/404.shtml))
{
 display /home/$user/public_html/404.shtml;
} else {
 display /usr/local/apache/htaccess/404.shtml;
}

Any one know how this could be done, or direct me to the right documents.

 End original message. -

Now I am no Apache guru by any means so I may be a bit off-base here...
Settings redefined later in teh configuration override those set 
earlier. You would define the default server pages first (which is 
probably already done in your httpd.conf file). Then you would see if 
the file you are looking for exists in each user directory. Using the 
DirectoryMatch directive and a regular expression to match each one 
keeps you from having to configure this for every user.


If you wanted to get really sophisticated about it, you could make 
the regular expression a lot more complex to match a variety of 
potential patterns and use a FilesMatch directive with a regular 
expression to allow alternative file extensions or filenames for the 
error documents too.


Just doing a simple version without all the extra stuff, I think you 
could probably do it with something like this (if somebody else has a 
better idea, feel free to hack my stuff apart):



# Add an ErrorDocument directive for each error you wish to support
# Use default to get Apache's default error page or specify a server-wide
# error document for each error type

ErrorDocument 404 default
ErrorDocument 500 default

# Now override the defined error page for each user directory if
# there is a file defined with a matching name. You will have to
# enforce the file naming convention for this to work and the error
# documents must live in the root of each of the user directories


# Add a  section for each error type

ErrorDocument 404 /404.shtml


ErrorDocument 500 /500.shtml

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 RewriteRule Help : Accepting Variable Number Of Arguments

2007-03-31 Thread Dragon

Kristopher Yates did speak thusly:

Hello,

Here is an example URL I'm trying to create a RewriteRule for:

index.php?section=help&page=test&mode=IN&item=4&action=edit

I have a rule that works when the request URL contains the 
appropriate number of arguments but does not work when there are 
fewer arguments than the Rule expects.  I thought by creating 
multiple (similar) rules would resolve but no luck.  Here is what I 
have that works as long as I pass all required arguments:


RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)$ 
/index.php?section=$1&page=$2&mode=$3&item=$4&action=$5


The above rule correctly passes 
http://domain.com/help/test/IN/4/edit to my script as 
/index.php?section=help&page=test&mode=IN&item=4&action=edit .


I tried creating 5 rules so that, if Apache saw fewer arguments, it 
would go down to the next rule but that didnt work like I thought it would:


RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)$ 
/index.php?section=$1&page=$2&mode=$3&item=$4&action=$5
RewriteRule ^(.*)/(.*)/(.*)/(.*)$ 
/index.php?section=$1&page=$2&mode=$3&item=$4

RewriteRule ^(.*)/(.*)/(.*)$ /index.php?section=$1&page=$2&mode=$3
RewriteRule ^(.*)/(.*)$ /index.php?section=$1&page=$2
RewriteRule ^(.*)$ /index.php?section=$1

How do I write the rule(s) so that, if fewer arguments are passed, 
it will still work?


Any help would be greatly appreciated.

 End original message. -

OK, I will take a shot at this... though I am not very experienced 
with mod_rewrite, I do know fair amount about regular expressions.


mod_rewrite documentation is here:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

First off, from the documentation of mod_rewrite, the rules are 
applied in order as defined so they should fall through from one to 
the next if a higher one does not apply. So it seems like your scheme 
should work, why it doesn't is unknown to me. I am not sure about 
this but you might want to try reversing the order of your tests, do 
the smallest number of arguments first.


I think you probably ought to also use the last flag on each rule too 
so it does not skip to the next if it matches. (Now that I think 
about it, this may well be the problem here).


One thing you probably ought to account for is that you are making a 
big assumption in your RE here. That assumption is that there will 
never be a trailing slash on any of the URLs, this may not be a valid 
assumption. To fix that you need to make a change to each RE prior to 
the end of line anchor to indicate either 0 or 1 slashes may exist. 
For example:


RewriteRule ^(.*)/?$ /index.php?section=$1

This rule would match both of these:
http://domain.com/help
http://domain.com/help/

So here is how I suggest you try the rules:

RewriteRule ^(.*)/?$ /index.php?section=$1 [L]
RewriteRule ^(.*)/(.*)/?$ /index.php?section=$1&page=$2 [L]
RewriteRule ^(.*)/(.*)/(.*)/?$ /index.php?section=$1&page=$2&mode=$3 [L]
RewriteRule ^(.*)/(.*)/(.*)/(.*)/?$ 
/index.php?section=$1&page=$2&mode=$3&item=$4 [L]
RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/?$ 
/index.php?section=$1&page=$2&mode=$3&item=$4&action=$5 [L]



Let me know if this helps. I am curious to see if I was on the right track.


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] Meta tags: keywords and description

2007-04-03 Thread Dragon

Curtis Vaughan wrote:

It is my understanding that the metatag "Keywords" is not really used by
search engine crawlers any more, and that description is the better to
use. Could someone confirm that?

Also, I wondering about the syntax for these. For example, I am looking at
the description for a law firm. It has:

"General business law, commercial transactions, real estate, contracts,
new entity formation.  Wills, trusts & estate planning.  Immigration:
Employer Petitions, Business Immigration, Family Petitions, Permanent
Residency & Naturalizations."

In the first place I thought periods were not really used. Also, it was my
understand that you should keep it simple. This description seems rather
complicated. Not to mention misspellings.

 End original message. -

I'm not trying to be rude, but I don't believe that this is the 
appropriate forum for this as your questions have nothing to do with 
the Apache web server. I suggest finding ones dealing with web design 
and search engines to ask such questions. Ironically, searching the 
web is likely to turn up far more useable info for you than you are 
likely to get here.


I would also suggest starting at http://www.w3c.org/ for any 
questions regarding page markup syntax. None of which is directly 
related to the Apache web server.




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] Request For PHP Scripts.

2007-04-16 Thread Dragon

Steve R Burrus wrote:
Well once I [finally] got the integration between php and the apache 
server going right/correctly I would like to request of the group 
that I be sent some usable php scripts. I would really appreciate it 
if someone could do this for me!

 End original message. -

There are people who can do this for you. They are called consultants 
or contractors and they generally ask for money in return for their services.


Either that, or you can go to one of the many free scripting sites 
out there and look for what you need.


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] Re: apostrophe character reference?

2007-04-18 Thread Dragon

Robert T Wyatt wrote:

I've received no responses to this inquiry and am a little surprised
that no one here has any idea of what the problem may be. Perhaps spam
filters picked it up?

Any help is appreciated.

 End original message. -

I saw the post and had nothing to contribute, thus I did not reply. 
It could simply be that the same is true of other list members.


Or it could be that the person who knows the answer has not checked 
the list posts yet. I should probably also point out that the people 
who frequent lists for open source software are very often doing so 
on their own time and very often such lists take a low priority for many.


Posting a question to a list like this is a crap shoot. Sometimes you 
win and sometimes you don't.


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] [CONFIG] make httpd serve .java files as text

2007-04-19 Thread Dragon

deufrai wrote:


hi there.

I'm serving a few java utilities with an apache 2.2.3 server.
I provide .jar files along with the sources.

Tried with lots of web browsers, but I cannot simply view the sources as
text inside web browsers. I'm always asked to download the file or pick an
app to open it.

Server is hosted on a debian etch stable distro and /etc/mime.types shows a
line saying :
text/x-java java

Mime module is also enabled.

What did I miss ?

Thanx in advance

 End original message. -

The browser is using the mime type to determine what to do with the 
file. It sees text/x-java and does not know what to do with that type.


Set the mime type of the source files to text/plain, that will 
display the source files as text.


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

2007-04-19 Thread Dragon

Richard Dunne wrote:
I was able to view php webpages in localhost with jakarta tomcat, 
but I had a problem with executing php scripts using ajax.  Now I am 
using apache instead, but instead of seeing the webpage, I am seeing 
the code.  does anyone have any suggstions?



 End original message. -

This is not really an Apache issue except that Apache has to be made 
aware of PHP. It needs to know how to handle PHP and it needs to know 
what file extensions PHP scripts use so it can process them properly.


The specifics on setting this up are available in the install 
documentation for PHP available at http://www.php.net/


Alternatively, you can use mod_php. Google mod_php to find out how to use it.

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] SSI Apache 2.2.3

2007-04-26 Thread Dragon

Chakrapani, Praveen Kumar Bellary \(Contractor\) wrote:

Hi,

Does anyone have apache 2.2.3 configured for SSI, if so please provide
me with the configuration that's required to make SSI work also please
let me know if there is any specific module required to be
loaded/compiled for SSI to work.

 End original message. -

This is a very basic task and is adequately covered in the Apache 
documentation on the Apache web site.


http://httpd.apache.org/docs/2.2/howto/ssi.html

The documentation on the web site is the first place you should go 
well before posting to this list.


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] date when file was last modified

2007-04-27 Thread Dragon

Richard Dunne wrote:

Figured out the problem, silly, silly, silly me.  Don't ask!

 End original message. -

Actually, after the number of times you have posted to the list about 
this, I think it would be rude to not tell us what the issue was.


So what was it?

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] date when file was last modified

2007-04-27 Thread Dragon

Richard Dunne wrote:
Hanging my head in shame, I was editing the file copy at 
c:\Project\file.php, when I should of course have been editing

c:\Program Files\Apache Group\Apache2\htdocs\Project\file.php
If you can't laugh at yourself for making a silly mistake, even one 
as silly as this!

 End original message. -

Fair enough, we all make mistakes, even silly ones.

But just for future reference, when posting to a list like this, 
having as much information as possible about what you are doing, what 
the error was and anything else that is relevant will make things a 
lot easier on everyone.


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

2007-05-01 Thread Dragon

Grant Peel wrote:

Hi all,

I have added mod_gzip to my apache config a few weeks back.

Yesterday, the server pretty much locked up due to no disk space 
left on the root filesystem.


It appears that with mod_gzip turned on, hundreds of *.wrk files are 
left in the /tmp dir, eventually filling it up.


Does anyone know of a fix for this?


 End original message. -

I don't know anything about mod_gzip but I do have one suggestion 
that will work.


A brute force approach would be to use a cron job to delete the 
temporary files. A small shell script or Perl script that checks to 
see if the files are older than a certain time and deletes those that 
are would be pretty easy to write.


Having said that, it would be nice if that module cleaned up after 
itself when it is done with a file.


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

2007-05-03 Thread Dragon

Bashiro wrote:

I want to restart Apache for the same reason why people want to 
restart any other program.

For freeing memory ? for dumping memory ? for dumping log file?
for releasing overload, for stability (in order to release hanging files) etc

 End original message. -

Considering that Apache runs for extended periods on linux and other 
similar OS platforms without need for periodic restarts, I can't 
imagine that it would need it on Windows either. In fact, I ran an 
instance of an older Apache version (I don't recall which one) on a 
Windows 2000 machine for months at a time and never had a problem 
with it. The only times that Apache installation was ever restarted 
were when the machine was rebooted after software updates or installs.


If Apache had any major memory leaks or other problems that caused a 
need to be restarted, I can assure you it would not be used as a 
production server by a large part of the ISP industry.




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] Apache 2.2 security concern

2007-05-12 Thread Dragon

Sam Lavitt did speak thusly:

Based on my research, suexec only works for SSI and CGI, so it would 
be pointless for providing security with php, and doing 
mass-hosting, php is something in pretty common use.  And I am 
sorry, I mis-spoke, the mpm was mpm_perchild for apache 2.0, which 
apparently is abandoned and broken. (see 
http://httpd.apache.org/docs/2.0/mod/perchild.html )  I lack the 
programing skills that would be needed to repair it unfortunately.


So is there anything that is functional, maintained, and would allow 
me to provide the security that would be needed, ideally apache 2.2, 
if not, at least 2.0?  Or any other webserver which can provide the 
security needed?

 End original message. -

PHP provides for this directly.

There is a restrict_base_dir setting that can be applied to each 
virtual host that prevents users from accessing anything outside of 
the specified directory tree.


Go to http://www.php.net/ and check the docs for more info.

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] Apache 2.2 security concern

2007-05-12 Thread Dragon

Jaqui Greenlees did speak thusly:


Yes, as Nick mentioned, suexec and user/group
permissions are the common method for securing the
site(s) from this.
another option, slightly more hardware intensive is
the have each hosted site running as a separate
instance of apache chrooted so they do not have any
access to the rst of the servers file system.

 End original message. -

That approach is absolutely unnecessary and overly complicated.

As I said in my previous reply to this thread, PHP provides such a 
mechanism that is very easy to use.


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

2007-05-16 Thread Dragon
I need to install mod_proxy_html for an application server I am 
trying to get running. I found the source file for it at 
http://apache.webthing.com/mod_proxy_html/ but am having no luck 
getting it to compile successfully (missing headers, etc.)


The system I am working on is a Plesk 8.1 controlled FC4 system 
running apache 2.0.54 that was installed from an RPM. Unfortunately, 
it does not appear that a binary of this module is available through 
the RPM repository I have access to.


So my question is how do I go about compiling/building this? Is there 
a Makefile somewhere? Do I need to get the Apache source to get all 
of the needed header files?


Any help would be greatly appreciated.


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

2007-05-16 Thread Dragon

Dragon did speak thusly:
I need to install mod_proxy_html for an application server I am 
trying to get running. I found the source file for it at 
http://apache.webthing.com/mod_proxy_html/ but am having no luck 
getting it to compile successfully (missing headers, etc.)


The system I am working on is a Plesk 8.1 controlled FC4 system 
running apache 2.0.54 that was installed from an RPM. Unfortunately, 
it does not appear that a binary of this module is available through 
the RPM repository I have access to.


So my question is how do I go about compiling/building this? Is 
there a Makefile somewhere? Do I need to get the Apache source to 
get all of the needed header files?


Any help would be greatly appreciated.

 End original message. -

Never mind folks, I figured it out myself and have it working 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] A reverse proxy question

2007-05-22 Thread Dragon
Before asking my question, I need to explain a little about what I am 
trying to do.


I have a reverse proxy set up in Apache 2.0.54 using the instructions 
detailed in http://www.apachetutor.org/admin/reverseproxies


It works great for the most part but I have one little thing that 
causes me some problems in the Rails application I am proxying. The 
problem revolves around some internal redirects the application does 
that I am currently "fixing" by hard coding the URL as seen from the 
outside world into the application where it does these page 
redirects. This is not an ideal solution as it breaks things if I 
access the application directly instead of through the proxy.


What I want to be able to do is to inform the application that it is 
being accessed through the proxy so it can programmatically determine 
the correct redirect URL regardless of how it is being accessed. 
Essentially what I want to do is somehow pass the actual request URL 
through the proxy to the application so it can dynamically fix the 
URL to access the correct page.


So my question is this, is there some (easy?) way through either HTTP 
headers or some other mechanism that I can inform the application 
that it is being accessed through the proxy?


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] A reverse proxy question

2007-05-22 Thread Dragon

Joshua Slive wrote:


First question: Why aren't you just letting ProxyPassReverse do its
job? It should be able to handle rewriting of redirects.


That is the crux of the problem. I am not sure if I can explain this 
correctly but it appears that the application is doing something 
internally that hijacks the normal HTTP redirect flow so the normal 
mechanism works fine for almost everything except a few cases. I 
really don't know how to capture the actual headers so I can tell you 
exactly what is happening here when it does not work.


On the application side, I can get to the method calls that force the 
redirects and add the correct path to them. I have not gotten into 
the internals of these methods and don't want to go rewriting 
libraries to "fix" the problem. This is a special case which has come 
about because I can't get Ruby and Rails to serve properly via Apache 
directly on a Plesk based machine. (I posted about that a couple of 
months ago and never found a resolution to the premature end of 
script headers problems I was seeing). I ended up having to run an 
instance of lighttpd on another port and then proxy to it to make the 
application work at all.


So because I can't get the application running directly under Apache, 
I am forced to kludge together something that works but has a few 
quirks that need a bit of help to get around.



Anyway, if you want the origin server to know that stuff went through
the proxy, there are lots of clues in the request headers by default.
Take a look at X-Forwarded-For, etc.

Or you can always add your own header:
RequestHeader Set X-Went-Through-Proxy Yes


OK, will do. Now I have to figure out how to retrieve those headers 
in a Ruby application.


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] fully qualified domain name - Problem

2007-05-22 Thread Dragon

Tim Johnson did speak thusly:

When I restart apache2 on ubuntu 7.04 (amd_64) with the following command:
/etc/init.d/apache2 restart
I get the following message:
"""
Could not reliably determine the server's fully qualified domain name, using
127.0.1.1 for ServerName
"""
What is the solution?


You need to have a ServerName directive in your configuration.

If you do not, and you don't have your DNS configured to allow a 
reverse lookup on the IP address, you will get exactly what you see.



Is there documentation on this subject?


Yes, on the Apache web site. The documentation there is quite good, 
actually, I will say that it is outstanding for an open source 
project such as Apache.


All configuration directives for the core functions and modules are 
documented there. Third party modules will be documented elsewhere 
(sometimes quite minimally), you'll have to search for them.


Dragon

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


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



Re: [EMAIL PROTECTED] How to define multiple paths for ProxyPass and ProxyPassReverse?

2007-06-05 Thread Dragon

Qingshan Xie wrote:

Hi! all,

   In Apache/2.0.59, if I need to specify multiple
paths for  "ProxyPass and ProxyPassReverse", for
example, I need to proxy 3 paths /A, /B, /C to
http://www.foo.com
do I need to configure them as,
..
ProxyPass: /A http://www.foo.com
ProxyPassReverse: /A http://www.foo.com
ProxyPass: /B http://www.foo.com
ProxyPassReverse: /B http://www.foo.com
ProxyPass: /C http://www.foo.com
ProxyPassReverse: /C http://www.foo.com
.. ?

If a hundred paths need to be defined, any simple way?

 End original message. -

You can use a rewrite rule to handle the forward proxy using the [P] 
flag to proxy the request. However, I do not know how to do this for 
the reverse proxy using mod_rewrite.


There is a small discussion on how to do this in the Apache 
documentation on mod_rewrite on the Apache web site.



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] Apache, Windows XP, and mapped drives

2007-06-07 Thread Dragon

William A. Rowe, Jr. wrote:

Jim Owens wrote:
> I just set up Apache 2.2.4 on a Windows XP system (from the current
> .msi), and I thought I’d share my findings about using mapped network
> drives.
>
> If anyone else is trying to deal with this, one workaround is to turn
> the Apache service off and run httpd.exe in a command-prompt window
> instead. That worked for me. I’ve added the 
httpd.exe to my startup folder.


It may also work if you change the dependencies of the service to wait to
start until windows networking is started.  This may simply be a race
condition where networking share components don't finish starting before
apache gets that far.

 End original message. -

If what William states is in fact what is going 
on, you could probably still use Apache as a 
service if you start it manually instead of letting it start automatically.


Change the service properties from automatic to 
manual and then start it from the service window 
after you are sure the network is functioning.



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] need to alter FROM address when sending with PHP forms

2007-06-08 Thread Dragon

Dylan Bouterse wrote:

My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4.
Our PHP programmer has developed quite a few PHP email forms and each
time an email is sent, the FROM: address is
[EMAIL PROTECTED] I don't know if this is a PHP
problem or apache problem (or even a sendmail problem for that matter)
so I am asking both lists for help. I have tried lookup up apache docs
and PHP docs to alter the FROM: address to no avail. No matter what I
and my programmer try in PHP or apache the from address stays coming
from the user apache runs as @webserver.domain.com (obviously I mean
the FQDN of the server). We would like to be able to alter the FROM:
address per form as we should be able to do in PHP. If there is an
apache fix for this any help would be appreciated. If this is
definitely NOT an apache problem, please let me know and I will move
on from there. Thank you.

 End original message. -

If your programmer is using the PHP e-mail library it is a matter of 
sending the right optional arguments to the mail() function.


You can pass that function a set of options including the desired 
FROM: header and any custom header you might wish to include. This is 
documented in the PHP help file on that function.


Specifically:


Example 954. Sending mail with extra headers.

The addition of basic headers, telling the MUA the From and Reply-To 
addresses:





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] Deny CONNECT & GET http requests

2007-06-16 Thread Dragon
 want?
Need expert review.

 End original message. -

Actually, I think you need to fix the underlying problem. This looks 
to me like there is (or was) an open proxy on the machine that is 
being used by third parties to anonymize their web access. Open 
proxies are BAD, almost as bad as open mail relays. A proxy should 
point to a specific resource and allow access only to that resource.


I would strongly suggest that you check this first before making any 
other changes. The GET request is not something you want to disable 
blindly as that is how a browser retrieves a page (or image, or file 
etc.) in the first place.


If you have the ProxyRequests On directive followed by a proxy block 
starting with  and you have not restricted access in that 
block, you have an open proxy.


Once you close the hole on your proxy (if there is one), then you 
will only see 404 responses for requests that reference URLs outside 
of your server domain. This will gradually taper off over a period of 
time as the people trying to use your box to access pages not on your 
server figure out that the gate is closed. That can take a long time 
to happen but at least you will have taken the first step to 
alleviating the problem.


As far as how you are trying to block these things... I don't think 
that would work, but I can't say for sure as I only dabble in this on the side.


And if anyone is wondering... I got bit by this and accidentally 
configured an open proxy because I really didn't understand exactly 
what I was doing at the time and didn't read everything I needed to 
read before I started mucking about with it. Moral of the story here 
is read the fine manual and understand it before you end up like me 
with a server that was overloaded to the breaking point by 
unscrupulous people.


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] .dll files versus .so files in modules in Windows

2007-06-21 Thread Dragon

Don Denton wrote:

SETUP: I am running Windows XP home SP2.  I downloaded Apache 2.0.59 and
then 2.2.4 (both using the windows32 bin with msi) to try to solve this
problem but it exists in both versions.

PROBLEM: In trying to enable the modules (specifically one dealing with
enabling PHP) I found that, instead of referring to ".dll" files, the
configuration file referred to ".so" files.  I am new to this and from what
I can tell, those files should be ".dll".  What should I do here?  I have
tried to ignore the apparent problem, but as a result I could not enable
PHP.  There seems to be no documentation on this, or after 4 hours of
searching, my brain was too fried to see it.

 End original message. -

Not trying to be rude here, but this is the wrong place to be asking 
this. It is a PHP issue not an Apache issue. It's also pretty well 
covered in the install documentation over on http://www.php.net/




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] .dll files versus .so files in modules in Windows

2007-06-21 Thread Dragon

Don Denton wrote:
Thanks Charles.  It still isn't working, but I am going to go back 
and double check all my paths.  And in response to Dragon, If I need 
any other help, I'll be sure to go to the PHP mail lists, but I 
thought that this was a problem with apache sending out the wrong 
file types or something along those lines.



 End original message. -

No, it is a difference between Linux/Unix type OS installs and WIndows.

A .so file is the functional equivalent of a DLL, a run-time 
loadable, dynamically linked code module.


However, as I said, this is a PHP issue and not an Apache issue. 
Setting up PHP on Windows and many other platforms is also very well 
documented in their install documentation on the PHP web site.



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

2007-07-20 Thread Dragon

Jeffery Poblocki wrote:

Luis
www.hordebusters.net also points to my computer.  I registered my 
domain and had it pointed to my computer using zoneedit and a 
program called direct update.  So either www.hordebusters.net or 
localhostboth point to my computer.

 End original message. -

No, www.hordebusters.net doesn't point to your computer.

When I put that URL in my browser, it goes to a GoDaddy parked domain 
site which says that GoDaddy is your registrar and they don't have a 
valid DNS record for that domain.


You need to properly set up DNS and let your registrar know what DNS 
server(s) you are using. Once you do that, then the people here might 
be able to help you with Apache specific issues.


However, DNS configuration is beyond the scope of this list and you 
will need to go do that research on your own, there are plenty of 
resources out there explaining how to do it that are accessible via 
your favorite search engine. Alternatively, call GoDaddy tech support 
and get them to walk you through it. I have no idea what these 
"zoneedit" and "direct update" programs are doing for you but they 
are not doing what you think they are.


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] How in the name of LINUX do u set apache2.2 to run as user www-data

2007-07-25 Thread Dragon

Demetri T. wrote:

thats already set by default when i installed apache(which is 
www-data).  I think i am having an issue either with file/directory 
permissions and/or on how Apache is starting up; it just stays 
running as root instead switching over to www-data (the user/group 
set when installed).


I am having a hard time finding the requirements for apache to run 
as another user, would you or anyone know. i have checked the apache 
docs to no avail, and still searching the net.

 End original message. -

I am sure somebody will correct me if I am wrong but IIRC, invoking 
httpd directly results in it continuing to run as the user that invoked it.


As stated in the manpage for httpd:

   httpd is the Apache HyperText Transfer Protocol (HTTP) server 
program. It is designed to be run as a standalone
   daemon process. When used like this it will create a pool of 
child processes or threads to handle requests.


   In general, httpd should not be invoked directly, but rather 
should be invoked via apachectl on Unix-based sys-
   tems or as a service on Windows NT, 2000 and XP and as a 
console application on Windows 9x and ME.




How are you starting Apache?

Are you using the startup script apachectl or are you starting it directly?


Most *nix type OS distributions also have a startup script that is 
run at system boot to invoke httpd which generally does some house 
keeping stuff and then invokes apachectl. You may have to use a 
utility like checkcfg on Red Hat systems or your system's equivalent 
to enable the startup on boot.


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] How in the name of LINUX do u set apache2.2 to run as user www-data

2007-07-25 Thread Dragon

Joshua Slive wrote:

On 7/25/07, Dragon <[EMAIL PROTECTED]> wrote:



I am sure somebody will correct me if I am wrong but IIRC, invoking
httpd directly results in it continuing to run as the user that invoked it.


Consider yourself corrected ;-)

httpd always switches users for child processes when started as root.

 End original message. -

Hey, we learn something new every day. :-)

Thanks for the clarification.

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] Directory mapping and logic inquiry

2007-07-30 Thread Dragon

Steve Finkelstein wrote:

Hi all,

This is more of a conceptual question than actual syntax or the like.

I'm currently revising an application which should contain one 
documentroot for each user. The catch is, the application should 
connect to a user specific backend database based on who's logging in.


My thoughts are the following:

URL name will be something 
like:  http://application.example.com/user (One DocumentRoot and the 
application's config file, config.php for argument sake, will reside here.)


Would my best bet be to use mod_env and SetEnv to grab the /(user) 
portion of the URL and then stick to my script specific engine to 
direct them to the user specific config file, based somewhere else 
on the filesystem? (At this point, it's not Apache's responsibility, 
it's at the application layer.)


Also, how about handling for URLs where a /user does not exist. Such 
as http://application.example.com/joebob (user joebob doesn't exist, 
I wish to redirect them), I'm assuming that's also best to do from 
an application level?

 End original message. -

You could do all of this (and a lot more) through a Rails application 
and the dynamic routing scheme that Rails uses. While a typical Rails 
app is tied to a single database, there is no reason why you can't 
connect to multiple database instances if they all share a common 
structure. If you went this way, I would suggest using Apache as a 
proxy or load balancer only and actually serving the Rails 
application via Lighttpd or Mongrel.


I highly recommend looking into it. A few months ago, I was convinced 
the hype over this framework was just that but I have to say that 
after having learned it and begun using it on a non-trivial project, 
it is a very powerful environment with a lot of good features.


The downside is having to learn a new language but it isn't a hard 
one to learn.




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

2007-08-03 Thread Dragon

Brian Weed wrote:

I'm using Apache v2.2.4 (on Windows Server 2003) and
I'm trying to use both SSPI and Basic Authentication
together so that both Domain and non-domain users can
log in to my Trac Wiki site.

Withi this config:



  # Domain Login

  AuthName "my domain"

  AuthType SSPI
  SSPIAuth On
  SSPIAuthoritative Off
  SSPIDomain MYDOMAIN
  SSPIOfferBasic On
  SSPIOfferSSPI Off
  SSPIOmitDomain On
  SSPIPerRequestAuth On

 # Non-domain login
  AuthType Basic
  AuthBasicAuthoritative Off
  AuthUserFile D:/wikis/trac.htpasswd

  Require valid-user



It only allows Domain users to log in.  Its not
falling back to Basic via AuthUserFile.
If I turn off SSPI, then it allows Basic Auth (but
obviously not Domain login).

Searching the web, I've found a few people with
similar problems, but no real solution:

http://svn.haxx.se/users/archive-2006-09/1384.shtml
and
http://www.svnforum.org/2017/viewtopic.php?p=11517

The error I get in the error.log is: "...Logon
failure: unknown user name or bad password.  : user
MYDOMAIN\\nondomainuser: authentication failure for
"/cgi-bin/trac.cgi/foo/login"

So, it seems as though it's always prepending the
domain, even when falling back to Basic, or its not
falling back at all.

Is there some other module I have to install to
support falling back?
Any ideas as to what else I may be doing wrong?


 End original message. -

Just a thought... (caveat being I have not messed with anything 
beyond basic authentication).


What about having two different virtual hosts serving as entry points 
to this application which both point to the same application directory?


I think by doing that you can have one of the authentication methods 
associated with one virtual host and the other with the second virtual host.


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] Apache 2.2.4 self-signed SSL problem with openssl 0.9.8e on Solaris 10

2007-08-09 Thread Dragon

S.A. Birl wrote:

Greetings all:

I recently upgraded my server from Solaris 9 to Solaris 10.
I restored my self-signed CRT and privkey.pem from backup,
and restored all of my Apache files (minus the binaries) from
backup too.  Re-compiled httpd (just in case) and started it up.

Apache asked for the passphrase and accepted it, but my web browsers
wont connect to it.  SeaMonkey says "Data Transfer Interrupted"

https://concept.temple.edu/

Generating a new CSR and CRT with openssl 0.9.8e and tried again.
Same result.

Nothing in the error log; nothing in the access log, but lsof says
httpd is listening on 443.

Im baffled.  What could I be over-looking?


Thanks
 Birl

 End original message. -

The site came up in my browser (IE7) but showed a certificate error. 
The error is that the certificate is not signed by a trusted authority.


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] About the setting of the Security Console MySQL & XAMPP Directory Protection

2007-08-09 Thread Dragon

On Thu, August 9, 2007 16:27, Mar Pearly wrote:
>
> Hello,how are you all doing?
>
> well I am new here and i'm trying to set the Security Console MySQL &
> XAMPP Directory Protection through the url .
>
> My question might sound to you foolish but please forgive me...
>
> In the MySQL Section, 2 radio button options appear for the  PHPMyAdmin
> Authentification .I should check a specific button-i mean it is for
> everybody the same option and if yes which option ?   cookie or http?And
> what each option serves?
>
> And In the Security Risk :Safe Plain password in textfile checkbox :means
> that if i check the box my password will be saved in plain text in the
> according file ?
>
> As far as the Xampp Directory Protection is concerned in the field
> username i must enter root -so that it is in accordance with the MySQL
> Section?Or I should use another different?
>
>
> Thanks a lot in advance and sorry for these questions but I really don't
> know what to do...
>

Absolutely none of this has anything to do with the Apache web server so
it is highly doubtful that anyone here is in a position to help you.

You need to find documentation and/or support lists appropriate to your
problem, in your case, it looks like lists for MySQL, PHPMyAdmin and XAMPP
are what you need to go look for.

None of which you are going to find here.

-- 
~~~
  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] mod_headers mapping problem

2007-08-10 Thread Dragon

Jeff Murch wrote:


I am trying to map the following in my httpd.conf (for a reverse proxy):

header unset "Content-Type: text/html;charset=utf-8"
header add Content-Type "Content-Type: text/html;charset=iso-8859-1"

As you can see I want to change the content type so that some of the
characters render correctly. But the unset won't get rid of the old
Content-Type header and the add won't add the new one.  Can anyone figure
out what I am missing here? I have placed both directives at the very end of
my conf as well as other locations and it made no difference.


 End original message. -

I think your syntax is wonky. I think you want:

Header unset Content-Type
Header add Content-Type "text/html;charset=iso-8859-1"


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] Rotate logs for compression but keep them forever

2007-08-10 Thread Dragon

Richard Edward Horner wrote:

Hi,

I'm sorry this is really a logrotate question but I don't think there
is a logrotate mailing list :) Besides, this is for apache logs and I
bet someone here knows the answer!

I'm running a very high volume website and I'd like to rotate the logs
daily so that I can compress them (.bz2) but all logrotate
configurations I've seen only keep so many old logs. I'd like to keep
the old logs forever. Afterall, I managed to compress 14.5GB of logs
down to 555MB with bzip2.

Is there a simple way to do this? I know if I set rotate to 0 that's
going to keep 0 old logs. What if I just omit the rotate directive in
/etc/logrotate.d/apache2 altogether? Any other ideas? I'd rather not
just set rotate to a really huge number but I will if it comes down to
it.

I'm running an up to date Debian Etch system with apache 2.2.3-4 and
logrotate 3.7.1-3.

 End original message. -

Think outside of Apache.

Write a script in the language of your choice to do the log 
compression and move the log files to an archive directory of your choice.


Run that script as a cron job that happens shortly after the logs are rotated.

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] OpenBSD 4.1 CGI issues

2007-08-23 Thread Dragon

Israel Brewster wrote:

First off, I apologize for asking a question that I know you get a
lot, but I have just spent the last hour and a half beating my head
against the wall and searching the internet trying to find a solution
with no luck.

Short version: I have an existing OpenBSD 4.0 box on which Apache
(version 1.3.29) is working properly, including execution of CGI
scripts. I am trying to move to a new machine with OpenBSD 4.1, so I
started with a fresh OpenBSD 4.1 install, which comes with the same
version of Apache as 4.0, and copied the httpd.conf file over from my
old machine. After starting the web server, however, I found that it
could not run any CGI scripts- always just giving me the following
error:

[Thu Aug 23 08:45:40 2007] [error] [client 127.0.0.1] Premature end
of script headers: /cgi-bin/test-cgi

The details: Aside from being OpenBSD 4.1, the new box is set up the
same as the old one. I have checked and double checked the
permissions on both the cgi files, including the test cgi included
with the install, as well as the CGI folder. The test-cgi, as well as
the printenv both run fine from a terminal window. I tried reverting
to the factory default httpd.conf, with no luck. The permissions on
the contents of the cgi-bin folder are as follows:

ls -l /var/www/cgi-bin/
total 212
--  1 root  bin 99072 Mar 10 16:41 bgplg
drwxr-xr-x  2 root  daemon512 Aug 23 07:59 nagios
-rwxrwxrwx  1 root  bin   268 Mar 10 16:32 printenv
-rwxrwxrwx  1 root  bin   757 Mar 10 16:32 test-cgi

the cgi-bin folder itself has 755 permissions. The relevant section
from the httpd.conf file is as follows:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "@@ServerRoot@@/cgi-bin" should be changed to whatever your
ScriptAliased
# CGI directory exists, if you have that configured.
#

AllowOverride None
Options none
Order allow,deny
Allow from all


I have tried adding an "AddHandler cgi-script .cgi" directive to that
block, as one webpage I found suggested, as well as changing the
"Option none" to "Options ExecCGI". I did, of course, restart the
server between each configuration change. I have also tried with
various different CGI scripts, most of which come from a fresh
install. Nothing seems to make any difference- I still get the
"premature end of script headers" error. If this was linux, i'd say
check the SELinux settings, but it isn't. What am I missing here?

 End original message. -

Are you sure that this new version of BSD doesn't have something 
similar to selinux that may be blocking your access?


It sure matches the symptoms one gets when selinux is the culprit on 
a linux installation.


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] REPOST: [EMAIL PROTECTED] Need Help [Again] w. PHP and Apache.

2007-08-27 Thread Dragon

Steve R Burrus wrote:
well actually the only "advice" which I got/received yesterday was 
from someone asking me what OS I was trying to do the PHP-Apache 
Server integration on and what was the purpose of the integration. 
And that was the * only * response which I have received so far, 
thus my Repost earlier today (which I will apologize for if you 
might want me to).

 End original message. -

I think you are missing the point. People will be MUCH more inclined 
to help you if YOU do some work up front. It helps if you do some due 
diligence by searching for the answers you need as well as reading 
whatever documentation is applicable. As the saying goes RTFM. If 
after doing so, you still have a problem, then it is time to ask a question.


You should tell us exactly what you are trying to do, what OS, what 
versions of software, is it from source or a binary package, and you 
should tell us precisely what you have done to attempt to resolve the 
problem. Posting a relevant portion of your httpd.conf is often very 
helpful and may get you a precise answer very quickly.


This is NOT a help line where you can demand that people give you an 
answer, nobody here is being paid to support you. This list is a 
community of users who may or may not know the answer you seek. Even 
if somebody does know the answer, if you don't ask the question in a 
meaningful, understandable manner or if the person is not immediately 
available to respond, you may not get an answer.


Reposting the next day with the exact same question is not going to 
change anything, well, maybe it will, it will change (usually 
negatively) the attitude of people who might be inclined to help otherwise.


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] REPOST: [EMAIL PROTECTED] Need Help [Again] w. PHP and Apache.

2007-08-27 Thread Dragon

On Mon, August 27, 2007 16:20, Steve R Burrus wrote:
> All that I have tried to do was to integrate the PHP scripting language
> with
> the Apache Server, i.e., be able to view PHP files with the help of
> Apache.
> And my OS is Win XP Pro.
>

Please stop top-posting and trim your posts. It's rude and shows that you
do not care about clear communication. If you don't understand why, go
here and read this: http://www.faqs.org/rfcs/rfc1855.html

And also see this: http://www.river.com/users/share/etiquette/

If you are unable or unwilling to answer the qustions you have been asked
by other list members in an attempt to help you, then nobody here is going
to be willing or able to help you. Nobody can diagnose your problem
without relevant information.

Frankly, enabling PHP support on Windows is trivial and is fully
documented on the PHP web site at http://www.php.net/ in 23 different
languages. If you had done a search for "PHP installation windows" on
Google you would have found the page you need as the first page returned.

Follow the documentation link on the top of the PHP home page to get to
the installation procedure. Then RTFM. Be sure you use the correct DLL
file for the version of Apache you are using. This too is fully documented
on the PHP site.


-- 
~~~
  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] Apache under MacOSX 10.4.10 (was Re: [EMAIL PROTECTED] logging incomming traffic)

2007-08-30 Thread Dragon

Eric Gorr wrote:


On Aug 30, 2007, at 10:55 AM, Joshua Slive wrote:


On 8/30/07, Eric Gorr <[EMAIL PROTECTED]> wrote:


Sorry, I should have mentioned that I am using Apache 1.3.33 which is
the default server under MacOSX.


Then go ahead and pull out your network sniffer, since this obsolete
version doesn't have that feature.


What is the easiest way to switch to Apache 2.2.4 under MacOSX 10.4.10?

 End original message. -

I can't speak from experience with your exact configuration but I 
would simply suggest trying to compile from source.


It's relatively painless for most Unix-style systems. It can't hurt to try.

If you do make the attempt, you might want to configure it to install 
in a different location than where the existing version lives so you 
can easily roll it back if needed.


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] Apache under MacOSX 10.4.10

2007-08-30 Thread Dragon

Eric Gorr sent the message below at 10:01 8/30/2007:


Yes, I am sure I can build and install it from source without any
trouble.

What I am uncertain of however is how to get the machine to launch
the Apache2 webserver as opposed to the the default one installed on
the system.

I am also assuming that if I install Apache2, I would no longer be
able to use the Sharing panel to turn the server on/off and would
need to do so from the command line.

I can't imagine this is terribly difficult...I just don't know the
answer.

 End original message. -

If you were running a flavor of Redhat or a similar Linux 
distribution, I'd be able to help you.


Unfortunately, how Apple has chosen to do things is out of my area of 
expertise.


I do know that the current Mac OS is based on a flavor of BSD, I am 
wondering if they might use a similar start-up scripting method as 
the BSD distributions. At any rate, it would be something to ping the 
Mac support lists about to see what they can do to help you.




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



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]



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] 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-05 Thread Dragon

Frederick Lamartin wrote:
I have removed the alias directive from the configuration file. The 
URL: http://localhost now leads me to the index file in my web site. 
After removing the index file from my website, the URL opens an 
index to the site. We have success! Thanks again.


For the record, the following respond explicitly to your questions.

1. I have not been restarting apache after changing the 
configuration file. I have been directly attempting to open my site 
by directing the browser to the site. After changing the 
configuration file, attempting to restart Apache via the Windows 
start menu results in the following DOS-type error message: "Only 
one usage of each socket address (protocol/network address/port) is 
normally permitted.: make_s: could not bind to address 0.0.0.80 no 
listening sockets available, shutting down  Unable to open logs". I 
have not yet, but shall,  look into correcting that error by working 
through the Windows Control Panel.

 End original message. -

Apache does not look for changes in the configuration while it is 
running, you have to explicitly tell it to read the configuration 
again by restarting it. Until Apache is properly restarted, it will 
not know anything about the changes you made.


The error message you are getting says to me that you have not 
stopped Apache when attempting to do your restart.


When you say you are restarting it, how exactly are you doing so?



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] how to check caching is disabled?

2007-09-10 Thread Dragon

rahul gundecha wrote:
thanks Joshua for helping, I really appreciate your instantaneous 
and correct solution.


Just to point out confusion in the thread -

first time you replied -
"check for mod_cache, mod_file_cache, and similar modules. If they 
are turned off, then you don't likely have any caching going on."


my reply -
" There isn't any cache related entry in that file.
So what's the default setting of apache server ?"
I was expecting the answer that without doing anything apart from
normal installation of apache server, will there be caching ? and how to find
about it?

your reply -
"But in the default install you will not have any apache-level caching
 if mod_cache and mod_file_cache are both disabled."
now again we end up with same question, how do I know these things 
are disabled?


that's why I asked again. And then I got the correct answer.

" As long as mod_cache and mod_file_cache are not configured, there is no
caching in a default install of apache."

Anyways no hard feelings but just wanted to show lack of clarity in 
your answer.
Thanks for helping me, I really bombarded you with series of 
questions, still you answered them promptly.

 End original message. -

I disagree, I think Joshua's answers were clear and concise.

He said that if it is not configured then you do not have it enabled. 
I don't think that is very difficult to understand though it does 
assume an understanding of the httpd.conf file and configuration of 
individual modules. However, even that is pretty basic stuff and 
easily understood through a perusal of the Apache documentation 
regarding modules.


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] UDP support for apache

2007-09-10 Thread Dragon

Yogsothoth GV wrote:

Hi all,

Can I configure Apache to serve webpages using UDP as transport protocol.

I see some code in srclib/apr/network_io/unix to make UDP

 End original message. -

I don't know the answer to your question but I suspect it is very 
likely "no". Even though I believe the RFC specifying the HTTP 
protocol does mention that it could be implemented on UDP. AFAIK, all 
practical implementations of HTTP have been over TCP and not UDP.


HTTP could very well work on UDP but all of the browsers I know about 
expect it to function on TCP. So serving it via UDP is pointless if 
you have no client that will accept HTTP over UDP.




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] UDP support for apache

2007-09-10 Thread Dragon

On Mon, September 10, 2007 18:26, Yogsothoth GV wrote:
> On 9/10/07, Chris 'Xenon' Hanson <[EMAIL PROTECTED]> wrote:
>>
>> Yogsothoth GV wrote:
>> > Hello,
>> > Sorry previous email was sent before completion.
>> > Can I configure Apache to serve webpages using UDP as transport
>> protocol
>> ?
>>
>>That's the silliest thing I've ever heard of.
>
>
> Yes it is silly, only if you think all data that HTML serves requires TCP
> like transport semantics. Moreover, HTML specification doesn't specify
> what
> semantics to use for transport, right ?
> However, content may impose those semantics.

Actually, the fact that nobody has implemented HTTP over UDP puts such a
constraint on you. Just because the RFC allows for it does not mean that
somebody has actually implemented it on both the server and client side.



> | >  Why would you want to?
> Say, you are streaming video/audio over HTML like Flash, quicktime.  This
> doesn't
> necessarily require TCP like semantics because delay due to packet
> retransmission or HOL blocking is bad (when serving real time data).
> However, if you are using a transport protocol like
> UDP  you might experience small disturbance, which is better than stalled
> video/audio. This
> is one reason that I can think on top of my head.

I am no expert here, but there are probably much better ways to do this
using more recent and more sophisticated protocols.

When I was working for a company that shall not be named that was working
on edge routing solutions, one of the big things was QOS and priority
scheduling of "real-time" or streaming data. Unfortunately, my knowledge
here is barely superficial as I never had to get deep into the mechanics
of that to write my test software (which ran functional testing of various
high-speed ATM optical network interfaces).

-- 
~~~
  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] Apache 2.2, rotatelogs.exe, and Windows

2007-09-18 Thread Dragon

Mark A. Craig wrote:
So this leads me to ask again, what are all of you successful 2.2.4 
admins using to rotate your logs?  If the piping mechanism is 
broken, at least in the Windows binary, then what other technique(s) 
are people using?  Task Scheduler with a batch or CMD file?


So far I've been manually rotating the logs, but I'd understandably 
like to automate it.

 End original message. -

I think you will find that the vast majority of people using Apache 
are not doing so on the Windows platform. Most people who have 
committed to the Windows platform have also committed to IIS. Apache 
dominates the Linux environment and is used frequently on BSD and 
similar Unix-based platforms. Apache holds only a tiny share of 
Windows servers.


I believe that those few who are using Apache on Windows tend to be 
hobbyists or developers using it to serve their own stuff or to do 
development off-line. I am willing to bet there are very few people 
using it in a production environment under Windows.


So it is entirely possible that there may be nobody on this list who 
has an answer for you. The set of people using it in the same manner 
you are is small to begin with and there may not be many of them 
subscribed to this list.


Repeatedly posting demanding

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] [module] how do I compile a module?

2007-09-18 Thread Dragon

On Tue, September 18, 2007 18:27, Andrew WC Brown wrote:
> Hi, I'm new to this mailing list (waves).
>
> I'm running OS X.4.10 with Apache 2.2.6
>
> When I installed apache I was sure to --enable-module=shared so I could
> load
> DSOs.
>
> I let apache2 install to /usr/local/apache2. When I run apache it works.
>
> I didn't specify any additional modules on compilation so my modules
> directory is emptied.
>
> I'm going to be using virtual hosting so I want to compile
> mod_vhost_alias.c
>
> I've navigated to the directory in my source folder: httpd-2.2.6
> /modules/mappers/
>
> I've tired to compile using: sudo apxs -c mod_vhost_alias.c
>
> I get the following error:
>
> gcc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -Os -pipe
> -DHARD_SERVER_LIMIT=2048 -DEAPI -DSHARED_MODULE -I/usr/include/httpd  -c
> mod_vhost_alias.c
> mod_vhost_alias.c:36:17: error: apr.h: No such file or directory
> mod_vhost_alias.c:37:25: error: apr_strings.h: No such file or directory
> mod_vhost_alias.c:38:23: error: apr_hooks.h: No such file or directory
> mod_vhost_alias.c:39:21: error: apr_lib.h: No such file or directory
> mod_vhost_alias.c:42:22: error: apr_want.h: No such file or directory
> In file included from /usr/include/httpd/ap_config.h:1129,
>  from /usr/include/httpd/httpd.h:29,
>  from mod_vhost_alias.c:44:


The section of the errors I have kept above tell you where the problem is.

The header files that apxs expects to find in the include directory
specified on the command line with the -I option do not exist where you
are telling apxs they should be.

You need to locate where those files are and change the -I option on the
command line to point to the right place. I don't know if there needs to
be a space between the option specifier and the include path, but if you
do have those files in the specified directory, I would put a space in
there and try again.

Hopefully, that is all you will need to do.

-- 
~~~
  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] image folder outside the root....how to access it ?

2007-09-26 Thread Dragon
 sort of script.


So in summary, Apache by itself cannot do what 
you want. You have to do some scripting or 
install an application somebody else wrote that will do it.


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] image folder outside the root....how to access it ?

2007-09-27 Thread Dragon

Rachel Anderson-Barrios wrote:

>From the sounds of it, you are required to use a web application to do
what you want to do.  It doesn't have to be PHP.  You can use cgi
scripts, ASP, tomcat with java, or ...

Make a script or a page which will do two things.  First, validate the
user, check that they are logged in payed, etc.  Second, parses a
parameter to allow the image to be displayed on the page.  Say, for
example, the url is "www.domain.com/show_picture.cgi?id=sunset.jpg"
show_picture.cgi will first check that the user exists, if so, will
display sunset.jpg (from whatever folder sunset.jpg is in).

Now, you do raise a point, a user could view the source and see the
exact location of sunset.jpg.  Well, there are a few other
possibilities.

You don't need your pictures to be in a "images" directory, it can be
called anything you want.  You could put it under
"www.domain.com/sept_2007/another_sud_directory/123654123654/here"  Once
a user has viewed a picture, the server in the background can move it to
a new location.  For this, you may want to keep a database of where the
pictures are located.

Another thing you could to is only display your photos through an
embedded object. For example, make little flash files out of your
pictures.  Have the flash program check that you are logged in, etc.
Then you wouldn't need to move them around, or do anything else.

Sincerely,
-Rachel

PS.  This is my initial impression, there are probably many other ways
to do what you want, but you will need the help of a programed
application to do so.

 End original message. -

Actually, this is almost right but not quite.

If you want the files served securely, they should NOT be located 
anywhere within the document root tree.


The script itself would retrieve the file from where it lives outside 
the server root and forward it to the browser. The URL for the image 
would be a call to the CGI script and not a direct link to the image 
itself. CGI is not limited to serving HTML, you can serve any file 
type you want by providing the appropriate content type and 
disposition headers.


For instance, in one of the applications I am working on, there is an 
option for a logged-in user with appropriate privileges to access a 
PDF file. This file is generated on the fly from the database and it 
never resides as an actual file on the file system. You can do the 
same thing with images. They can be stored in a database or anywhere 
on the file system and served solely by the application script.


In short, the application script acts as a proxy to Apache to serve 
the content. Apache simply invokes the script under the CGI mechanism 
and then "gets out of the way" while the script does what it is supposed to do.


Unfortunately, this is no longer really a discussion about Apache and 
is thus drifting off topic. There are many good books and tutorials 
out there on how to write web applications. Those resources are a 
better place to turn at this time than this list.


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] Disable directory browsing

2007-09-27 Thread Dragon

Mark A. Craig wrote:
Sorry I got the sense of things backwards earlier.  Isn't there 
another more brute-force option, to simply place an empty index.htm 
file in every directory that shouldn't be browsed?  Doesn't the 
presence of an index file disable browsing even when it's enabled in 
principle for that directory?  The open source blog software I use 
in fact came pre-packaged that way, with index files placed in all 
the directories where browsing wasn't desirable.


Mark

 End original message. -

Sure, that will work. But it relies on the presence of that file and 
that is a potential security hole if somebody forgets to include it 
or deletes it thinking it is not needed.


Personally, I think fixing it in the configuration file is a better way to go.


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] Compiling module under Windows for Apache 2.2.4 with APXS.BAT/.PL

2007-10-03 Thread Dragon

Mark A. Craig wrote:

Got a tiny bit further:

C:\Program Files\Apache Software Foundation\Apache2.2\bin>vsvars32.bat
Setting environment for using Microsoft Visual Studio 2005 x86 tools.

C:\Program Files\Apache Software Foundation\Apache2.2\bin>apxs -c -i 
-a mod_httpbl.c


cl  /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG 
-I"C:\PROGRA~1\APACHE~1\Apache2.2\include"  /c /Fomod_httpbl.lo mod_httpbl.c


mod_httpbl.c

C:\PROGRA~1\APACHE~1\Apache2.2\include\apr.h(92) : fatal error 
C1083: Cannot open include file: 'windows.h': No such file or directory


apxs:Error: Command failed with rc=131072

How do I resolve this include failure, and how many other includes 
will it fail to find?  There are a LOT of includes in that .c 
file!  I know, for a guy who once upon a time did programming, I'm 
such a complete newb.  I haven't touched any code file that didn't 
end in .html since the 80s.  :-/

 End original message. -

windows.h (and a whole bunch of other things you will need) are part 
of the Windows SDK which you can download from Microsoft's MSDN web site.


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] Compiling module under Windows for Apache 2.2.4 with APXS.BAT/.PL

2007-10-03 Thread Dragon

Mark A. Craig wrote:
You mean it doesn't come included with a WINDOWS-based compiler 
package from MICROSOFT?  o_O


And actually, in my case I'll apparently need the old-fashioned 
Platform SDK, because I'm compiling on Windows 2000


*runs outside to the hand pump connected to his pipe to the 
Internet, starts cranking*

 End original message. -

Nope, not unless you buy an MSDN subscription or the pro version of 
the compiler.


But it's free, you just have to go get it.

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] Apache 2.2.0 binary download

2007-10-18 Thread Dragon

Ashwani Kumar Sharma wrote:


Yeah that's true,

There are no binaries for apache 2.2.0 on that url. I have downloaded the
source code for same from
 http://archive.apache.org/dist/httpd/

I am facing some build problems.

Is it true that apache 2.2.0 is not a stable version. Please suggest me the
stable version for apache.


 End original message. -

If you are installing it as a new deployment, why are you not using 
the latest released version?


The latest version right now is 2.2.6

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] Php not running

2007-10-29 Thread Dragon

Vishal Gaurav wrote:

Hi,
Thanks for your suggestion. Yes i am save the file as .php . I am 
able to get info to use this script in php file  
and i was also attached the phpinfo out put file in this mail.When i 
was trying to run this script then browser gives internal server 
error(500) in title bar.And nothing is displayed in browser. I am 
successfully install Apache on my machine. And when i try to run 
<http://localhost/>http://localhost/ browser displayed its works! message.



 End original message. -

There are only two ways to troubleshoot this, either examine the 
Apache error log or enable error reporting in PHP. Enabling error 
reporting is done in PHP's configuration file. It is disabled by 
default because it is a security risk. If you choose to enable it, be 
sure to turn it off when you get the problem resolved.


Unless this turns out to be an Apache specific configuration issue, 
you may find better assistance on a PHP support forum.


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] Php not running

2007-10-29 Thread Dragon

Vishal Gaurav wrote:

Hello,
Now i am able to use this test script. 
but not

if i remove space in this line  then 
aple to see thisisphpline.

But If i donot remove the space nothing is displayed by browser,
How can i fix it.


 End original message. -

As I mentioned in my earlier reply, you have to find out what the 
error message is. By default, when an error occurs in PHP it logs the 
error in the Apache error log and does not display anything in the browser.


Until you find out what the error is nobody can help you. You either 
have to examine the server error log or reconfigure PHP to display 
erros in the browser.


Even then it seems from your description that this is a PHP internal 
problem or configuration error. If it is, you will get better support 
from a PHP forum and/or the documentation for PHP which you can 
access from http://www.php.net/


I will specifically point out that http://www.php.net/support.php is 
where you should start.


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] Re: Unable to view files under sub-folders

2007-10-30 Thread Dragon

Mick Ken wrote:

Hi Friends,
I got it figured. It has the "SVN" path URL pointed to an empty directory.

I feel ashamed. This is the second day in a row where i posted a
thread and 5 minutes later i figured out the solution and had to ask
for forgiveness.

 End original message. -

Actually, this is far better than the people who post the same thing 
over and over without answering any questions directed at them or 
providing any relevant information that could be used to help 
determine what the problem is.


It's really a bit refreshing to see that some people continue banging 
away on the problem themselves even after having asked for help. 
What's even nicer is when somebody who has done so comes back and 
posts the solution to their problem so that others in a similar 
situation might be able to take advantage of their success.


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] compiling apache on windows with minimum foot print

2007-11-02 Thread Dragon

Ashwani Kumar Sharma wrote:

Hi,

Thanks for the reply.

Actually I want to compile the apache source code without including the extra
modules. So, wanted to know what are those modules.

In my application the apache's work is that it will simply send some jar
files to my user through web that's it. So, I want to reduce the foot print
of the apache so that it can fit into my application with minimum size.

 End original message. -

Why not use a light-weight HTTP server like Lighttpd or Mongrel? 
These are very fast and very small and can do exactly what you want 
with no fuss.


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] Center for Internet Security's Apache Benchmark Project Update

2007-11-06 Thread Dragon

Gregor Schneider wrote:

On 11/6/07, Ryan Barnett 
<<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:

> Why not a URL where we can view it?
[Ryan Barnett] Here you go -
<http://apachebenchmark.sourceforge.net/CIS_Apache_Benchmark_v2.1.doc>http://apachebenchmark.sourceforge.net/CIS_Apache_Benchmark_v2.1.doc 




ehem - great, however, there's no such thing like ms word on my 
machine - hope it's not too much asking for a pdf-version... *cough*

 End original message. -

Nor do you need it. Open Office can handle that sort of file too, and 
it is both free and open source, it also runs on every major OS. It 
works quite nicely for me using it at home to work on all sorts of MS 
format documents generated at work in MS applications.


http://www.openoffice.org/

Which is not to say that your comment about providing a document in 
PDF is without merit.


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] Multiple Wikis, Multiple DB's, Single User Table

2007-11-07 Thread Dragon

Liz Kim wrote:

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

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

 End original message. -

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




Dragon

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


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



Re: [EMAIL PROTECTED] install CD for Enterprise Linux 4

2007-11-26 Thread Dragon

lx7 wrote:


Any ideas? Or alternate solutions?

 End original message. -

Not trying to be rude but you are asking in the wrong place. Go to a 
forum or list that supports Redhat.


This one is for the Apache web server and related projects. It is 
doubtful you will find any aid here.


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] SSL & Apache Scalability

2007-11-29 Thread Dragon

Tony Anecito wrote:

Hi All,

I have heard a strange story about how using 1 port
for Apache SSL is not a good idea for performance. I
heard if you have three sites usign the same SSL port
it could really slow down performance as compared to
putting those sites on separate ports for SSL.

Should not each site have it's own port for SSL?

 End original message. -

Where did you hear that?

What is true is that you cannot do name-based virtual hosts on the 
same IP address with multiple domain names and have that work 
correctly (that subject comes up here all the time). Basically, you 
have to use a separate IP address for each domain name so that SSL 
negotiation serves the correct certificate for the domain. This is a 
limitation of the protocol that establishes SSL connections and there 
is really no legitimate way around how it works. (There is a way to 
"cheat" and use "wild card certificates" but that is considered bad 
practice and should not be done).


All of these IP addresses can and should run on port 443 for SSL 
unless you have another compelling reason to do something different. 
Each of these instances will be separate ports because each IP 
address has its own set of ports that are not shared. In other words, 
port 443 on IP 192.168.1.100 is not the same as port 443 on IP 10.3.67.24


Perhaps the requirement for a unique IP address is the source of the 
confusion?


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] Analyzing access and error logs

2007-12-07 Thread Dragon

Arnab Ganguly wrote:

Hi All,
Is there any free tool  available that analyzes Apache error and access logs?
Thanks in advance.
-A

 End original message. -

At the risk of sounding rude, do you know how to use a search engine? 
This is a question you could have answered for yourself with a tiny 
bit of effort and thought on your part.


Put the following terms into Google and you will come up with several 
alternatives at the top of the first page:


"apache httpd log analysis open source free software"

Whether any of those will meet your needs is up to you to determine.

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] Question about installing apache 2.0.59 on solaris 10

2007-12-14 Thread Dragon

pdt_p wrote:


Hi...

I download binary distribution for Apache HTTP server version 2.0.55.
i download it from : http://apache.wildit.net.au/httpd/binaries/solaris/
in the readme.bindist and install.bindist file, it say that i have to run
install-bindist.sh 
in this case my path for apahce is /home/myuser/apache2.
there is no error occur abd successfull message is display.
i try to run my apache server by execute this command: apachectl start
this error is occur:
ld.so.1: httpd: fatal: /home/myuser/apache2/lib/libaprutil-0.so.0: unknown
file type
Killed

any idea what's wrong with my apache http server?

Thank you

 End original message. -

Is there some reason why you are not building from source?

It isn't difficult and it will help you avoid incompatibility 
problems with somebody else's binary distribution that may have been 
compiled in a way that is incompatible with your exact configuration.


Also, why not use the latest version?

2.0.55 is rather old and there are even newer versions in that branch 
with some rather significant fixes. However, I would recommend going 
with 2.2.6 or something in that branch.


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] Question about installing apache 2.0.59 on solaris 10

2007-12-14 Thread Dragon

pdt_p wrote:


Hi...

Thank you for answering my question.
The reason why i am not compile by my self because i don't have permission
to install any application. basically i don't have permission to any root,
usr and etc. I only have access to my home account.
If I download the source, In my case above, is there any way to compile
apache by my self but install it into my home account folder?
I am a new to apache. I apologize for such a silly question.

 End original message. -

I am not certain but I think you can probably compile it and install 
it without having root access.


However, if you want to run it on a privileged port (port number <= 
1024), you have to have root access.


Even then, I am unsure if it will start under another user account 
with a port number > 1024. I think it should but I don't recall for sure.


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] How to rid a pest?

2007-12-17 Thread Dragon

Charles Michener wrote:
I have a couple of spider bots hitting my server that I do not wish 
to have access to my pages - they ignore robots.txt, so I finally 
put them on my 'deny from x' list. This does deny them access 
but they persist to keep trying - trying each page address at least 
30 times - several hits per second .  Is there a standard method to 
forward them to some black hole or the FBI or ...?

 End original message. -

This is the kind of thing a router/firewall will handle for you.

Stopping these requests before they get to your machine is the best 
way to handle them. Otherwise, it doesn't really have a lot of impact 
on the performance of the server for it to send a forbidden response 
back to the offenders. Yeah, it takes a little bit of processing but 
it is pretty insignificant per request.


Hopefully they will eventually give up but if they don't, look into 
using a firewall to deny at the edge of your network.


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] Custom hostname and Apache 2.2.6

2007-12-18 Thread Dragon

Hans Tovetjärn wrote:

Hello!

Thank you, it worked! It does give me the 
warning, but that is perhaps not a big issue. 
This is really a jungle to me right now though, 
in what part of the Apache documentation can I read more about this?



In that case there is maybe another way around it.

In /etc/hosts, change the line

127.0.0.1localhost

into

127.0.0.1localhost laptop

That should keep Apache happy.


-ascs


Regards,

Hans

 End original message. -

That's not an Apache issue at all it is basic 
networking configuration at the OS level.


What you need is to get a good book on Unix 
system administration, hopefully one aimed at your particular OS.


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] Can't load .JS file into Perl/CGI script.

2007-12-19 Thread Dragon

CraigT wrote:


Hello,

I've built an app with Perl (5.8)/CGI, Javscript, and CSS.  Its running on a
Windows XP Home (development box) using Apache 2.   It is being handled by
mod_perl 2 with no errors.

My problem is that I can't load .JS files into Perl/CGI scripts running out
of the cgi-bin directory using the '

Re: [EMAIL PROTECTED] Can't load .JS file into Perl/CGI script.

2007-12-20 Thread Dragon

CraigT wrote:


Thanks for responding Dragon.   I added the JavaScript mime type to the HTTPD
file.   I restarted the server and tried to load the external JavaScript
file into the .CGI process from the supra-directory (root) and a
subdirectory to the cgi-bin directory.   The load from the root did not
work.   The load from the subdirectory tried to work but attempted to
execute the .JS file like a Perl/CGI program according to the Apache log.
The content type is given as below.

 

I need more guidance.

 End original message. -

As I said in my original post, you cannot have these files served 
from anywhere under the cgi-bin directory if Apache is configured to 
execute files in that directory as CGI scripts, (which it appears it 
is from what you say above).


I would suggest making a directory under your document root directory 
for these js files and serve them from there.


Does your server properly send a static HTML file from the document 
root directory or any subdirectories?


What happens if you try to load the js file directly via the browser 
(not as part of a script tag, just type the url of the js file in the 
browser)?


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] Cannot restart httpd

2008-01-02 Thread Dragon

Liz Kim wrote:
I was not able to restart Apache earlier today and had to reboot the 
server itself.

This is the error message that I received when it failed to restart.

Stopping httpd:[  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not 
bind to address [::]:443

no listening sockets available, shutting down
Unable to open logs
   [FAILED]
Any idea what might be causing this problem?
We recently added SSL to the server and redirect all http to https.
I wonder if this is done in an incorrect way?


 Redirect / <https://IP_ADDRESS>https://IP_ADDRESS


 End original message. -

That looks to me like something was already using port 443 so Apache 
bailed out and refused to play. If Apache did not actually shut down 
(I know the script said it did, but you can't be certain without 
checking) or if another instance of Apache or another server 
application is running on port 443, you will see that exact sort of message.




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] Requests taking a lot of time

2008-01-02 Thread Dragon

Jean-Christophe Roux wrote:

Hello,

I am struggling with an issue and I have the following set up that 
reproduces the problem.

I am running apache 2.2 on Centos 5.0.
On the client side, I have a web page that polls the server every 
second. Using prototypejs, it looks like that:

setInterval('polling();', 1000);
function polling()
{
  new Ajax.Request
  ( 'polling_server.php',
{ onSuccess: function(transport)
  {
  }
}
  );
}

the polling_server.php does nothing:

Most queries takes around 100-150 ms for a round trip (measured using firebug)
Sooner or later though, one of those requests will take a lof of 
time and will timeout after 74000ms.
Also, there are sequences of requests that  take a lot of time (5, 
10 seconds sometimes more) and then the system gets back to the normal 100ms.
it looks like a jam. I'd like to understand why this is happening so 
that I can fix it. How could I explore the issue further?

Where does the 74000ms come from? Is it something I can change in apache?

 End original message. -

It is very doubtful that this is an issue with the Apache httpd if 
you are using one of the MPM models and have it configured with 
enough workers to handle the load.


However, you really have not given us enough information to even make 
an informed guess. Is there anything in your error or access logs 
indicating a problem (adjust the debug level of your error log if 
needed to get more detail)? What exactly is your architecture? Are 
you generating dynamic content in a CGI application or back-end 
server process? If so, is that running on the same machine or 
another? How much RAM do you have? How is Apache MPM configured?


I would suggest (with lack of further information) that it is most 
likely that network congestion is the problem or possibly something 
else in the system is resource limited a back-end server application 
perhaps? Possibly another server process such as an MTA hogging 
resources? Not enough RAM causing swap space to be heavily utilized?


Also, you must understand that the Internet as it exists today is a 
"best effort delivery system". This means that there is absolutely 
zero guarantee that traffic you send will ever be received by the 
other end or that there will be any sort of deterministic latency to 
the system. You cannot assume that the round-trip time for a request 
to be served will remain in the 100-150 mS window in a production 
environment with access from the public Internet. There are far too 
many random factors regarding routing, traffic bandwidth and other 
things to be sure that your application is going to reliably serve 
within a certain time window to all possible users.


Even on a LAN with a lightly loaded machine, other network traffic 
can affect your round-trip times. The only way you can ever be 
certain of this is in a trivial test application with two dedicated 
machines that has no real resemblance to a production environment.



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] problem with posted data in UTF-8 and reverse proxy

2008-01-04 Thread Dragon

Scott Douglass did speak thusly:

Hi,

Please excuse the Tomcat references below, my question is actually about
the HTTPD reverse proxy feature.

I have a web app that, when viewed by hitting the Tomcat 6.0.14 server
it runs on handles the input of multi-byte characters using the UTF-8
encoding. The application is a web mail client, and it uses HTTP POST to
send the fields of the message composer window to the server.

When I put this exact same tomcat/webapp behind the HTTPD 2.2.6 reverse
proxy, the Chinese characters POST'd via the composer window gets some
other encoding than UTF-8. The end result is that when the user views
the result (say they send the mail message to themselves) the Chinese
characters are not decoded correctly.

For example, I type this into a textarea for the body of the message in
the composing form:

ä½ å¥½ 哈哈 孔歇

When I post this directly to tomcat/webapp, I see it again when I
recieve the e-mail a few seconds later (Tomcat has a /* servlet filter
that forces UTF-8 encoding on all request and response parameters, also
all JSPs have <%@ page contentType="text/html; charset=UTF-8" %>, and
also 
and tomcat container definition has URIEncoding="UTF-8"...)

When I post through the HTTPD 2.2.6 reverse proxy, the end result
appears like:

ä½ 好 哈哈 孔歇
‡

I've tried as many work arounds as I could search/find/think of
including:

AddDefaultCharset none

vs.

AddDefaultCharset UTF-8

Neither of these solves the problem.

Has anyone ever encountered this before? I am happy with the HTTPD as a
reverse proxy other than this encoding issue, and I'm using HTTPD for a
bunch of other functions as well (WebDAV, virtual hosting, subversion
repository, etc.) So, I prefer to solve this reverse proxy problem
rather than use some other proxy server.

 End original message. -

You are going to need to provide more 
information, there simply isn't enough here to 
know how these requests are being processed when 
proxied. In particular, how do you have the 
reverse proxy configured in your httpd.conf file?


Which proxy modules are you using, etc.?

Having those configuration directives will allow 
somebody (probably not me, I'm an amateur at this 
stuff) to decipher what is happening.




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] mode_rewrite hostnames and wikiwords

2008-01-06 Thread Dragon

Phil Wild did speak thusly:

Hmmm

hit a snag

how would I expand this rule to capture and convert the following?

your.host.name -> YourHostName (works with rule)
YOUR.HOST.NAME -> YourHostName (currently not handled)
Yo-ur.HOST.name -> YourHostName (currently not handled)

effectively the spec would be to take /doc/FQDN (regardless of case presented)
and capitaliseing every dot separated word returning
/doc/FullyQualifiedDomainName removing any characters other than 
[A-Z][a-z][0-9]

 End original message. -

If I were to do something like this, I would most likely use the 
RewriteMap directive to pass the incoming URL to a short Perl script 
to do the transformation. The stdin file handle presents the program 
with the request URL and you pass the result back via the stdout file handle.


http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemap

See the section on the page linked above entitled "External Rewriting 
Program" for details and a skeleton Perl script you can add your 
processing to.


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] Where can I find a tutorial for writing apache 2.0.x modules

2008-01-07 Thread Dragon

Campbell, Lance wrote:
I am looking for a web tutorial for writing apache 2.0.x 
modules.  Does anyone have a reference they could give me?



 End original message. -

Perhaps this is a good place to start:

http://modules.apache.org/reference

It didn't take more than about 3 clicks from the main Apache.org page 
to find it.


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] Multiple Instances of Apache

2008-01-18 Thread Dragon

Mandy Singh wrote:

Thanks ascs. This is a good explanation.

The only other question that partially remains unanswered is that if 
I run apacheN on port 80 (and access my site as 
<http://mysite.com>http://mysite.com) and run apacheN+1 on port 8080 
(and access site as 
<http://mysecondsite.com:8080>http://mysecondsite.com:8080) - what 
can i do special to access 
<http://mysecondsite.com:8080>http://mysecondsite.com:8080 without 
the port number (as if it was running on port 80). Did you get what 
I was trying to say? Is this a legtimate question? :)

 End original message. -

As the person who replied to your first post mentioned, you use a 
reverse proxy to do this.


Instructions on how you do it are here:

http://www.apachetutor.org/admin/reverseproxies



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] Re: PerlSetEnv in .htaccess ?

2008-01-24 Thread Dragon

abhishek jain wrote:

On second thoughts is there a method by which i can execute some 
piece of code to execute even before my scripts are called, remember 
i am on a shared host,

abhi

 End original message. -

Child Perl programs inherit the environment of their parent, so 
setting the variable in a wrapper before calling the other script would work.


The best way is to get your hosting provider to help you set what you 
need in the main httpd.conf but if they won't do that, this will work.




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] Apache log errors

2008-02-26 Thread Dragon

Krishna Chandra Prajapati wrote:



Hi All,

My web server log error is " NULL::dba can't connect to mysql"

The above error shows occasionally in the error log file of apache. 
Every thing is fine on the mysql database server. It happens twice 
or thrice a day. I am not able to find out whats the issue.


Please help me.

 End original message. -

That looks to me like you have a script of some sort that is trying 
to connect to mysql and is failing. Other than that, it is impossible 
to tell anything else from just that message.




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] Firefox and html

2008-03-04 Thread Dragon

Grant Peel wrote:

Hi all,

I am just starting to investigate why:

An html page (with an html extension), sent to Firefox (2.0.0.12), 
will render a page (with a form), and will allow me to 'post' it. 
But when the (Perl) cgi script returns the answer page (using a 
'print qq~ ...' statement, the resulting page shows html code 
(Firefox does not render the page).


Any ideas?

 End original message. -

Your script needs to send a Content-type header. If you don't do 
that, Firefox is assuming it is getting a text/plain document.


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]



  1   2   >