[users@httpd] Is Drupal and moodle is an apache server?

2014-08-05 Thread Mark jensen
I have managed to redirect unwanted users using Rewrite engine:

RewriteEngine on
RewriteCond   %{REMOTE_ADDR}   ^192\.168\.1\.7$  [NC]
RewriteCond   %{REQUEST_URI}   ^/protected/.* [NC]
RewriteRule   ^(.*)$   - [R=404,L]

Can I use this configuration with Drupal and moodle too, because they based on 
Apache server?

  

Re: [users@httpd] stops listening to IP

2014-08-05 Thread Al

Hi,

On Aug 5, 2014, at 4:51 PM, Jeff Trawick wrote:


On Tue, Aug 5, 2014 at 3:27 PM, Al  wrote:
Hi,

I am running apache 2.4. We are now having a problem with the  
server, it stops answering requests on one IP. It goes down about  
every 45 minutes. I have since switched one of the websites to  
another IP and all it did was transfer the problem to the other IP.  
I am now using both IPs for that website and I have disabled keep  
alive. It now needs to be restarted every 5 hours. Does anyone have  
any ideas as to what is going on?


operating system?
Listen directives?
any IPv6 interfaces?
which MPM?
anything in error log?
anything in system log related to the interface that no longer  
works with httpd?


I should have included this info. OS NetBSD 5.2, Listen 0.0.0.0:80  
Listen 0.0.0.0:443, no IPv6, prefork, nothing in any of the logs that  
I can find.


Thanks,
Al

Re: [users@httpd] stops listening to IP

2014-08-05 Thread Jeff Trawick
On Tue, Aug 5, 2014 at 3:27 PM, Al  wrote:

> Hi,
>
> I am running apache 2.4. We are now having a problem with the server, it
> stops answering requests on one IP. It goes down about every 45 minutes. I
> have since switched one of the websites to another IP and all it did was
> transfer the problem to the other IP. I am now using both IPs for that
> website and I have disabled keep alive. It now needs to be restarted every
> 5 hours. Does anyone have any ideas as to what is going on?
>

operating system?
Listen directives?
any IPv6 interfaces?
which MPM?
anything in error log?
anything in system log related to the interface that no longer works with
httpd?


>
> Thanks,
> Al
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/
http://edjective.org/


[users@httpd] stops listening to IP

2014-08-05 Thread Al

Hi,

I am running apache 2.4. We are now having a problem with the server,  
it stops answering requests on one IP. It goes down about every 45  
minutes. I have since switched one of the websites to another IP and  
all it did was transfer the problem to the other IP. I am now using  
both IPs for that website and I have disabled keep alive. It now  
needs to be restarted every 5 hours. Does anyone have any ideas as to  
what is going on?


Thanks,
Al


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Windows Apache 2.4.9 restarts itself

2014-08-05 Thread Jeff Trawick
On Tue, Aug 5, 2014 at 8:25 AM, Jeff Trawick  wrote:

