Re: [EMAIL PROTECTED] Soft. Load Balancer Recommendations
Nick Kew wrote: On Sunday 19 February 2006 23:26, James Wuerflein wrote: I'm looking for a software load balancer solution where I could do 1 to [snip] Erm, why not start by telling us what's the matter with Apache's bundled loadbalancing capabilities? Slightly off topic but has anyone here used openMosix or similar to run a single server image across a cluster of boxes? The idea is that the pool of hardware becomes a single machine with each (new) apache process running on diff. boxes. It also gives you the chance to pull a box, upgrade and re-inject into the cluster (one box at a time). I have yet to do more that play with this (I am more into user mode linux over openMosix for virtual server pools for DNS servers, dev systems etc) but would be very interested in comments or experience. Jacqui - 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] Validity of regex in mod_alias context
Hello Apache httpd users, I have just subscribed to this list to clarify a few things for me that so far I couldn't find in the abundance of Apache and its modules' refeernce and howto material. Probably something like this has been asked a million of times here and thus already found sufficient coverage in the FAQs or similar list annals. Although I am quite sure that what I try to achieve can easily be handled by mod_rewrite I hesitate pulling in this module's heavy regex parser as it sort of seems like overkill to me for such a trivial task. Inspite, I have the supicion that the more light weight mod_alias could equally well come to rescue. I have a URI (i.e. Alias) whose container should include an SSLRequireSSL to enforce SSL/TLS for clients' access. However, instead of the browser merely returning a forbidden statement I'd rather like to redirect any http request into a https request to the same URI. That's why I thought up this RedirectMatch 301 ^(?:[[:alpha:]]+://)?(.*) https://$1 But it doesn't work, and neither the httpd's access_log nor error_log (or their ssl_ namesakes) show up any hint why. In mod_alias'es reference doc I couldn't find a note on what kind of regex classes are valid (e.g. simple ones like the Unix sed uses, or more advanced like Perl's e.g. \w). Probably the [:alpha:] isn't recognised at all. Or could I refer to some server's environment variables like %{PROTO} (if such exists at all?) Where would I find a list of all httpd env vars? Regards Ralph - 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] RE:[EMAIL PROTECTED] huge mod_jk.log
>Hello >I got mod_jk working, hurrah, however I am serving >large files and the mod_jk.log file is huge. When it >is over about 100MB Apache will not start up. Clear >out the file and it starts fine. >How do I configure Apache to log as tersely as >possible to mod_jk.log? You can use rotatelogs http://httpd.apache.org/docs/2.2/programs/rotatelogs.html This works for JkLogFile too Example: JkLogFile "|/path/to/apache/bin/rotatelogs /path/to/apache/logs/mod_jk.log.%Y-%m-%d-%H_%M_%S 5M" The rotation is here after 10 MB with a timestamp of mod_jk.log.2006-02-23-12_00_00. If you are using 2.2 you can use mod_proxy_ajp http://httpd.apache.org/docs/2.1/mod/mod_proxy_ajp.html bye Oliver <>- 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] Re: RewriteRule being ignored
David Hull wrote: > I am running apache 2.0.50 on SuSE 9.2. I also run Tomcat 5.0.28 and pass > connections to it from Apache. I installed Apache from the SuSE package. > > My RewriteRule is not working. It appears to be completely ignored. > Connections get passed to Tomcat via the Proxy pass w/o being rewritten. > I have enabled the RewriteRuleLog and set the log level to 9. The log file > is created but is not written to. I am missing something obvious I am sure > but am too much of a newbie still to be sure just what. > > Any suggestions are appreciated. In what order are mod_proxy and mod_rewrite loaded? A gross simplification, but in general, the last loaded module gets called first. Joost - 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] Soft. Load Balancer Recommendations
Jacqui Caren wrote: > Nick Kew wrote: >> On Sunday 19 February 2006 23:26, James Wuerflein wrote: >> >>>I'm looking for a software load balancer solution where I could do 1 to > [snip] >> Erm, why not start by telling us what's the matter with Apache's >> bundled loadbalancing capabilities? > > Slightly off topic but has anyone here used openMosix or similar > to run a single server image across a cluster of boxes? I've come as far as printing the howto, haven't had time to do anything more with it. Some of my colleagues have worked with pound, but I have no idea what that does exactly. Joost - 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] Re: INFLATE filter and content decompression
> I am looking for a way to do this under Apache2 and am > wondering whether anyone has any ideas. I have tried this: > > SetOutputFilter INFLATE > or perhaps? And on the mod_deflate page there are some examples on how to disable gzip compression, it shouldn't be too hard to reverse the logic, I think. Joost - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mod_rewrite directives problem
Robert Ionescu wrote: > Shyne wrote: >> Apparently the directive RewriteCond %{REQUEST_FILENAME} !-f matches >> requests for existing files, which it should exactly not do. > > We were able to analyze the RewriteLog in a German mod_rewrite forum. > The problem here was the following: > > %{REQUEST_FILENAME} did contain the value from %{REQUEST_URI}, namely > /help/abc but not the expected and needed full physical path > /var/www/help/abc. Sounds like you're using rewrites in a .htaccess file. That results in directories at the beginning being chopped off. Joost - 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] Weird sbitting of htdigest
Hi, I needed to "protect" a URI of my webserver. Since the Base64 encoding of mod_auth seemed too revealing to me, and on the other hand SSL/TLS too involved I looked for something in between and came accross mod_auth_digest. With mod_auth_digest comes the utility program htdigest to create and maintain a password file with MD5 hashes similar to htpasswd of mod_auth for Base64. When I created my first passwd file with htdigest I was baffled to realize that the htdigest binary from my installation produced a passwd file with suid, sgid and the sticky bit set. Ugh, what the hack is any sbit necessary for a flat password file? e.g. # ls -ld /tmp drwxrwxrwt 6 root root 1024 Feb 21 10:31 /tmp # htdigest -c /tmp/bogus.passwd Rotten\ Vault visitor Adding password for visitor in realm Rotten Vault. New password: Re-type new password: # ls -l /tmp/bogus.passwd -rwsr-sr-t 1 root root 54 Feb 21 10:34 /tmp/bogus.passwd Needless to say that I immediately revoked those bits by # chmod u-sx,g-sx,o-xt /tmp/bogus.passwd # ls -l /tmp/bogus.passwd -rw-r--r-- 1 root root 54 Feb 21 10:34 /tmp/bogus.passwd without breaking the functionality of MD5 Digest authentication at all. root's umask during htdigest invocation was # umask 0022 I consider this in my view redundant sbit setting as a severe security infringement (think of a DMZ webserver for the WWW) I have to admit that I initially installed the Apache from the Fedora Core 3 prebuilt RPMs # rpm -qf $(which htdigest) httpd-2.0.52-3 # uname -srv Linux 2.6.9-1.667smp #1 SMP Tue Nov 2 14:59:52 EST 2004 # cat /etc/redhat-release Fedora Core release 3 (Heidelberg) Now I'm very much inclined to compile any Apache for public servicing from the source tarballs with no dso and only statically compiled in modules. Or did I miss something, and there is a hidden sense behind all this? Regards Ralph - 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] Validity of regex in mod_alias context
* <[EMAIL PROTECTED]> wrote: > > RedirectMatch 301 ^(?:[[:alpha:]]+://)?(.*) > https://$1 > > > > But it doesn't work, and neither the httpd's access_log nor > error_log (or their ssl_ namesakes) > show up any hint why. > > In mod_alias'es reference doc I couldn't find a note on what kind > of regex classes are valid > (e.g. simple ones like the Unix sed uses, or more advanced like > Perl's e.g. \w). > Probably the [:alpha:] isn't recognised at all. httpd 2.x utilizes PCRE, so it's quite like perl (which doesn't know the POSIX classes). More interesting for your case: RedirectMatch works (like mod_rewrite) with the URL path only, so you need to use some other logic. You could either use mod_rewrite to check if SSL is available, or, if you want to avoid it, put the RedirectMatch into the HTTP VirtualHost only. Side note: Try to avoid containers. They just hide useful errors if the module is not loaded. > Or could I refer to some server's environment variables like > %{PROTO} (if such exists at all?) No. nd - 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: RewriteRule being ignored
On Tuesday 21 February 2006 09:22, Joost de Heer wrote: > In what order are mod_proxy and mod_rewrite loaded? A gross > simplification, but in general, the last loaded module gets called first. Only in old (four-years-obsolete) versions of apache. -- Nick Kew - 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] Weird sbitting of htdigest
On Tuesday 21 February 2006 10:09, [EMAIL PROTECTED] wrote: > When I created my first passwd file with htdigest I was baffled > to > realize that the htdigest binary from my installation produced > a passwd file with suid, sgid and the sticky bit set. > > Ugh, what the hack is any sbit necessary for a flat password > file? It certainly shouldn't do that - and it doesn't for me. Do you have strange umask settings, or anything else in the shell? -- Nick Kew - 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] Weird sbitting of htdigest
Hi Nick, no unusual umask # umask 0022 # touch /tmp/touched # ls -l /tmp/touched -rw-r--r-- 1 root root 0 Feb 21 13:35 /tmp/touched /tmp as with all my Unix boxes only has the sticky bit set to prevent users' mutual file deletion. That's why I was alarmed when I saw htdigest doing this. Almost looks as if I am using a cracked version. I will have to strace my htdigest... > -Original Message- > From: Nick Kew [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 21, 2006 1:30 PM > To: users@httpd.apache.org > Subject: Re: [EMAIL PROTECTED] Weird sbitting of htdigest > > > On Tuesday 21 February 2006 10:09, [EMAIL PROTECTED] wrote: > > > When I created my first passwd file with htdigest I was baffled > > to > > realize that the htdigest binary from my installation produced > > a passwd file with suid, sgid and the sticky bit set. > > > > Ugh, what the hack is any sbit necessary for a flat password > > file? > > It certainly shouldn't do that - and it doesn't for me. > > Do you have strange umask settings, or anything else in the shell? > > -- > Nick Kew > > - > The official User-To-User support forum of the Apache HTTP > Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Premature end of script headers
All of my perl scripts generate this error when I try to have Apache serve them. I'm on RHEL with Apache 2.0.52. The simplest script I have is: #!/usr/bin/perl print "Hello"; In the error log I'm told: [Tue Feb 21 08:57:48 2006] [error] [client 10.33.1.32] Premature end of script headers: hello.cgi I've tried changing LogLevel from warn to debug and still only get this message. In httpd.conf, I load cgi_module (mod_cgi.so) at the beginning as well as suexec_module (mod_suexec.so). I also set the following: ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" AllowOverride None # Options None Options ExecCGI Order allow,deny Allow from all in /var/www, when I do ls -lh I get drwxr-xr-x 2 root root 4.0K Feb 21 08:53 cgi-bin in /var/www/cgi-bin, when I do ls -l I get -rwxr-xr-x 1 apache apache 32 Feb 20 16:01 hello.cgi I have tried changing the owner and group of hello.cgi It was at first both root and I changed it to apache (which is what httpd runs as). I've tried changing the location of the cgi-bin directory. I've tried to change the name of the file to just hello (dropping the cgi extension). I've changed permissions on both the file and the cgi-bin directory (when I do that, it will sometimes complain in suexec.log that something is writable by others). I've tried not loading suexec, but that doesn't change the result. I don't know what to do at this point. What should I try next? Thanks in advance, Tom - 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] Premature end of script headers
Try changing it to hello.pl >>> [EMAIL PROTECTED] 2/21/2006 8:12:17 AM >>> All of my perl scripts generate this error when I try to have Apache serve them. I'm on RHEL with Apache 2.0.52. The simplest script I have is: #!/usr/bin/perl print "Hello"; In the error log I'm told: [Tue Feb 21 08:57:48 2006] [error] [client 10.33.1.32] Premature end of script headers: hello.cgi I've tried changing LogLevel from warn to debug and still only get this message. In httpd.conf, I load cgi_module (mod_cgi.so) at the beginning as well as suexec_module (mod_suexec.so). I also set the following: ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" AllowOverride None # Options None Options ExecCGI Order allow,deny Allow from all in /var/www, when I do ls -lh I get drwxr-xr-x 2 root root 4.0K Feb 21 08:53 cgi-bin in /var/www/cgi-bin, when I do ls -l I get -rwxr-xr-x 1 apache apache 32 Feb 20 16:01 hello.cgi I have tried changing the owner and group of hello.cgi It was at first both root and I changed it to apache (which is what httpd runs as). I've tried changing the location of the cgi-bin directory. I've tried to change the name of the file to just hello (dropping the cgi extension). I've changed permissions on both the file and the cgi-bin directory (when I do that, it will sometimes complain in suexec.log that something is writable by others). I've tried not loading suexec, but that doesn't change the result. I don't know what to do at this point. What should I try next? Thanks in advance, Tom - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Premature end of script headers
> -Original Message- > From: Tom Cat [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 21. Februar 2006 15:12 > To: users@httpd.apache.org > Subject: [EMAIL PROTECTED] Premature end of script headers > > All of my perl scripts generate this error when I try to have Apache > serve them. I'm on RHEL with Apache 2.0.52. > > The simplest script I have is: > #!/usr/bin/perl > print "Hello"; > ... > > I don't know what to do at this point. What should I try next? RTFM? http://httpd.apache.org/docs/2.0/howto/cgi.html#writing Especially this: print "Content-type: text/html\n\n"; (you have to send a content-type for CGI to work...) Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > > Thanks in advance, > > Tom > > - > 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] > > Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX. This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - 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] Premature end of script headers
On 2/21/06, Matt Weston <[EMAIL PROTECTED]> wrote: > Try changing it to hello.pl > Thanks. Just tried that doesn't seem to care what what the file is name or what extension it has, it just keeps giving the Premature end of script headers error. I also tried just now adding use CGI::Carp 'fatalsToBrowser'; print "Content-Type: text/html\n\n"; and I still get the error. Doesn't seem to matter what's in the file either. I discovered this problem as I was trying to install MoveableType (so I really need it to work without me having to rename everything to .pl or add extra lines of code). So now what? Thanks. > > > >>> [EMAIL PROTECTED] 2/21/2006 8:12:17 AM >>> > All of my perl scripts generate this error when I try to have Apache > serve them. I'm on RHEL with Apache 2.0.52. > > The simplest script I have is: > #!/usr/bin/perl > print "Hello"; > > In the error log I'm told: > [Tue Feb 21 08:57:48 2006] [error] [client 10.33.1.32] Premature end > of script headers: hello.cgi > > I've tried changing LogLevel from warn to debug and still only get this > message. > > In httpd.conf, I load cgi_module (mod_cgi.so) at the beginning as well > as suexec_module (mod_suexec.so). > > I also set the following: > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" > > AllowOverride None > # Options None > Options ExecCGI > Order allow,deny > Allow from all > > > in /var/www, when I do ls -lh I get > drwxr-xr-x 2 root root 4.0K Feb 21 08:53 cgi-bin > > in /var/www/cgi-bin, when I do ls -l I get > -rwxr-xr-x 1 apache apache 32 Feb 20 16:01 hello.cgi > > I have tried changing the owner and group of hello.cgi It was at first > both root and I changed it to apache (which is what httpd runs as). > > I've tried changing the location of the cgi-bin directory. I've tried > to change the name of the file to just hello (dropping the cgi > extension). I've changed permissions on both the file and the cgi-bin > directory (when I do that, it will sometimes complain in suexec.log > that something is writable by others). I've tried not loading suexec, > but that doesn't change the result. > > I don't know what to do at this point. What should I try next? > > Thanks in advance, > > Tom > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - 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: RewriteRule being ignored
If memory serve me right, all mod_proxy hooks execute before mod_rewrite in Apache 2.0. Module ordering is irrelevant. -ascs -Original Message- From: Joost de Heer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 10:23 AM To: David Hull Cc: users@httpd.apache.org Subject: [EMAIL PROTECTED] Re: RewriteRule being ignored David Hull wrote: > I am running apache 2.0.50 on SuSE 9.2. I also run Tomcat 5.0.28 and > pass connections to it from Apache. I installed Apache from the SuSE package. > > My RewriteRule is not working. It appears to be completely ignored. > Connections get passed to Tomcat via the Proxy pass w/o being rewritten. > I have enabled the RewriteRuleLog and set the log level to 9. The log > file is created but is not written to. I am missing something obvious > I am sure but am too much of a newbie still to be sure just what. > > Any suggestions are appreciated. In what order are mod_proxy and mod_rewrite loaded? A gross simplification, but in general, the last loaded module gets called first. Joost - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Premature end of script headers
Hi, Apache requires CGI scripts to generate their own Content-type headers. Try #!/usr/bin/perl print "Content-type: text/plain\n\nHello"; This should work. Best Sascha - Original Message - From: "Tom Cat" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 21, 2006 3:12 PM Subject: [EMAIL PROTECTED] Premature end of script headers All of my perl scripts generate this error when I try to have Apache serve them. I'm on RHEL with Apache 2.0.52. The simplest script I have is: #!/usr/bin/perl print "Hello"; In the error log I'm told: [Tue Feb 21 08:57:48 2006] [error] [client 10.33.1.32] Premature end of script headers: hello.cgi I've tried changing LogLevel from warn to debug and still only get this message. In httpd.conf, I load cgi_module (mod_cgi.so) at the beginning as well as suexec_module (mod_suexec.so). I also set the following: ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" AllowOverride None # Options None Options ExecCGI Order allow,deny Allow from all in /var/www, when I do ls -lh I get drwxr-xr-x 2 root root 4.0K Feb 21 08:53 cgi-bin in /var/www/cgi-bin, when I do ls -l I get -rwxr-xr-x 1 apache apache 32 Feb 20 16:01 hello.cgi I have tried changing the owner and group of hello.cgi It was at first both root and I changed it to apache (which is what httpd runs as). I've tried changing the location of the cgi-bin directory. I've tried to change the name of the file to just hello (dropping the cgi extension). I've changed permissions on both the file and the cgi-bin directory (when I do that, it will sometimes complain in suexec.log that something is writable by others). I've tried not loading suexec, but that doesn't change the result. I don't know what to do at this point. What should I try next? Thanks in advance, Tom - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] forward proxy and rewrites or redirects...
Hello, I have an apache set up as proxy. Forward proxying goes fine. Reverse proying too. What I want though is to configure it so that clients when they request: http://somehost:443/someurl this test rewritten to https:/somehost:443/someurl. In other words, I want this proxy to enable clients that are not cabable of talking https to contact https only hosts anyway. How can I do this? I first thought about doing this with a rewrite rule, but this didn't work, as the rewrite rules don't even get applied to any proxy requets aparently. Thanks in advance for any suggestions. Krist -- [EMAIL PROTECTED] Solothurn, Switzerland - 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] Premature end of script headers
On Tuesday 21 February 2006 14:12, Tom Cat wrote: > All of my perl scripts generate this error when I try to have Apache > serve them. I'm on RHEL with Apache 2.0.52. > > The simplest script I have is: > #!/usr/bin/perl > print "Hello"; That's not a CGI script. > In the error log I'm told: > [Tue Feb 21 08:57:48 2006] [error] [client 10.33.1.32] Premature end > of script headers: hello.cgi Yep. > I don't know what to do at this point. What should I try next? Reading any basic introduction to CGI would be a start. -- Nick Kew - 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] Premature end of script headers
> -Original Message- > From: Tom Cat [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 21. Februar 2006 15:25 > To: users@httpd.apache.org > Subject: Re: [EMAIL PROTECTED] Premature end of script headers > > On 2/21/06, Matt Weston <[EMAIL PROTECTED]> wrote: > > Try changing it to hello.pl > > > > Thanks. Just tried that doesn't seem to care what what the file is > name or what extension it has, it just keeps giving the Premature end > of script headers error. > > I also tried just now adding > use CGI::Carp 'fatalsToBrowser'; > print "Content-Type: text/html\n\n"; > and I still get the error. Where? Be precise when posting code snippets, the position of the print statement is critical. To clear up some of the confusing advice you've been getting: - the extension is not important, .cgi is fine. - you don't need the CGI:Carp module (don't complicate life unnecessarily) - your problem is simply that you script does not output a content-type header. Did you read the doc I referred you to? If you carefully reproduce the three lines in the program in the docs, it will work. If you still have problems, run the script from the command line and post the output, ie: $ cd /var/www/cgi-bin/ $ ./hello.cgi Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > > Doesn't seem to matter what's in the file either. > > I discovered this problem as I was trying to install MoveableType (so > I really need it to work without me having to rename everything to .pl > or add extra lines of code). > > So now what? > > Thanks. > > > > > > >>> [EMAIL PROTECTED] 2/21/2006 8:12:17 AM >>> > > All of my perl scripts generate this error when I try to have Apache > > serve them. I'm on RHEL with Apache 2.0.52. > > > > The simplest script I have is: > > #!/usr/bin/perl > > print "Hello"; > > > > In the error log I'm told: > > [Tue Feb 21 08:57:48 2006] [error] [client 10.33.1.32] Premature end > > of script headers: hello.cgi > > > > I've tried changing LogLevel from warn to debug and still > only get this message. > > > > In httpd.conf, I load cgi_module (mod_cgi.so) at the > beginning as well > > as suexec_module (mod_suexec.so). > > > > I also set the following: > > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" > > > > AllowOverride None > > # Options None > > Options ExecCGI > > Order allow,deny > > Allow from all > > > > > > in /var/www, when I do ls -lh I get > > drwxr-xr-x 2 root root 4.0K Feb 21 08:53 cgi-bin > > > > in /var/www/cgi-bin, when I do ls -l I get > > -rwxr-xr-x 1 apache apache 32 Feb 20 16:01 hello.cgi > > > > I have tried changing the owner and group of hello.cgi It > was at first > > both root and I changed it to apache (which is what httpd runs as). > > > > I've tried changing the location of the cgi-bin directory. > I've tried > > to change the name of the file to just hello (dropping the cgi > > extension). I've changed permissions on both the file and > the cgi-bin > > directory (when I do that, it will sometimes complain in suexec.log > > that something is writable by others). I've tried not > loading suexec, > > but that doesn't change the result. > > > > I don't know what to do at this point. What should I try next? > > > > Thanks in advance, > > > > Tom > > > > > - > > The official User-To-User support forum of the Apache HTTP > Server Project. > > See http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: [EMAIL PROTECTED] > >" from the digest: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > The official User-To-User support forum of the Apache HTTP > Server Project. > > See http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: [EMAIL PROTECTED] > >" from the digest: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > 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] > > Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX. This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission
Re: [EMAIL PROTECTED] Premature end of script headers
On 2/21/06, Boyle Owen <[EMAIL PROTECTED]> wrote: > > To clear up some of the confusing advice you've been getting: > > - the extension is not important, .cgi is fine. > - you don't need the CGI:Carp module (don't complicate life unnecessarily) Thanks! When I removed this line, it all of a sudden started working. Maybe I had a typo or something. > - your problem is simply that you script does not output a content-type > header. Did you read the doc I referred you to? Weird, I got your "first" message, shortly after I got your "2nd" message. It's quite useful. Thanks again! - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mod_rewrite directives problem
Joost de Heer wrote: Robert Ionescu wrote: Shyne wrote: Apparently the directive RewriteCond %{REQUEST_FILENAME} !-f matches requests for existing files, which it should exactly not do. We were able to analyze the RewriteLog in a German mod_rewrite forum. The problem here was the following: %{REQUEST_FILENAME} did contain the value from %{REQUEST_URI}, namely /help/abc but not the expected and needed full physical path /var/www/help/abc. Sounds like you're using rewrites in a .htaccess file. That results in directories at the beginning being chopped off. No, the rules were placed in the virtualhost section, per-server context. I have never heard that ENVs are choped off in per-dir context, only the pattern of the RewriteRule is a filepath there (while a local URL in per-server context) which changes from the point where the .htaccess is placed (striped per-dir prefix). But the "problem" here is not the rule-pattern but the value of the ENV %{REQUEST_FILENAME} where (in per-server context) the filename field of request_rec contains the same value as the uri field does. I think this is a logical behavior, because afaik the filename translation comes in a later step of processing, so the full physical path is simply not known in this step of processing. I found also an assigned docs bug report from January 2003: http://issues.apache.org/bugzilla/show_bug.cgi?id=16402 but obviously it is not fixed yet. At least the "average user" cannot read between the lines | the value of the filename field of the internal request_rec structure | of the Apache server. | (http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond , | "Other things you should be aware of:") that filename does not (cannot) contain the full physical path in per-server context (if you don't perform an url-based sub-request lookup). -- Robert - 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] RewriteRule being ignored
David Hull wrote: ServerName www.myserver.com RewriteEngine On RewriteRule ^/gift/(.*)$ http://www.myserver.com/buy.jsp?gift=$1 RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=$1 ProxyPass /download/ http://www.myserver.com/download/ ProxyPassReverse /download/ http://www.myserver.com/download/ You're proxying to your same domain? ServerName was set to www.myserver.com and the proxying goes to www.myserver.com on port 80. May be you're trying to exclude /download/ from being proxied to :8080? If yes, I'd use ProxyPass /download ! ProxyPass / http://127.0.0.1:8080/ in order to exclude the /download path. But in this case I'd use only mod_rewrite like ServerName www.myserver.com RewriteEngine On RewriteRule ^/(gift|refer)/(.*)$ http://127.0.0.1:8080/buy.jsp?$1=$2 [P] RewriteCond $1 !^download RewriteRule ^/(.*) http://127.0.0.1:8080/$1 [P] ProxyPassReverse / http://127.0.0.1:8080/ - 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: RewriteRule being ignored
Axel-Stéphane SMORGRAV wrote: > If memory serve me right, all mod_proxy hooks execute before mod_rewrite > in Apache 2.0. Module ordering is irrelevant. In that case, reverse proxying must be done with mod_rewrite, something like (untested!): ServerName www.myserver.com RewriteEngine On RewriteCond %{REQUEST_URI} ^/gift/.* RewriteRule ^/gift/(.*)$ http://www.myserver.com/buy.jsp?gift=$1 RewriteCond %{REQUEST_URI} ^/gift/.* RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=$1 RewriteCond %{REQUEST_URI} ^/download/.* RewriteRule /(.*) http://www.myserver.com/$1 [P,L] RewriteRule /(.*) http://127.0.0.1:8080/$1 [P] ProxyPassReverse /download/ http://www.myserver.com/download/ ProxyPassReverse / http://127.0.0.1:8080/ Possibly with a few extra RewriteCond's to avoid looping. Joost - 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] Muliple Configure Warninings
The origin of these a less-than-optimal Autoconf package installed on your machine, I suggest you might want to upload a more recent version and re- ./buildconf. None of these appears to harm the resulting package. Joshua Slive wrote: On 2/19/06, David Gitman <[EMAIL PROTECTED]> wrote: Hi, I'm experiencing multiple warnings when configuring apache 2.2.0, apr. I'm running Solaris 10 01/06 x86. How can I troubleshoot this? Are they bugs? I'm not a solaris expert, but I can say with relative certainty that your compiler is not properly installed or is not designed for your version of Solaris. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Validity of regex in mod_alias context
Hi Andre´, I removed the IfModule tags as you suggested. I also removed the RedirectMatch directive from mod_alias an instead load the bulk of mod_rewrite. In the directory container I included these directives Alias /loo/ /var/www/turd/ Options SymlinksIfOwnerMatch RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(?:.+://)?(.*) https://$1 [R,L] SSLRequireSSL But it doesn't work either when I GET http://localhost/loo/, and after having raised to debug log level I get this reference to a possibly forgotten FolowSymLinks directive (only because of this did I include SymlinksIfOwnerMatch in the container) [Tue Feb 21 17:52:48 2006] [error] [] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: Actually, I don't find the error message much helpful as I did what it said an provided the SymLinksIfOwnerMatch (I realize to have spelled Links with lower case l, but I suppose case doesn't matter? > -Original Message- > From: André Malo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 21, 2006 11:55 AM > To: users@httpd.apache.org > Subject: Re: [EMAIL PROTECTED] Validity of regex in mod_alias context > > > * <[EMAIL PROTECTED]> wrote: > > > > > RedirectMatch 301 ^(?:[[:alpha:]]+://)?(.*) > > https://$1 > > > > > > > > But it doesn't work, and neither the httpd's access_log nor > > error_log (or their ssl_ namesakes) > > show up any hint why. > > > > In mod_alias'es reference doc I couldn't find a note on what kind > > of regex classes are valid > > (e.g. simple ones like the Unix sed uses, or more advanced like > > Perl's e.g. \w). > > Probably the [:alpha:] isn't recognised at all. > > httpd 2.x utilizes PCRE, so it's quite like perl (which > doesn't know the > POSIX classes). More interesting for your case: RedirectMatch > works (like > mod_rewrite) with the URL path only, so you need to use some > other logic. > > You could either use mod_rewrite to check if SSL is available, or, if > you want to avoid it, put the RedirectMatch into the HTTP > VirtualHost only. > > Side note: Try to avoid containers. They just hide > useful errors > if the module is not loaded. > > > Or could I refer to some server's environment variables like > > %{PROTO} (if such exists at all?) > > No. > > nd > > - > The official User-To-User support forum of the Apache HTTP > Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache will not start
Hi Group, I have a Ferdora Core 4 system with Apache 2.0.54 installed from rpm and it is work fine. I then installed PostgreSQL 8.1.3, MySQL 4.1.18 and PHP 4.4.2 from their tarballs. Everything compiled without any errors that I saw. When I add LoadModule PHP4 line to httpd.conf apache will not start. If I do a configtest the syntax is ok, but get the message FAILED when I run start. There is no messages in the error log file and it displays no error messages to me. Just says failed. How to I figure out that the problem is without any error messages or is there another log file I can look for an error message in. Thanks, Mark - 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: RewriteRule being ignored
Has the following been suggested yet ?? VirtualHost *:80> ServerName www.myserver.com RewriteEngine On RewriteRule ^/gift/(.*)$ http://www.myserver.com/buy.jsp?gift=$1 RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=$1 ProxyPass /gift ! ProxyPass /refer ! ProxyPass /download/ http://www.myserver.com/download/ ProxyPassReverse /download/ http://www.myserver.com/download/ ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ -ascs -Original Message- From: Joost de Heer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 4:53 PM To: Axel-Stéphane SMORGRAV; [EMAIL PROTECTED] Cc: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Re: RewriteRule being ignored Axel-Stéphane SMORGRAV wrote: > If memory serve me right, all mod_proxy hooks execute before > mod_rewrite in Apache 2.0. Module ordering is irrelevant. In that case, reverse proxying must be done with mod_rewrite, something like (untested!): ServerName www.myserver.com RewriteEngine On RewriteCond %{REQUEST_URI} ^/gift/.* RewriteRule ^/gift/(.*)$ http://www.myserver.com/buy.jsp?gift=$1 RewriteCond %{REQUEST_URI} ^/gift/.* RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=$1 RewriteCond %{REQUEST_URI} ^/download/.* RewriteRule /(.*) http://www.myserver.com/$1 [P,L] RewriteRule /(.*) http://127.0.0.1:8080/$1 [P] ProxyPassReverse /download/ http://www.myserver.com/download/ ProxyPassReverse / http://127.0.0.1:8080/ Possibly with a few extra RewriteCond's to avoid looping. Joost - 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] Validity of regex in mod_alias context
[EMAIL PROTECTED] wrote: RewriteRule ^(?:.+://)?(.*) https://$1 [R,L] This doesn't look correct. The pattern is matched against a local URL in per-server context - w/o sheme+hostname - and a local filepath in per-dir context RewriteRule ^(.*) https://example.com/loo/$1 [R,L] There is also an other issue: You're using an alias, remember the rule matches in per-dir context only against a local filepath, so you must specify the alias in the substitution, if you prefix it with sheme+hostname. [Tue Feb 21 17:52:48 2006] [error] [] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: Actually, I don't find the error message much helpful as I did what it said an provided the SymLinksIfOwnerMatch (I realize to have spelled Links with lower case l, but I suppose case doesn't matter? No, case shouldn't matter, but is there any other container or .htaccess file which might override the setting from this one? this error message is very usefully, but it looks like something is overriding your Options setting (and disabling symlinks again). All in all personally I would place the rule in per-server context (main server config section, ) but then with RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(/loo/.*) https://example.com$1 [R,L] -- Robert - 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: RewriteRule being ignored
Thanks to all who responded. Joost had it right. I changed the order of the modules that load, moving the 2 proxy modules to the end of the list as shown below. LoadModule rewrite_module /usr/lib64/apache2-prefork/mod_rewrite.so LoadModule proxy_module /usr/lib64/apache2-prefork/mod_proxy.so LoadModule proxy_http_module /usr/lib64/apache2-prefork/mod_proxy_http.so My rewrite rules are working now along with the ProxyPass statements. Thank you very much! David -Original Message- From: Joost de Heer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 2:23 AM To: David Hull Cc: users@httpd.apache.org Subject: [EMAIL PROTECTED] Re: RewriteRule being ignored David Hull wrote: > I am running apache 2.0.50 on SuSE 9.2. I also run Tomcat 5.0.28 and > pass connections to it from Apache. I installed Apache from the SuSE package. > > My RewriteRule is not working. It appears to be completely ignored. > Connections get passed to Tomcat via the Proxy pass w/o being rewritten. > I have enabled the RewriteRuleLog and set the log level to 9. The log > file is created but is not written to. I am missing something obvious > I am sure but am too much of a newbie still to be sure just what. > > Any suggestions are appreciated. In what order are mod_proxy and mod_rewrite loaded? A gross simplification, but in general, the last loaded module gets called first. Joost - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache will not start
On 2/21/06, Mark McCulligh <[EMAIL PROTECTED]> wrote: > Hi Group, > > I have a Ferdora Core 4 system with Apache 2.0.54 installed from rpm and > it is work fine. I then installed PostgreSQL 8.1.3, MySQL 4.1.18 and > PHP 4.4.2 from their tarballs. Everything compiled without any errors > that I saw. When I add LoadModule PHP4 line to httpd.conf apache will > not start. If I do a configtest the syntax is ok, but get the message > FAILED when I run start. There is no messages in the error log file and > it displays no error messages to me. Just says failed. > > How to I figure out that the problem is without any error messages or is > there another log file I can look for an error message in. Try starting httpd or apachectl directly rather than through the redhat scripts. But I'd give at least 3:1 odds that your problem is improper SELinux configuration on your new modules, meaning that the SELinux-restricted httpd cannot load them or one of their dependencies. I don't have the recipe for the solution, but check the links under "Permission Denied" here: http://httpd.apache.org/docs/2.2/faq/error.html#error.permissiondenied Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] [OT] 3rdparty advice - mod_proxy_html or similar
hello this is off-topic, so please respond off list ... we are in a situation where we need to integrate a number of external sites into our portal. currently this integration is done via a normal apache2.2 reverse proxy. now it's getting particularly on my nerves that every time we integrate a new solution we have to argument about why these externals might need to rewrite their links (and a few other elements) in order for the integration to work. the situation is problematic because 1) we don't want to loose too much performance since there are quite a lot of load already 2) we are running apache on windows one solution that springs to mind is mod_proxy_html, that definitely could do a lot (maybe all) of the work. what i would like to know is: 1) are people using this on high traffic sites, and what about performance after implementation ? 2) is it advisable to run it on windows (i have found a downloadable binary at apachelounge) 3) if other people have a similar setup i would be very interested to hear about your implementation. thanks ./allan - 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 will not start
Joshua Slive wrote: On 2/21/06, Mark McCulligh <[EMAIL PROTECTED]> wrote: Hi Group, I have a Ferdora Core 4 system with Apache 2.0.54 installed from rpm and it is work fine. I then installed PostgreSQL 8.1.3, MySQL 4.1.18 and PHP 4.4.2 from their tarballs. Everything compiled without any errors that I saw. When I add LoadModule PHP4 line to httpd.conf apache will not start. If I do a configtest the syntax is ok, but get the message FAILED when I run start. There is no messages in the error log file and it displays no error messages to me. Just says failed. How to I figure out that the problem is without any error messages or is there another log file I can look for an error message in. Try starting httpd or apachectl directly rather than through the redhat scripts. But I'd give at least 3:1 odds that your problem is improper SELinux configuration on your new modules, meaning that the SELinux-restricted httpd cannot load them or one of their dependencies. I don't have the recipe for the solution, but check the links under "Permission Denied" here: http://httpd.apache.org/docs/2.2/faq/error.html#error.permissiondenied Thanks Joshua, I will disable SELinux and see if it solves my problem. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache/ODBC
Hello, I am having trouble determining how to make an application work on the Apache web server. Currently this application is installed on a Win2003 Server using IIS. It is based on Perl with databases in FoxPro files. We are starting a long drawn out process of migrating to a Java application probably running Tomcat and MS SQL. I have been asked to first develop a module using the ODBC interface that will extract data from the FoxPro files and build flat files that other Perl programs can access. (Please don’t respond that I shouldn’t be doing this. I am fully aware of the inadvisability of this approach. However, this is the only way management would agree to consider this migration. If I can’t get this step to work management may trash the entire project. I have to prove the new technology each step of the way.) I have written a Java module that accesses the FoxPro files and generates the proper flat files. I have also executed the module from a Perl module using the “system()” command. But when I attempt to execute the Java module from Perl as part of a web CGI running under Apache it fails. I get the message: ERROR 2006-02-21 15:06:26,421 [main] CamaSource::getConnection:41 getConnection() failed ERROR 2006-02-21 15:06:26,421 [main] CamaSource::getConnection:42 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified The data source IS valid as this same module runs both independently as well as from a Perl program run on the command line. The only real difference is that the failure happens when the connection is attempted from the web environment. It appears that Apache is masking or preventing access to the ODBC data sources. I have been searching message boards and blogs for 2 days and have found a lot of references to the libodbc.so module for Apache but can’t really find any direct reference to how to install/configure it or where it can be obtained. I am stuck and getting into a real time issue. Can someone please help instruct me how to set up Apache on WinXP to allow modules access to ODBC data sources? It would be greatly appreciated… Thanks, Glenn Puckett
[EMAIL PROTECTED] REMOTE_HOST empty after moving from internal/external DNS to split DNS
Hello there, I have apache 2.0.55 on Linix RH 7.2. I had internal DNS on that server and external on firewall (RH Linux too). I have terminated internal, configured split zone DNS on firewall changed resolver.conf to firewall ip. All web pages are working, except apache logging. It is not logging domain names only ip's. It has changed after I have terminated internal DNS. What is interesting I can get answer from nslookup or dig nslookup 192.168.0.73 .. host.mydomain.com But apache would log 192.168.0.73 instead of name. Any advice would be greatly appreciated because I'm lost. regards Slawomir - 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] suexec
hi list i m wondering that my cgi scripts are being access denied, i thin kits matter of suexec but i m not finding any help about how to use it i placed SuexecUserGroup mine mine but when restarting it says configuration broken, ignoring restart is it a wrong placement of directive Regards Azeem - 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] suexec
On 2/21/06, azeem ahmad <[EMAIL PROTECTED]> wrote: > hi list > i m wondering that my cgi scripts are being access denied, i thin kits > matter of suexec > but i m not finding any help about how to use it > i placed > SuexecUserGroup mine mine > but when restarting it says > configuration broken, ignoring restart > is it a wrong placement of directive To see if suexec is really the problem, try renaming the suexec binary and then restarting the server. If the problem goes away, you know suexec is at fault; otherwise, you need to look elsewhere (start with the error_log). Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] access denied
hi list, my server is denying access to cgi-bin, i m trying on it for a while, before that it was even saying that premature end of script, but now after some modifications (adding cgi-bin directory to virtual host) it says access denied following is the config - ServerAlias mine.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/mine/public_html BytesLog domlogs/mine.com-bytes_log ServerName www.mine.com User mine Group mine CustomLog /usr/local/apache/domlogs/mine.com combined ScriptAlias /cgi-bin/ /home/mine/public_html/cgi-bin/ Options +Indexes +ExecCGI Order allow,deny DirectoryIndex index.cgi AllowOverride None - the error it gives is [Tue Feb 21 14:15:48 2006] [error] [client 80.231.220.2] client denied by server configuration: /home/mine/public_html/cgi-bin/dgate.html whats is the error in fact Regards Azeem - 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] access denied
On 2/21/06, azeem ahmad <[EMAIL PROTECTED]> wrote: > > Options +Indexes +ExecCGI > Order allow,deny > DirectoryIndex index.cgi > AllowOverride None > > > - > > the error it gives is > [Tue Feb 21 14:15:48 2006] [error] [client 80.231.220.2] client denied by > server configuration: /home/mine/public_html/cgi-bin/dgate.html > > whats is the error in fact You need Allow from all in the section. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] access denied
azeem ahmad wrote: Options +Indexes +ExecCGI Order allow,deny looks like the allow directive is missing somewhere. Try to use Order allow,deny allow from all -- Robert - 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] access denied
From: Robert Ionescu <[EMAIL PROTECTED]> Reply-To: users@httpd.apache.org To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] access denied Date: Tue, 21 Feb 2006 23:31:28 +0100 azeem ahmad wrote: Options +Indexes +ExecCGI Order allow,deny looks like the allow directive is missing somewhere. Try to use Order allow,deny allow from all i did allow from all, then it says the error is "premature end of script headers" Regards Azeem - 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] access denied
azeem ahmad wrote: From: Robert Ionescu <[EMAIL PROTECTED]> [...] azeem ahmad wrote: Options +Indexes +ExecCGI Order allow,deny looks like the allow directive is missing somewhere. Try to use Order allow,deny allow from all i did allow from all, then it says the error is "premature end of script This looks like a problem somewhere inside of your cgi script. -- Robert - 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] access denied
On 2/21/06, azeem ahmad <[EMAIL PROTECTED]> wrote: > > i did allow from all, then it says the error is "premature end of script > headers" http://httpd.apache.org/docs/2.2/howto/cgi.html#troubleshoot Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Providing pwd&usr with cgi URL
Hello I need to programmatically connect to a cgi script at a domain that is password protected. Let's say the URL for the script is http://www.somedomain.com/cgi-bin/py/dothis.py and http://www.somedomain.com is restricted access requiring a username and password 1)Can I supply the user and password as variables? Example: http://www.somedomain.com/cgi-bin/py/dothis.py?uservariable=user&pwdvariable=pwd If so: a)What is the name of the user variable? b)What is the name of the password variable? c)Are any other parameters required? 2)What server-sider configuration if any is required? Pointers to relevant documentation is invited. thank you tim -- Tim Johnson <[EMAIL PROTECTED]> http://www.alaska-internet-solutions.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Providing pwd&usr with cgi URL
It was thus said that the Great Tim Johnson once stated: > > Hello > > I need to programmatically connect to a cgi script at a domain > that is password protected. > Let's say the URL for the script is > http://www.somedomain.com/cgi-bin/py/dothis.py > and > http://www.somedomain.com is restricted access requiring a username and > password > > 1)Can I supply the user and password as variables? > Example: > > http://www.somedomain.com/cgi-bin/py/dothis.py?uservariable=user&pwdvariable=pwd > If so: > a)What is the name of the user variable? > b)What is the name of the password variable? > c)Are any other parameters required? > > 2)What server-sider configuration if any is required? > > Pointers to relevant documentation is invited. > thank you If it's the web server that's requesting authentication (a browser will typically throw up a diaglog box asking for a username and password and if not given, or incorrect, you'll get an HTTP 403 error), then you'll need to read RFC-2616 and RFC-2617 [1]. Otherwise (if it's a CGI script that's doing the authentication) you'll need to figure out what the script wants and for that, you may want to start with the CGI spec [2] and possibly cookies [3]. -spc (There might be tutorials you can use, but I'm not sure which ones are good ) [1] Available at http://www.ietf.org/rfc/ [2] http://www.w3.org/CGI/ [3] http://wp.netscape.com/newsref/std/cookie_spec.html - 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] Basic question
Hey Users,I know that this is probably off the scope of what the mailing list is used for, but I don't know of a better group that I could ask. Respond privately if this is too far off of our subject.I know that if you telnet into a web server port 80, you can make GET requests ("GET /index.html HTTP/1.0"), but how can you specify which VirtualHost you want to access? Is there a way that you can? I have tried, to no avail, adding the full FQDN into my GET request. I am needing to do some Server testing, with out a DNS to run off of, so I need to be able to manually request the correct info. Thanks in advanceTezyn
Re: [EMAIL PROTECTED] Basic question
You can either use: GET http://wolever.wolever.net/ HTTP/1.1 or specify a host: GET / HTTP/1.1 Host: wolever.wolever.net On 2/21/06, Tezyn Drasdin <[EMAIL PROTECTED]> wrote: > Hey Users, > > I know that this is probably off the scope of what the mailing list is used > for, but I don't know of a better group that I could ask. Respond privately > if this is too far off of our subject. > > I know that if you telnet into a web server port 80, you can make GET > requests ("GET /index.html HTTP/1.0"), but how can you specify which > VirtualHost you want to access? Is there a way that you can? I have tried, > to no avail, adding the full FQDN into my GET request. I am needing to do > some Server testing, with out a DNS to run off of, so I need to be able to > manually request the correct info. > > > Thanks in advance > Tezyn > - 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] Basic question
On 2/21/06, David Wolever <[EMAIL PROTECTED]> wrote: You can either use:GET http://wolever.wolever.net/ HTTP/1.1or specify a host:GET / HTTP/1.1Host: wolever.wolever.net The thing about that is it still requires that I either modify the hosts file, or it needs Name Resolution. I am going to be working on different computers, and they won't let me go around and modify all of the hosts file every time I need to run a test, so I have to figure out how I can telnet into the server, and Pass the information that it needs to identify which VirtualHost that needs to respond now that I say it, it sounds like a problem that information that I need to pass while I am making the connection, and not after
Re: [EMAIL PROTECTED] Basic question
I don't think so... You'll connect to the server hosting the virtual hosts (be it top-level or below that), then just request something else. For example, both gilabs.com and gitesting.com are hosted on 216.193.217.198. If I connect to 216.193.217.198 and ask for gilabs.com, that is what I get, and vice-versa. For example: Trying 216.193.217.198... Connected to 216.193.217.198. Escape character is '^]'. GET / HTTP/1.1 Host: gilabs.com HTTP/1.1 302 Date: Wed, 22 Feb 2006 04:16:15 GMT Server: Apache Web Server Location: main/ and Connected to 216.193.217.198. Escape character is '^]'. GET / HTTP/1.1 Host: gitesting.com HTTP/1.1 200 OK Date: Wed, 22 Feb 2006 04:17:09 GMT Server: Apache Web Server Try it for yourself :) If you're still having trouble, feel free to contact me off-list. David On 2/21/06, Tezyn Drasdin <[EMAIL PROTECTED]> wrote: > > > On 2/21/06, David Wolever <[EMAIL PROTECTED]> wrote: > > You can either use: > > GET http://wolever.wolever.net/ HTTP/1.1 > > or specify a host: > > GET / HTTP/1.1 > > Host: wolever.wolever.net > > > > The thing about that is it still requires that I either modify the hosts > file, or it needs Name Resolution. I am going to be working on different > computers, and they won't let me go around and modify all of the hosts file > every time I need to run a test, so I have to figure out how I can telnet > into the server, and Pass the information that it needs to identify which > VirtualHost that needs to respond now that I say it, it sounds like a > problem that information that I need to pass while I am making the > connection, and not after > - 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] Basic question
It was thus said that the Great Tezyn Drasdin once stated: > > On 2/21/06, David Wolever <[EMAIL PROTECTED]> wrote: > > > > You can either use: > > GET http://wolever.wolever.net/ HTTP/1.1 > > or specify a host: > > GET / HTTP/1.1 > > Host: wolever.wolever.net > > > > The thing about that is it still requires that I either modify the hosts > file, or it needs Name Resolution. I am going to be working on different > computers, and they won't let me go around and modify all of the hosts file > every time I need to run a test, so I have to figure out how I can telnet > into the server, and Pass the information that it needs to identify which > VirtualHost that needs to respond now that I say it, it sounds like a > problem that information that I need to pass while I am making the > connection, and not after Nope. On my development server, I set up a virtual domain for "boston.groomlake.area51" (which is *not* a valid Top Level Domain) and then did the following (lines marked with a "*" is where I typed): [spc]marvin:~>telnet 66.252.226.51 80 Trying 66.252.226.51... Connected to linus.area51.conman.org. Escape character is '^]'. * HEAD / HTTP/1.0 * Host: boston.groomlake.area51 * HTTP/1.1 200 OK Date: Wed, 22 Feb 2006 05:43:53 GMT Server: Apache/1.3.31 (Unix) Last-Modified: Tue, 30 Aug 2005 02:18:35 GMT ETag: "85876-339-4313c1fb" Accept-Ranges: bytes Content-Length: 825 Connection: close Content-Type: text/html Connection closed by foreign host. [spc]marvin:~> -spc (No DNS required) - 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] PidFile tag in httpd.conf for Apache 2.2
The line "PidFile logs/httpd.pid" used to exist in all versions Apache HTTP Server prior to 2.2.0 version. Any specific reason as to why this was removed from httpd.conf for Apache 2.2.0 version? I could not get the details in the release documentation. Thanks, Thomas - 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] Re: PidFile tag in httpd.conf for Apache 2.2
Vengal, Thomas (OpenViewR&D) wrote: The line "PidFile logs/httpd.pid" used to exist in all versions Apache HTTP Server prior to 2.2.0 version. Any specific reason as to why this was removed from httpd.conf for Apache 2.2.0 version? I could not get the details in the release documentation. It was removed from the default configuration because as indicated in the documentation[1], "logs/httpd.pid" is the default value for this directive. As a general rule, any directive that has a sensible default value, and does not normally need to be changed by the end user, was removed from the default configuration in 2.2. You are still free to add it back to your configuration, if you wish. [1] - http://httpd.apache.org/docs/2.2/mod/mpm_common.html#pidfile - 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] bandwidth
Hello I want to calculate bandwidth for each individual domain running on my system,, how i can do so. Second thing my access_log and error_log files are empty, although CustomLog logs/access_log combined and ErrorLog logs/error_log are enabled. How i can check version of apache through command line. Thanks!!! - 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]