> On Tue, Aug 5, 2014 at 6:35 AM, Mar Imp  wrote:
>
>> Hi Jeff,
>>
>> after 5 Days the next Apache restart
>>
>> it contains a new Error:
>> [Tue Aug 05 01:36:30.138535 2014] [mpm_winnt:error] [pid 31884:tid
>> 444] (OS 6)The handle is invalid.  : AH00360: Child: Failure releasing
>> the start mutex
>>
>> Logfile:
>> [Tue Aug 05 01:36:29.137575 2014] [mpm_winnt:crit] [pid 31884:tid 444]
>> (OS 6)The handle is invalid.  : AH00356: Child: WAIT_FAILED --
>> shutting down server
>> [Tue Aug 05 01:36:29.137575 2014] [mpm_winnt:crit] [pid 31884:tid 444]
>> (OS 6)The handle is invalid.  : AH02644: Child: Event handle #0 (8) is
>> invalid
>> [Tue Aug 05 01:36:29.925336 2014] [mpm_winnt:warn] [pid 31884:tid 536]
>> (OS 10038)An operation was attempted on something that is not a
>> socket.  : AH00344: accept() failed.
>> [Tue Aug 05 01:36:30.138535 2014] [mpm_winnt:error] [pid 31884:tid
>> 444] (OS 6)The handle is invalid.  : AH00360: Child: Failure releasing
>> the start mutex
>> [Tue Aug 05 01:36:45.466468 2014] [mpm_winnt:warn] [pid 31884:tid
>> 5696] (OS 10038)An operation was attempted on something that is not a
>> socket.  : AH00344: accept() failed.
>> [Tue Aug 05 01:37:01.077535 2014] [mpm_winnt:notice] [pid 31884:tid
>> 444] AH00362: Child: Waiting 30 more seconds for 9 worker threads to
>> finish.
>> [Tue Aug 05 01:37:31.113122 2014] [mpm_winnt:notice] [pid 31884:tid
>> 444] AH00362: Child: Waiting 0 more seconds for 6 worker threads to
>> finish.
>> [Tue Aug 05 01:37:31.213217 2014] [mpm_winnt:notice] [pid 31884:tid
>> 444] AH00363: Child: Terminating 6 threads that failed to exit.
>> [Tue Aug 05 01:37:31.213217 2014] [mpm_winnt:notice] [pid 31884:tid
>> 444] AH00364: Child: All worker threads have exited.
>> [Tue Aug 05 01:37:31.370367 2014] [mpm_winnt:notice] [pid 13424:tid
>> 536] AH00428: Parent: child process 31884 exited with status 0 --
>> Restarting.
>> [Tue Aug 05 01:37:32.213174 2014] [mpm_winnt:notice] [pid 13424:tid
>> 536] AH00455: Apache/2.4.10 (Win64) OpenSSL/1.0.1h configured --
>> resuming normal operations
>> [Tue Aug 05 01:37:32.213174 2014] [mpm_winnt:notice] [pid 13424:tid
>> 536] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
>> [Tue Aug 05 01:37:32.213174 2014] [core:notice] [pid 13424:tid 536]
>> AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
>> [Tue Aug 05 01:37:32.214178 2014] [mpm_winnt:notice] [pid 13424:tid
>> 536] AH00418: Parent: Created child process 31668
>> [Tue Aug 05 01:37:33.568475 2014] [mpm_winnt:notice] [pid 31668:tid
>> 396] AH00354: Child: Starting 300 worker threads.
>>
>> Did you have time to investigate any further?
>> Can I help in any way ?
>>
>
> I am spending a modest amount of time on this.  For now, keep posting when
> you see something different in the log at the time of failure.
>
>
>
>>
>> thx and kind regards
>> Mar Imp
>>
>>
>> 2014-07-31 15:44 GMT+02:00 Mar Imp :
>> > Hi,
>> >
>> > -> the Apache server restarted itself again:
>> >
>> > [Wed Jul 30 22:15:21.604987 2014] [mpm_winnt:crit] [pid 34808:tid 464]
>> > (OS 6)The handle is invalid.  : AH00356: Child: WAIT_FAILED --
>> > shutting down server
>> > [Wed Jul 30 22:15:21.604987 2014] [mpm_winnt:crit] [pid 34808:tid 464]
>> > (OS 6)The handle is invalid.  : AH02644: Child: Event handle #0 (8) is
>> > invalid
>> > [Wed Jul 30 22:15:23.026349 2014] [mpm_winnt:warn] [pid 34808:tid
>> > 4624] (OS 10038)An operation was attempted on something that is not a
>> > socket.  : AH00344: accept() failed.
>> > [Wed Jul 30 22:15:39.956951 2014] [mpm_winnt:warn] [pid 34808:tid
>> > 3092] (OS 10038)An operation was attempted on something that is not a
>> > socket.  : AH00344: accept() failed.
>> > [Wed Jul 30 22:15:53.544739 2014] [mpm_winnt:notice] [pid 34808:tid
>> > 464] AH00362: Child: Waiting 30 more seconds for 3 worker threads to
>> > finish.
>> > [Wed Jul 30 22:16:16.571534 2014] [mpm_winnt:notice] [pid 34808:tid
>> > 464] AH00364: Child: All worker threads have exited.
>> > [Wed Jul 30 22:16:16.687244 2014] [mpm_winnt:notice] [pid 13424:tid
>> > 536] AH00428: Parent: child process 34808 exited with status 0 --
>> > Restarting.
>> > [Wed Jul 30 22:16:17.454981 2014] [mpm_winnt:notice] [pid 13424:tid
>> > 536] AH00455: Apache/2.4.10 (Win64) OpenSSL/1.0.1h configured --
>> > resuming normal operations
>> > [Wed Jul 30 22:16:17.454981 2014] [mpm_winnt:notice] [pid 13424:tid
>> > 536] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
>> > [Wed Jul 30 22:16:17.454981 2014] [core:notice] [pid 13424:tid 536]
>> > AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
>> > [Wed Jul 30 22:16:17.455982 2014] [mpm_winnt:notice] [pid 13424:tid
>> > 536] AH00418: Parent: Created child process 31884
>> > [Wed Jul 30 22:16:18.727198 2014] [mpm_winnt:notice] [pid 31884:tid
>> > 444] AH00354: Child: Starting 300 worker threads.
>> >
>> > -> There are no suspicious entries in other apache logfiles or in the

Re: [users@httpd] Redirect to other server if file/directory does not exists.

2014-08-05 Thread Mimiko

On 05.08.2014 15:40, Igor Cicimov wrote:

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ http://other-server%{REQUEST_URI}
 [P,L]


This worked. The problem alsa was because I was calling:
httpd://server1/ and rewrite where calling httpd://server2/index.php
But index.php was not present on the second server. I thought that 
server2 would be called like server1 without autoappending index.php.


--
Mimiko desu.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Redirect to other server if file/directory does not exists.

2014-08-05 Thread Igor Cicimov
>
> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_URI} ^/(.*)$
> RewriteRule ^/(.*)$ http://other-server/%1 [P,L]
>
> Does not work. Local resources if esists are shown, but remote resources
> are 404 not found "/". Nor %{REQUEST_FILENAME} helps.
>

You have probably some other rule interfering before this one. Anyway,
enable mod_rewrite logging and check in the logs what's going on.

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

See RewriteLog and RewriteLogLevel.

Also no need of the 3rd RewriteCond, since you want to use the REQUEST_URI
just write:

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ http://other-server%{REQUEST_URI} [P,L]


Re: [users@httpd] Windows Apache 2.4.9 restarts itself

2014-08-05 Thread Jeff Trawick
On Tue, Aug 5, 2014 at 6:35 AM, Mar Imp  wrote:

> Hi Jeff,
>
> after 5 Days the next Apache restart
>
> it contains a new Error:
> [Tue Aug 05 01:36:30.138535 2014] [mpm_winnt:error] [pid 31884:tid
> 444] (OS 6)The handle is invalid.  : AH00360: Child: Failure releasing
> the start mutex
>
> Logfile:
> [Tue Aug 05 01:36:29.137575 2014] [mpm_winnt:crit] [pid 31884:tid 444]
> (OS 6)The handle is invalid.  : AH00356: Child: WAIT_FAILED --
> shutting down server
> [Tue Aug 05 01:36:29.137575 2014] [mpm_winnt:crit] [pid 31884:tid 444]
> (OS 6)The handle is invalid.  : AH02644: Child: Event handle #0 (8) is
> invalid
> [Tue Aug 05 01:36:29.925336 2014] [mpm_winnt:warn] [pid 31884:tid 536]
> (OS 10038)An operation was attempted on something that is not a
> socket.  : AH00344: accept() failed.
> [Tue Aug 05 01:36:30.138535 2014] [mpm_winnt:error] [pid 31884:tid
> 444] (OS 6)The handle is invalid.  : AH00360: Child: Failure releasing
> the start mutex
> [Tue Aug 05 01:36:45.466468 2014] [mpm_winnt:warn] [pid 31884:tid
> 5696] (OS 10038)An operation was attempted on something that is not a
> socket.  : AH00344: accept() failed.
> [Tue Aug 05 01:37:01.077535 2014] [mpm_winnt:notice] [pid 31884:tid
> 444] AH00362: Child: Waiting 30 more seconds for 9 worker threads to
> finish.
> [Tue Aug 05 01:37:31.113122 2014] [mpm_winnt:notice] [pid 31884:tid
> 444] AH00362: Child: Waiting 0 more seconds for 6 worker threads to
> finish.
> [Tue Aug 05 01:37:31.213217 2014] [mpm_winnt:notice] [pid 31884:tid
> 444] AH00363: Child: Terminating 6 threads that failed to exit.
> [Tue Aug 05 01:37:31.213217 2014] [mpm_winnt:notice] [pid 31884:tid
> 444] AH00364: Child: All worker threads have exited.
> [Tue Aug 05 01:37:31.370367 2014] [mpm_winnt:notice] [pid 13424:tid
> 536] AH00428: Parent: child process 31884 exited with status 0 --
> Restarting.
> [Tue Aug 05 01:37:32.213174 2014] [mpm_winnt:notice] [pid 13424:tid
> 536] AH00455: Apache/2.4.10 (Win64) OpenSSL/1.0.1h configured --
> resuming normal operations
> [Tue Aug 05 01:37:32.213174 2014] [mpm_winnt:notice] [pid 13424:tid
> 536] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
> [Tue Aug 05 01:37:32.213174 2014] [core:notice] [pid 13424:tid 536]
> AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
> [Tue Aug 05 01:37:32.214178 2014] [mpm_winnt:notice] [pid 13424:tid
> 536] AH00418: Parent: Created child process 31668
> [Tue Aug 05 01:37:33.568475 2014] [mpm_winnt:notice] [pid 31668:tid
> 396] AH00354: Child: Starting 300 worker threads.
>
> Did you have time to investigate any further?
> Can I help in any way ?
>

I am spending a modest amount of time on this.  For now, keep posting when
you see something different in the log at the time of failure.



>
> thx and kind regards
> Mar Imp
>
>
> 2014-07-31 15:44 GMT+02:00 Mar Imp :
> > Hi,
> >
> > -> the Apache server restarted itself again:
> >
> > [Wed Jul 30 22:15:21.604987 2014] [mpm_winnt:crit] [pid 34808:tid 464]
> > (OS 6)The handle is invalid.  : AH00356: Child: WAIT_FAILED --
> > shutting down server
> > [Wed Jul 30 22:15:21.604987 2014] [mpm_winnt:crit] [pid 34808:tid 464]
> > (OS 6)The handle is invalid.  : AH02644: Child: Event handle #0 (8) is
> > invalid
> > [Wed Jul 30 22:15:23.026349 2014] [mpm_winnt:warn] [pid 34808:tid
> > 4624] (OS 10038)An operation was attempted on something that is not a
> > socket.  : AH00344: accept() failed.
> > [Wed Jul 30 22:15:39.956951 2014] [mpm_winnt:warn] [pid 34808:tid
> > 3092] (OS 10038)An operation was attempted on something that is not a
> > socket.  : AH00344: accept() failed.
> > [Wed Jul 30 22:15:53.544739 2014] [mpm_winnt:notice] [pid 34808:tid
> > 464] AH00362: Child: Waiting 30 more seconds for 3 worker threads to
> > finish.
> > [Wed Jul 30 22:16:16.571534 2014] [mpm_winnt:notice] [pid 34808:tid
> > 464] AH00364: Child: All worker threads have exited.
> > [Wed Jul 30 22:16:16.687244 2014] [mpm_winnt:notice] [pid 13424:tid
> > 536] AH00428: Parent: child process 34808 exited with status 0 --
> > Restarting.
> > [Wed Jul 30 22:16:17.454981 2014] [mpm_winnt:notice] [pid 13424:tid
> > 536] AH00455: Apache/2.4.10 (Win64) OpenSSL/1.0.1h configured --
> > resuming normal operations
> > [Wed Jul 30 22:16:17.454981 2014] [mpm_winnt:notice] [pid 13424:tid
> > 536] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
> > [Wed Jul 30 22:16:17.454981 2014] [core:notice] [pid 13424:tid 536]
> > AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
> > [Wed Jul 30 22:16:17.455982 2014] [mpm_winnt:notice] [pid 13424:tid
> > 536] AH00418: Parent: Created child process 31884
> > [Wed Jul 30 22:16:18.727198 2014] [mpm_winnt:notice] [pid 31884:tid
> > 444] AH00354: Child: Starting 300 worker threads.
> >
> > -> There are no suspicious entries in other apache logfiles or in the
> > windows event log.
> >
> > -> you asked about loaded modules:
> >
> > C:\Apache24\bin>httpd.exe -t -D DUMP_MODULES
> > Loaded Modules:
> >  core_module (sta

Re: [users@httpd] Windows Apache 2.4.9 restarts itself

2014-08-05 Thread Mar Imp
Hi Jeff,

after 5 Days the next Apache restart

it contains a new Error:
[Tue Aug 05 01:36:30.138535 2014] [mpm_winnt:error] [pid 31884:tid
444] (OS 6)The handle is invalid.  : AH00360: Child: Failure releasing
the start mutex

Logfile:
[Tue Aug 05 01:36:29.137575 2014] [mpm_winnt:crit] [pid 31884:tid 444]
(OS 6)The handle is invalid.  : AH00356: Child: WAIT_FAILED --
shutting down server
[Tue Aug 05 01:36:29.137575 2014] [mpm_winnt:crit] [pid 31884:tid 444]
(OS 6)The handle is invalid.  : AH02644: Child: Event handle #0 (8) is
invalid
[Tue Aug 05 01:36:29.925336 2014] [mpm_winnt:warn] [pid 31884:tid 536]
(OS 10038)An operation was attempted on something that is not a
socket.  : AH00344: accept() failed.
[Tue Aug 05 01:36:30.138535 2014] [mpm_winnt:error] [pid 31884:tid
444] (OS 6)The handle is invalid.  : AH00360: Child: Failure releasing
the start mutex
[Tue Aug 05 01:36:45.466468 2014] [mpm_winnt:warn] [pid 31884:tid
5696] (OS 10038)An operation was attempted on something that is not a
socket.  : AH00344: accept() failed.
[Tue Aug 05 01:37:01.077535 2014] [mpm_winnt:notice] [pid 31884:tid
444] AH00362: Child: Waiting 30 more seconds for 9 worker threads to
finish.
[Tue Aug 05 01:37:31.113122 2014] [mpm_winnt:notice] [pid 31884:tid
444] AH00362: Child: Waiting 0 more seconds for 6 worker threads to
finish.
[Tue Aug 05 01:37:31.213217 2014] [mpm_winnt:notice] [pid 31884:tid
444] AH00363: Child: Terminating 6 threads that failed to exit.
[Tue Aug 05 01:37:31.213217 2014] [mpm_winnt:notice] [pid 31884:tid
444] AH00364: Child: All worker threads have exited.
[Tue Aug 05 01:37:31.370367 2014] [mpm_winnt:notice] [pid 13424:tid
536] AH00428: Parent: child process 31884 exited with status 0 --
Restarting.
[Tue Aug 05 01:37:32.213174 2014] [mpm_winnt:notice] [pid 13424:tid
536] AH00455: Apache/2.4.10 (Win64) OpenSSL/1.0.1h configured --
resuming normal operations
[Tue Aug 05 01:37:32.213174 2014] [mpm_winnt:notice] [pid 13424:tid
536] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
[Tue Aug 05 01:37:32.213174 2014] [core:notice] [pid 13424:tid 536]
AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Tue Aug 05 01:37:32.214178 2014] [mpm_winnt:notice] [pid 13424:tid
536] AH00418: Parent: Created child process 31668
[Tue Aug 05 01:37:33.568475 2014] [mpm_winnt:notice] [pid 31668:tid
396] AH00354: Child: Starting 300 worker threads.

Did you have time to investigate any further?
Can I help in any way ?

thx and kind regards
Mar Imp


2014-07-31 15:44 GMT+02:00 Mar Imp :
> Hi,
>
> -> the Apache server restarted itself again:
>
> [Wed Jul 30 22:15:21.604987 2014] [mpm_winnt:crit] [pid 34808:tid 464]
> (OS 6)The handle is invalid.  : AH00356: Child: WAIT_FAILED --
> shutting down server
> [Wed Jul 30 22:15:21.604987 2014] [mpm_winnt:crit] [pid 34808:tid 464]
> (OS 6)The handle is invalid.  : AH02644: Child: Event handle #0 (8) is
> invalid
> [Wed Jul 30 22:15:23.026349 2014] [mpm_winnt:warn] [pid 34808:tid
> 4624] (OS 10038)An operation was attempted on something that is not a
> socket.  : AH00344: accept() failed.
> [Wed Jul 30 22:15:39.956951 2014] [mpm_winnt:warn] [pid 34808:tid
> 3092] (OS 10038)An operation was attempted on something that is not a
> socket.  : AH00344: accept() failed.
> [Wed Jul 30 22:15:53.544739 2014] [mpm_winnt:notice] [pid 34808:tid
> 464] AH00362: Child: Waiting 30 more seconds for 3 worker threads to
> finish.
> [Wed Jul 30 22:16:16.571534 2014] [mpm_winnt:notice] [pid 34808:tid
> 464] AH00364: Child: All worker threads have exited.
> [Wed Jul 30 22:16:16.687244 2014] [mpm_winnt:notice] [pid 13424:tid
> 536] AH00428: Parent: child process 34808 exited with status 0 --
> Restarting.
> [Wed Jul 30 22:16:17.454981 2014] [mpm_winnt:notice] [pid 13424:tid
> 536] AH00455: Apache/2.4.10 (Win64) OpenSSL/1.0.1h configured --
> resuming normal operations
> [Wed Jul 30 22:16:17.454981 2014] [mpm_winnt:notice] [pid 13424:tid
> 536] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
> [Wed Jul 30 22:16:17.454981 2014] [core:notice] [pid 13424:tid 536]
> AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
> [Wed Jul 30 22:16:17.455982 2014] [mpm_winnt:notice] [pid 13424:tid
> 536] AH00418: Parent: Created child process 31884
> [Wed Jul 30 22:16:18.727198 2014] [mpm_winnt:notice] [pid 31884:tid
> 444] AH00354: Child: Starting 300 worker threads.
>
> -> There are no suspicious entries in other apache logfiles or in the
> windows event log.
>
> -> you asked about loaded modules:
>
> C:\Apache24\bin>httpd.exe -t -D DUMP_MODULES
> Loaded Modules:
>  core_module (static)
>  win32_module (static)
>  mpm_winnt_module (static)
>  http_module (static)
>  so_module (static)
>  access_compat_module (shared)
>  actions_module (shared)
>  alias_module (shared)
>  allowmethods_module (shared)
>  asis_module (shared)
>  auth_basic_module (shared)
>  authn_core_module (shared)
>  authn_file_module (shared)
>  authz_core_module (shared)
>  authz_groupfile_modul

[users@httpd] Fwd: cannot access ports 80 and 443 after upgrade from apache 2.2 to 2.4

2014-08-05 Thread Javier Hurtado



hello.

i have following issue with my server: i have an ubuntu-server at home.
yesterday i upgraded the whole thing to version 14.04. i have been
making some research and everything points to the fact that the ubuntu
14.04 comes with apache 2.4, which is supposed to have new and different
authorization-settings than the prior version. i am reading about that
at the moment, but unfortunately i cannot find a clear answer to solve
my problem. i also tried to post on the irc c-channel (#httpd), but
unfortunatelly i always get the message: cannot send to channel: #httpd.
from my point of view i am just a little step away from solving it,
since the server is working well: i can access webmin as well as i can
access it through SSH.

the error i get on port 80 is:

Forbidden
You don't have permission to access / on this server.

Apache/2.4.10 (Ubuntu) Server at h1r3.mooo.com Port 80

the error i get on port 443 is:

Secure Connection Failed
An error occurred during a connection to h1r3.mooo.com.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)

The page you are trying to view cannot be shown because the authenticity
of the received data could not be verified.
Please contact the website owners to inform them of this problem.
Alternatively, use the command found in the help menu to report this
broken site.

i would really appreciate if someone could help me out with this. i need
my server back online.

thanks in advance and kind regards
javier




-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Redirect to other server if file/directory does not exists.

2014-08-05 Thread Mimiko

On 05.08.2014 11:36, Igor Cicimov wrote:

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{QUERY_STRING} ^url=(.*)$
RewriteRule  ^/geturl$%1   [P,L]


Nope, in my case it does not work. The link I use is not in query string 
as uses Ivan. So adapting like this:


RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteRule ^/(.*)$ http://other-server/%1 [P,L]

Does not work. Local resources if esists are shown, but remote resources 
are 404 not found "/". Nor %{REQUEST_FILENAME} helps.


--
Mimiko desu.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Redirect to other server if file/directory does not exists.

2014-08-05 Thread Ivan Bondarev

OMG, it worked as tiny swiss clocks! Thanks Igor.

05.08.2014 12:36, Igor Cicimov пишет:



On 05/08/2014 5:30 PM, "Ivan Bondarev" > wrote:

>
> Hi.
>
> I have a similar issue.
>
> I need to make a rewrite rule for this URL:
>
> /geturl?url=http://example.com/somepicture.jpg
>
> to proxy it to the "url" parameter value.
>
> So, i used rules like this:
>
> RewriteEngine on
> RewriteOptions Inherit
> RewriteCond %{REQUEST_FILENAME}   !-f
> RewriteRule  ^/geturl?url=(.*)$ $1 [P,L]
>
Is this inside  virtual host? First:


No, this is not a virtual host. But thanks for advice.


REQUEST_FILENAME
The full local filesystem path to the file or script matching the 
request, if this has already been determined by the server at the time 
REQUEST_FILENAME is referenced. Otherwise, such as when used in 
virtual host context, the same value as REQUEST_URI.


So inside virtual host you need to give the absolute path to the file 
like:


RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f

Second mod_rewrite DOES NOT match against the query string (i cant 
remember how many times i have said that on this list) so anything 
after and including ? in the uri given to mod_rewrite like this:


RewriteRule  ^/geturl?url=(.*)$

will not work. You have to use RewriteCond with QUERY_STRING 
parameter, like this:


RewriteCond %{QUERY_STRING} ^url=(.*)$

I don't know how i missed this topic in documentation, but i didn't mind 
this. Looks like this is really actual topic if two guys asks the 
question which is already answered for a thousand times.


So, your final code would look something like this (not tested typing 
while on the train):


RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{QUERY_STRING} ^url=(.*)$
RewriteRule  ^/geturl$%1   [P,L]


Worked like a charm!


> But if there is no such file "geturl", Apache responses with 404 
error. If this file is in there, then it responses 200 and do nothing :)

>
> I can't see any solution except writing a PHP-proxifying script.
>
> 05.08.2014 00:47, Mimiko пишет:
>>
>> Hello.
>>
>> I want to redirect/proxy all request to other server if 
file/directory does not exists locally. In apache's help I've found 
this exmaple:

>>
>> RewriteCond %{REQUEST_URI}/$1 !-U
>> RewriteRule ^/(.*) http://otherserver/$1 [P,L]
>>
>> But it works if file/directory exists, and shows 404 file not found 
if file does not exist. Why it does not proxy?

>>
>





Re: [users@httpd] CVE-2014-0226 vulnerability: mod_status.so was no longer ABI-compatible

2014-08-05 Thread Michele Mase'
Restarting not solves the issue;

Issue solved:
#LoadModule status_module modules/mod_status.so
#ExtendedStatus On

Issue is present:
LoadModule status_module modules/mod_status.so
ExtendedStatus On

My httpd is rhel6.x
rpm -qi httpd
Name: httpdRelocations: (not relocatable)
Version : 2.2.3 Vendor: Red Hat, Inc.
Release : 87.el5_10 Build Date: Fri 18 Jul
2014 10:05:39 AM BST

I've opened a case to redhat support; I was hoping somebody else with
a vanilla httpd could have the same problem ...
http://mattiasgeniar.be/2014/07/28/httpd-cannot-load-mod_status-so-into-server-undefined-symbol-ap_copy_scoreboard_worker/



On Fri, Aug 1, 2014 at 2:04 PM, Eric Covener  wrote:

> On Fri, Aug 1, 2014 at 3:31 AM, Michele Mase' 
> wrote:
> > After applying some vendor's patches (redhat and ubuntu), mod_status was
> > broken; as a workaround, disabling it solves the issue
>
> Does stopping and starting the server instead of restarting solve the
> issue?   mod_status depends on httpd, and you're updating a running
> httpd and sending it a signal to re-read its configuration. You aren't
> actually running 2.4.10 after a restart.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Redirect to other server if file/directory does not exists.

2014-08-05 Thread Igor Cicimov
On 05/08/2014 5:30 PM, "Ivan Bondarev"  wrote:
>
> Hi.
>
> I have a similar issue.
>
> I need to make a rewrite rule for this URL:
>
> /geturl?url=http://example.com/somepicture.jpg
>
> to proxy it to the "url" parameter value.
>
> So, i used rules like this:
>
> RewriteEngine on
> RewriteOptions Inherit
> RewriteCond %{REQUEST_FILENAME}   !-f
> RewriteRule  ^/geturl?url=(.*)$   $1 [P,L]
>
Is this inside  virtual host? First:

REQUEST_FILENAME
The full local filesystem path to the file or script matching the request,
if this has already been determined by the server at the time
REQUEST_FILENAME is referenced. Otherwise, such as when used in virtual
host context, the same value as REQUEST_URI.

So inside virtual host you need to give the absolute path to the file like:

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f

Second mod_rewrite DOES NOT match against the query string (i cant remember
how many times i have said that on this list) so anything after and
including ? in the uri given to mod_rewrite like this:

RewriteRule  ^/geturl?url=(.*)$

will not work. You have to use RewriteCond with QUERY_STRING parameter,
like this:

RewriteCond %{QUERY_STRING} ^url=(.*)$

So, your final code would look something like this (not tested typing while
on the train):

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{QUERY_STRING} ^url=(.*)$
RewriteRule  ^/geturl$%1   [P,L]

> But if there is no such file "geturl", Apache responses with 404 error.
If this file is in there, then it responses 200 and do nothing :)
>
> I can't see any solution except writing a PHP-proxifying script.
>
> 05.08.2014 00:47, Mimiko пишет:
>>
>> Hello.
>>
>> I want to redirect/proxy all request to other server if file/directory
does not exists locally. In apache's help I've found this exmaple:
>>
>> RewriteCond %{REQUEST_URI}/$1 !-U
>> RewriteRule ^/(.*) http://otherserver/$1 [P,L]
>>
>> But it works if file/directory exists, and shows 404 file not found if
file does not exist. Why it does not proxy?
>>
>


Re: [users@httpd] Redirect to other server if file/directory does not exists.

2014-08-05 Thread Ivan Bondarev

Hi.

I have a similar issue.

I need to make a rewrite rule for this URL:
/
///geturl?url=http://example.com/somepicture.jpg/

to proxy it to the /"//url"/ parameter value.

So, i used rules like this:

/RewriteEngine on//
//RewriteOptions Inherit//
//RewriteCond %{REQUEST_FILENAME}   !-f//
//RewriteRule  ^/geturl?url=(.*)$   $1 [P,L]//
/
But if there is no such file /"//geturl//"/, Apache responses with 404 
error. If this file is in there, then it responses 200 and do nothing :)


I can't see any solution except writing a PHP-proxifying script.

05.08.2014 00:47, Mimiko пишет:

Hello.

I want to redirect/proxy all request to other server if file/directory 
does not exists locally. In apache's help I've found this exmaple:


RewriteCond %{REQUEST_URI}/$1 !-U
RewriteRule ^/(.*) http://otherserver/$1 [P,L]

But it works if file/directory exists, and shows 404 file not found if 
file does not exist. Why it does not proxy?