Re: [users@httpd] Question Error apache

2023-11-09 Thread Daniel Ferradal
El lun, 6 nov 2023 a las 12:05, Nacho Herrerías ()
escribió:

> I have a problem with Apache. Now and then i get an alert from my SIEM,
> telling me this: auditd: process ended abnormally type=ANOM_ABEND
> msg=audit(1699052664.898:938628): auid=4294967295 uid=1001 gid=1002
> ses=4294967295 pid=32043 comm="httpd" exe="/usr/sbin/httpd" sig=7 res=1
> AUID="unset" UID="censored" GID="censored"
>
> The thing is that Apache (2.4.58) is working fine, and its been working
> the all time, what can I do to stop getting this error from Apache?
>


If Apache HTTPD shows nothing in its error.log, then your SIEM is not
functioning correctly.

-- 
Daniel Ferradal
HTTPD Project
#httpd help at Libera.Chat


[users@httpd] Question Error apache

2023-11-06 Thread Nacho Herrerías
I have a problem with Apache. Now and then i get an alert from my SIEM,
telling me this: auditd: process ended abnormally type=ANOM_ABEND
msg=audit(1699052664.898:938628): auid=4294967295 uid=1001 gid=1002
ses=4294967295 pid=32043 comm="httpd" exe="/usr/sbin/httpd" sig=7 res=1
AUID="unset" UID="censored" GID="censored"

The thing is that Apache (2.4.58) is working fine, and its been working the
all time, what can I do to stop getting this error from Apache?


[users@httpd] Question about 2.4.56 "client resets of HTTP/2 streams led to unwanted 500 errors" fix

2023-03-13 Thread Robert L Mathews
After upgrading from httpd 2.4.54 to 2.4.55, I noticed that mod_fcgid 
scripts would sometimes get "stuck" in the "working" state, rather than 
the "ready" state, even though the script associated with the mod_fcgid 
slot was idle and waiting for a new request.


While investigating, I noticed this usually happened after a stray 
HTTP/2 "500" error in the logs that I couldn't match up to a real error. 
This was puzzling, so I downgraded back to 2.4.54 while thinking about it.


Now in the 2.4.56 update, I see:

*) mod_http2: client resets of HTTP/2 streams led to unwanted 500 errors
   reported in access logs and error documents. The processing of the
   reset was correct, only unneccesary reporting was caused.

The "unwanted 500 errors" sounds like it might be related, except that 
it says the processing was correct, implying that this problem would not 
affect anything other than the logging.


Is it possible that it actually *did* affect the processing of mod_fcgid 
requests –- that the bug could have prevented mod_fcgid from switching a 
child process from "working" back to "ready" after the client reset?


--
Robert L Mathews

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



Re: [users@httpd] question on CVE-2023-36760

2023-02-07 Thread carsten . reith
Well, what does your Proxy directive look like ? if it uses the ajp
protocol, then you use AJP, if it says https or something else, then you
don't use AJP.

ProxyPass "/app" "ajp://backend.example.com:8009/app"   (you use ajp)
ProxyPass "/app" "https://backend.example.com:8009/app; (you don't use ajp)

see: https://httpd.apache.org/docs/2.4/mod/mod_proxy_ajp.html

:wq

Carsten




On Tue, Feb 07, 2023 at 03:53:29PM +, Thao, Pashia wrote:
> Thank you for responding.  I’m wondering though, how do I confirm it is using 
> AJP or not using AJP for sure?
> 
> Thanks,
> Pashia
> 
> From: Otis Dewitt - NOAA Affiliate 
> Sent: Tuesday, February 7, 2023 9:46 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] question on CVE-2023-36760
> 
> 
> *External Email: Use caution responding, opening attachments, or clicking on 
> links.*
> If you are not using "Apache JServ Protocol (AJP)" then the CVE does not 
> pertain to your Apache server.
> 
> On Mon, Feb 6, 2023 at 5:46 PM Thao, Pashia 
> mailto:pashia.t...@uwss.wisconsin.edu>> wrote:
> PWEB server is running a version of Apache affected.
> 
> Our prod web server is running a version of the Apache affected by by 
> CVE-2023-36760<https://nvd.nist.gov/vuln/detail/CVE-2022-36760>, which is a 
> critical vulnerability affecting versions of Apache server <= 
> 2.4.54<https://httpd.apache.org/security/vulnerabilities_24.html>. 
> CVE-2023-36760 allows for potential HTTP request smuggling from the Apache 
> server through the Apache JServ Protocol (AJP) to the application server.
> 
> How do I check whether AJP is being utilized to proxy requests from the WEB 
> server to the APPlication server? Also does that mean that if our WEB server 
> does not use AJP, then that means we shouldn’t need to worry about this 
> vulnerability and do not need to upgrade to the new Apache version, 2.4.55?
> 
> Please clarify.
> 
> Thank you,
> Pashia
> 

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



RE: [users@httpd] question on CVE-2023-36760

2023-02-07 Thread Thao, Pashia
Thank you for responding.  I’m wondering though, how do I confirm it is using 
AJP or not using AJP for sure?

Thanks,
Pashia

From: Otis Dewitt - NOAA Affiliate 
Sent: Tuesday, February 7, 2023 9:46 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] question on CVE-2023-36760


*External Email: Use caution responding, opening attachments, or clicking on 
links.*
If you are not using "Apache JServ Protocol (AJP)" then the CVE does not 
pertain to your Apache server.

On Mon, Feb 6, 2023 at 5:46 PM Thao, Pashia 
mailto:pashia.t...@uwss.wisconsin.edu>> wrote:
PWEB server is running a version of Apache affected.

Our prod web server is running a version of the Apache affected by by 
CVE-2023-36760<https://nvd.nist.gov/vuln/detail/CVE-2022-36760>, which is a 
critical vulnerability affecting versions of Apache server <= 
2.4.54<https://httpd.apache.org/security/vulnerabilities_24.html>. 
CVE-2023-36760 allows for potential HTTP request smuggling from the Apache 
server through the Apache JServ Protocol (AJP) to the application server.

How do I check whether AJP is being utilized to proxy requests from the WEB 
server to the APPlication server? Also does that mean that if our WEB server 
does not use AJP, then that means we shouldn’t need to worry about this 
vulnerability and do not need to upgrade to the new Apache version, 2.4.55?

Please clarify.

Thank you,
Pashia



Re: [users@httpd] question on CVE-2023-36760

2023-02-07 Thread Otis Dewitt - NOAA Affiliate
If you are not using "*Apache JServ Protocol (AJP)" *then the CVE does not
pertain to your Apache server.

On Mon, Feb 6, 2023 at 5:46 PM Thao, Pashia 
wrote:

> PWEB server is running a version of Apache affected.
>
>
>
> Our prod web server is running a version of the Apache affected by by
> CVE-2023-36760 , which
> is a critical vulnerability affecting versions of Apache server <= 2.4.54
> . *CVE-2023-36760
> allows for potential HTTP request smuggling from the Apache server through
> the Apache JServ Protocol (AJP) to the application server*.
>
>
>
> How do I check whether *AJP* is being utilized to proxy requests from the
> WEB server to the APPlication server? Also does that mean that if our WEB
> server does not use AJP, then that means we shouldn’t need to worry about
> this vulnerability and do not need to upgrade to the new Apache version,
> 2.4.55?
>
>
>
> Please clarify.
>
>
>
> Thank you,
>
> Pashia
>
>
>


[users@httpd] question on CVE-2023-36760

2023-02-06 Thread Thao, Pashia
PWEB server is running a version of Apache affected.

Our prod web server is running a version of the Apache affected by by 
CVE-2023-36760, which is a 
critical vulnerability affecting versions of Apache server <= 
2.4.54. 
CVE-2023-36760 allows for potential HTTP request smuggling from the Apache 
server through the Apache JServ Protocol (AJP) to the application server.

How do I check whether AJP is being utilized to proxy requests from the WEB 
server to the APPlication server? Also does that mean that if our WEB server 
does not use AJP, then that means we shouldn't need to worry about this 
vulnerability and do not need to upgrade to the new Apache version, 2.4.55?

Please clarify.

Thank you,
Pashia



RE: [users@httpd] Question about installing 2.4.48 in a non-standard location.

2021-09-22 Thread Jeff Cauhape
THANK YOU.

That pegged it. Now I'm on to run-of-the-mill problems.

Jeffrey Cauhape – IT Professional III – Linux and Solaris Administrator
Nevada Department of Employment, Training and Rehabilitation
(775) 224-6836 (cell) jpcauh...@detr.nv.gov

-Original Message-
From: Eric Covener  
Sent: Tuesday, September 21, 2021 4:58 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Question about installing 2.4.48 in a non-standard 
location.

On Tue, Sep 21, 2021 at 2:29 PM Jeff Cauhape  wrote:
>
> Folks,
>
>
>
> When I built 2.4.48 from source, I built it in /apps/apache_2.4.48 
> directory. However, because of the way
>
> our servers are managed, I need to install this as /apps/apache_2.4.48_int 
> and /apps/apache_2.4.48_ext.
>
> When I have done this for earlier versions of Apache, I just edited 
> the path names in apachectl, envvars,
>
> envvars_std, and in httpd.conf.
>
>
>
> This doesn’t seem to be adequate anymore.
>
>
>
> I have also changed pathnames in apxs, apu-1-config and apr-1-config, 
> but am still getting an error
>
> message when I run “apachectl configtest”
>
>
>
> [root@appwebdev1ie bin]# ./apachectl configtest
>
> httpd: Could not open configuration file 
> /apps/apache_2.4.48/conf/httpd.conf: No such file or directory

Maybe you need to append a "-d /apps/apache_2.4.48_int" to the line beginning 
with HTTPD= in apachectl?

The default ServerRoot is compiled in, and overriding it in httpd.conf is too 
late.

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



Re: [users@httpd] Question about installing 2.4.48 in a non-standard location.

2021-09-21 Thread Carsten Reith
Jeffrey,

are you sure you didn't miss anything ? 

The following worked for me (I reproduced your scenario as I understood it, 
build under /apps/apache_2.4.8, the cp -a to /apps/apache_2.4.8_int):

creith@hamlet:/apps/apache_2.4.8_int/bin$ sudo sed -i 
's#/apps/apache_2.4.8#/apps/apache_2.4.8_int#' apachectl envvars envvars-std 
creith@hamlet:/apps/apache_2.4.8_int/conf$ sudo sed -i 
's#/apps/apache_2.4.8#/apps/apache_2.4.8_int#' httpd.conf
creith@hamlet:/apps/apache_2.4.8_int/bin$ sudo ./apachectl configtest
Syntax OK
creith@hamlet:/apps/apache_2.4.8_int/bin$ sudo ./apachectl start
creith@hamlet:/apps/apache_2.4.8_int/bin$ ps -eaf | grep httpd
root  1038301693  0 02:08 ?00:00:00 
/apps/apache_2.4.8_int/bin/httpd -k start
daemon103831  103830  0 02:08 ?00:00:00 
/apps/apache_2.4.8_int/bin/httpd -k start
daemon103832  103830  0 02:08 ?00:00:00 
/apps/apache_2.4.8_int/bin/httpd -k start
daemon103833  103830  0 02:08 ?00:00:00 
/apps/apache_2.4.8_int/bin/httpd -k start
creith1039161955  0 02:08 pts/000:00:00 grep httpd

Carsten


Am Tue, Sep 21, 2021 at 10:51:51PM + schrieb Jeff Cauhape:
> Carsten,
> 
> I use the first method you describe. It's always been pretty simple to 
> modify the pathnames before.
> 
> I can see how the multiple source trees/build targets would work, but the
> problem is that some systems would require 4 build targets. I'd like to 
> keep it simple by have just 1 build target, and then configuring it to 
> local needs, if necessary.
> 
> When I execute the config test, I cd to the bin directory and just give
> the command
> 
> # ./apachectl configtest
> 
> That way there is no doubt as to which apachectl is being executed.
> 
> Jeffrey Cauhape - IT Professional III - Linux and Solaris Administrator
> Nevada Department of Employment, Training and Rehabilitation
> (775) 224-6836 (cell) jpcauh...@detr.nv.gov
> 
> -Original Message-
> From: Carsten Reith  
> Sent: Tuesday, September 21, 2021 1:42 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Question about installing 2.4.48 in a non-standard 
> location.
> 
> Hi,
> 
> what do you do exactly ?
> 
> - Do you build it with configure --prefix=/apps/apache_2.4.48 - make - make 
> install and then copy it to the two target directories ?
> - Or do you build it two times modifiying the --prefix appropriately ?
> 
> I would strongly suggest to install it the second way. Or maybe even to have 
> two source tress (unless disk space is a severe issue).
> 
> Where do you execute the apachectl configtest ?
> 
> Cheers,
> 
> Carsten
> 
> 
> I would strongly
> 
> Am Tue, Sep 21, 2021 at 06:28:34PM + schrieb Jeff Cauhape:
> > Folks,
> > 
> > When I built 2.4.48 from source, I built it in /apps/apache_2.4.48 
> > directory. However, because of the way our servers are managed, I need to 
> > install this as /apps/apache_2.4.48_int and /apps/apache_2.4.48_ext.
> > When I have done this for earlier versions of Apache, I just edited 
> > the path names in apachectl, envvars, envvars_std, and in httpd.conf.
> > 
> > This doesn't seem to be adequate anymore.
> > 
> > I have also changed pathnames in apxs, apu-1-config and apr-1-config, 
> > but am still getting an error message when I run "apachectl configtest"
> > 
> > [root@appwebdev1ie bin]# ./apachectl configtest
> > httpd: Could not open configuration file 
> > /apps/apache_2.4.48/conf/httpd.conf: No such file or directory
> > 
> > Can someone toss me a clue as to where else this needs to be 
> > corrected? Obviously  something is checking the default build path and I 
> > don't know where this is going on.
> > 
> > Thank you,
> > 
> > Jeffrey Cauhape - IT Professional III - Linux and Solaris 
> > Administrator Nevada Department of Employment, Training and Rehabilitation
> > (775) 224-6836 (cell) 
> > jpcauh...@detr.nv.gov<mailto:jpcauh...@detr.nv.gov>
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 

-- 

Carsten Reith
Dietzestraße 2
55120 Mainz
Mobil: +49 1520 144 38 12

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



Re: [users@httpd] Question about installing 2.4.48 in a non-standard location.

2021-09-21 Thread Eric Covener
On Tue, Sep 21, 2021 at 2:29 PM Jeff Cauhape  wrote:
>
> Folks,
>
>
>
> When I built 2.4.48 from source, I built it in /apps/apache_2.4.48 directory. 
> However, because of the way
>
> our servers are managed, I need to install this as /apps/apache_2.4.48_int 
> and /apps/apache_2.4.48_ext.
>
> When I have done this for earlier versions of Apache, I just edited the path 
> names in apachectl, envvars,
>
> envvars_std, and in httpd.conf.
>
>
>
> This doesn’t seem to be adequate anymore.
>
>
>
> I have also changed pathnames in apxs, apu-1-config and apr-1-config, but am 
> still getting an error
>
> message when I run “apachectl configtest”
>
>
>
> [root@appwebdev1ie bin]# ./apachectl configtest
>
> httpd: Could not open configuration file /apps/apache_2.4.48/conf/httpd.conf: 
> No such file or directory

Maybe you need to append a "-d /apps/apache_2.4.48_int" to the line
beginning with HTTPD= in apachectl?

The default ServerRoot is compiled in, and overriding it in httpd.conf
is too late.

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



RE: [users@httpd] Question about installing 2.4.48 in a non-standard location.

2021-09-21 Thread Jeff Cauhape
Carsten,

I use the first method you describe. It's always been pretty simple to 
modify the pathnames before.

I can see how the multiple source trees/build targets would work, but the
problem is that some systems would require 4 build targets. I'd like to 
keep it simple by have just 1 build target, and then configuring it to 
local needs, if necessary.

When I execute the config test, I cd to the bin directory and just give
the command

# ./apachectl configtest

That way there is no doubt as to which apachectl is being executed.

Jeffrey Cauhape - IT Professional III - Linux and Solaris Administrator
Nevada Department of Employment, Training and Rehabilitation
(775) 224-6836 (cell) jpcauh...@detr.nv.gov

-Original Message-
From: Carsten Reith  
Sent: Tuesday, September 21, 2021 1:42 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Question about installing 2.4.48 in a non-standard 
location.

Hi,

what do you do exactly ?

- Do you build it with configure --prefix=/apps/apache_2.4.48 - make - make 
install and then copy it to the two target directories ?
- Or do you build it two times modifiying the --prefix appropriately ?

I would strongly suggest to install it the second way. Or maybe even to have 
two source tress (unless disk space is a severe issue).

Where do you execute the apachectl configtest ?

Cheers,

Carsten


I would strongly

Am Tue, Sep 21, 2021 at 06:28:34PM + schrieb Jeff Cauhape:
> Folks,
> 
> When I built 2.4.48 from source, I built it in /apps/apache_2.4.48 
> directory. However, because of the way our servers are managed, I need to 
> install this as /apps/apache_2.4.48_int and /apps/apache_2.4.48_ext.
> When I have done this for earlier versions of Apache, I just edited 
> the path names in apachectl, envvars, envvars_std, and in httpd.conf.
> 
> This doesn't seem to be adequate anymore.
> 
> I have also changed pathnames in apxs, apu-1-config and apr-1-config, 
> but am still getting an error message when I run "apachectl configtest"
> 
> [root@appwebdev1ie bin]# ./apachectl configtest
> httpd: Could not open configuration file 
> /apps/apache_2.4.48/conf/httpd.conf: No such file or directory
> 
> Can someone toss me a clue as to where else this needs to be 
> corrected? Obviously  something is checking the default build path and I 
> don't know where this is going on.
> 
> Thank you,
> 
> Jeffrey Cauhape - IT Professional III - Linux and Solaris 
> Administrator Nevada Department of Employment, Training and Rehabilitation
> (775) 224-6836 (cell) jpcauh...@detr.nv.gov<mailto:jpcauh...@detr.nv.gov>


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


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



Re: [users@httpd] Question about installing 2.4.48 in a non-standard location.

2021-09-21 Thread Carsten Reith
Hi,

what do you do exactly ?

- Do you build it with configure --prefix=/apps/apache_2.4.48 - make - make 
install and then copy it to the two target directories ?
- Or do you build it two times modifiying the --prefix appropriately ?

I would strongly suggest to install it the second way. Or maybe even to have 
two source tress (unless disk space is a severe issue).

Where do you execute the apachectl configtest ?

Cheers,

Carsten


I would strongly

Am Tue, Sep 21, 2021 at 06:28:34PM + schrieb Jeff Cauhape:
> Folks,
> 
> When I built 2.4.48 from source, I built it in /apps/apache_2.4.48 directory. 
> However, because of the way
> our servers are managed, I need to install this as /apps/apache_2.4.48_int 
> and /apps/apache_2.4.48_ext.
> When I have done this for earlier versions of Apache, I just edited the path 
> names in apachectl, envvars,
> envvars_std, and in httpd.conf.
> 
> This doesn't seem to be adequate anymore.
> 
> I have also changed pathnames in apxs, apu-1-config and apr-1-config, but am 
> still getting an error
> message when I run "apachectl configtest"
> 
> [root@appwebdev1ie bin]# ./apachectl configtest
> httpd: Could not open configuration file /apps/apache_2.4.48/conf/httpd.conf: 
> No such file or directory
> 
> Can someone toss me a clue as to where else this needs to be corrected? 
> Obviously  something is checking
> the default build path and I don't know where this is going on.
> 
> Thank you,
> 
> Jeffrey Cauhape - IT Professional III - Linux and Solaris Administrator
> Nevada Department of Employment, Training and Rehabilitation
> (775) 224-6836 (cell) jpcauh...@detr.nv.gov


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



[users@httpd] Question about installing 2.4.48 in a non-standard location.

2021-09-21 Thread Jeff Cauhape
Folks,

When I built 2.4.48 from source, I built it in /apps/apache_2.4.48 directory. 
However, because of the way
our servers are managed, I need to install this as /apps/apache_2.4.48_int and 
/apps/apache_2.4.48_ext.
When I have done this for earlier versions of Apache, I just edited the path 
names in apachectl, envvars,
envvars_std, and in httpd.conf.

This doesn't seem to be adequate anymore.

I have also changed pathnames in apxs, apu-1-config and apr-1-config, but am 
still getting an error
message when I run "apachectl configtest"

[root@appwebdev1ie bin]# ./apachectl configtest
httpd: Could not open configuration file /apps/apache_2.4.48/conf/httpd.conf: 
No such file or directory

Can someone toss me a clue as to where else this needs to be corrected? 
Obviously  something is checking
the default build path and I don't know where this is going on.

Thank you,

Jeffrey Cauhape - IT Professional III - Linux and Solaris Administrator
Nevada Department of Employment, Training and Rehabilitation
(775) 224-6836 (cell) jpcauh...@detr.nv.gov


Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Nate 21
Guys, have been using Vivaldi browser when it was still  beta.
On my Android,on my Ubuntu laptop, on my 10'1 Yoga Smart Tab.

It's incredible now
4.1 version came out.No data is sent to Google.Actually to no one.



On Fri, 30 Jul 2021, 19:27 Michael,  wrote:

> Why not convert your parents over to Firefox web browser?
> You create an account for them.
> You login to their Facebook account.
> You navigate to your Facebook account.
> You set a Bookmark on the Bookmarks Toolbar for your account page.
> And during all this process let Firefox save their login and password
> and any cookies for Facebook.
>
> Your next challenge will be to teach your parents how to launch Firefox
> from the desktop, but once opened and displayed on the monitor
> everything you want for them will be in front of their eyes.
>
> The above is also known as "Ease of Access" for Seniors.
>
> M Gordon
>
> On 7/30/2021 6:50 AM, Krishna P wrote:
> > So that I give access to my family members without creating their own
> > accounts and login due to their old age.
> >
> > On Fri, Jul 30, 2021 at 3:02 AM Nick Folino  > > wrote:
> >
> > I have to know Why??
> >
> > On Fri, Jul 30, 2021 at 12:17 AM Krishna P
> > mailto:krishna.sic...@gmail.com>> wrote:
> >
> > Hello everyone,
> >I want to run a apache server with my facebook account
> > login and give the access to my family. I am able to get the
> > local server WAMP page when I give my local host but how I do
> > I connect to https://facebook.com  and
> > login with my credentials and give the address to my family
> > who can login from different computer location or mobile and
> > see the same content as I see ?
> > Thanks and regards
> > Krishna
> >
>
> --
> sig Photography by Gordon
>
> Photography by Gordon
> 903 244-3644
>
> Artist Photo Website 
>
> Channel Cities Jazz Club 
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Yehuda Katz
Once we get out of the technical discussion relating to HTTPD and into how
to access Facebook, besides for the fact that this is not on topic for this
mailing list, I suggest reading the Facebook Terms of Service which
explicitly disallow account sharing.

https://www.facebook.com/terms.php

> 3. Your commitments to Facebook and our community
> We provide these services to you and others to help advance our mission.
In exchange, we need you to make the following commitments:
> 1. Who can use Facebook
> When people stand behind their opinions and actions, our community is
safer and more accountable. For this reason, you must:
> [...]
> - Not share your password, give access to your Facebook account to
others, or transfer your account to anyone else (without our permission).

On Fri, Jul 30, 2021 at 1:11 PM Nick Folino  wrote:

> Why not just set facebook as their start page and give them your password?
>
> On Fri, Jul 30, 2021 at 12:52 PM Krishna P 
> wrote:
>
>> My thought is to give them my public ip which will bring them to my local
>> ip which I am able to do as of now and they are able to see the WAMP server
>> home page. All I want is them to see the facebook page account  where I
>> keep my  up to date profile. It is just so easy for them to type numbers in
>> their mobile or ipad browsers rather than login etc because they are in
>> different country.
>>
>> On Fri, Jul 30, 2021 at 7:06 AM Nick Folino  wrote:
>>
>>> So they'll go to your site, login there and get proxied to your Facebook
>>> account, where something will login you in to Facebook so they can see your
>>> Facebook content?  Wow.
>>>
>>>
>>> On Fri, Jul 30, 2021 at 9:50 AM Krishna P 
>>> wrote:
>>>
 So that I give access to my family members without creating their own
 accounts and login due to their old age.

 On Fri, Jul 30, 2021 at 3:02 AM Nick Folino  wrote:

> I have to know Why??
>
> On Fri, Jul 30, 2021 at 12:17 AM Krishna P 
> wrote:
>
>> Hello everyone,
>>I want to run a apache server with my facebook account login and
>> give the access to my family. I am able to get the local server WAMP page
>> when I give my local host but how I do I connect to
>> https://facebook.com and login with my credentials and give the
>> address to my family who can login from different computer location or
>> mobile and see the same content as I see ?
>> Thanks and regards
>> Krishna
>>
>


Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Nick Folino
Why not just set facebook as their start page and give them your password?

On Fri, Jul 30, 2021 at 12:52 PM Krishna P  wrote:

> My thought is to give them my public ip which will bring them to my local
> ip which I am able to do as of now and they are able to see the WAMP server
> home page. All I want is them to see the facebook page account  where I
> keep my  up to date profile. It is just so easy for them to type numbers in
> their mobile or ipad browsers rather than login etc because they are in
> different country.
>
> On Fri, Jul 30, 2021 at 7:06 AM Nick Folino  wrote:
>
>> So they'll go to your site, login there and get proxied to your Facebook
>> account, where something will login you in to Facebook so they can see your
>> Facebook content?  Wow.
>>
>>
>> On Fri, Jul 30, 2021 at 9:50 AM Krishna P 
>> wrote:
>>
>>> So that I give access to my family members without creating their own
>>> accounts and login due to their old age.
>>>
>>> On Fri, Jul 30, 2021 at 3:02 AM Nick Folino  wrote:
>>>
 I have to know Why??

 On Fri, Jul 30, 2021 at 12:17 AM Krishna P 
 wrote:

> Hello everyone,
>I want to run a apache server with my facebook account login and
> give the access to my family. I am able to get the local server WAMP page
> when I give my local host but how I do I connect to
> https://facebook.com and login with my credentials and give the
> address to my family who can login from different computer location or
> mobile and see the same content as I see ?
> Thanks and regards
> Krishna
>



Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Krishna P
My thought is to give them my public ip which will bring them to my local
ip which I am able to do as of now and they are able to see the WAMP server
home page. All I want is them to see the facebook page account  where I
keep my  up to date profile. It is just so easy for them to type numbers in
their mobile or ipad browsers rather than login etc because they are in
different country.

On Fri, Jul 30, 2021 at 7:06 AM Nick Folino  wrote:

> So they'll go to your site, login there and get proxied to your Facebook
> account, where something will login you in to Facebook so they can see your
> Facebook content?  Wow.
>
>
> On Fri, Jul 30, 2021 at 9:50 AM Krishna P 
> wrote:
>
>> So that I give access to my family members without creating their own
>> accounts and login due to their old age.
>>
>> On Fri, Jul 30, 2021 at 3:02 AM Nick Folino  wrote:
>>
>>> I have to know Why??
>>>
>>> On Fri, Jul 30, 2021 at 12:17 AM Krishna P 
>>> wrote:
>>>
 Hello everyone,
I want to run a apache server with my facebook account login and
 give the access to my family. I am able to get the local server WAMP page
 when I give my local host but how I do I connect to
 https://facebook.com and login with my credentials and give the
 address to my family who can login from different computer location or
 mobile and see the same content as I see ?
 Thanks and regards
 Krishna

>>>


Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Michael

Why not convert your parents over to Firefox web browser?
You create an account for them.
You login to their Facebook account.
You navigate to your Facebook account.
You set a Bookmark on the Bookmarks Toolbar for your account page.
And during all this process let Firefox save their login and password 
and any cookies for Facebook.


Your next challenge will be to teach your parents how to launch Firefox 
from the desktop, but once opened and displayed on the monitor 
everything you want for them will be in front of their eyes.


The above is also known as "Ease of Access" for Seniors.

M Gordon

On 7/30/2021 6:50 AM, Krishna P wrote:
So that I give access to my family members without creating their own 
accounts and login due to their old age.


On Fri, Jul 30, 2021 at 3:02 AM Nick Folino > wrote:


I have to know Why??

On Fri, Jul 30, 2021 at 12:17 AM Krishna P
mailto:krishna.sic...@gmail.com>> wrote:

Hello everyone,
   I want to run a apache server with my facebook account
login and give the access to my family. I am able to get the
local server WAMP page when I give my local host but how I do
I connect to https://facebook.com  and
login with my credentials and give the address to my family
who can login from different computer location or mobile and
see the same content as I see ?
Thanks and regards
Krishna



--
sig Photography by Gordon

Photography by Gordon
903 244-3644

Artist Photo Website 

Channel Cities Jazz Club 


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



Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Jim Albert
I've found facebook pretty much keeps me logged in for a very long time, 
if not indefinitely unless I clear cookies... so I'd expect your concern 
to mostly be a non issue from having their own FB account.


If I really wanted to attempt what you want to do, I'd write some socket 
code and see what FB offers in terms of an API

https://developers.facebook.com/docs/facebook-login/

Jim

On 7/30/2021 6:02 AM, Nick Folino wrote:

I have to know Why??

On Fri, Jul 30, 2021 at 12:17 AM Krishna P > wrote:


Hello everyone,
   I want to run a apache server with my facebook account login
and give the access to my family. I am able to get the local
server WAMP page when I give my local host but how I do I connect
to https://facebook.com  and login with my
credentials and give the address to my family who can login from
different computer location or mobile and see the same content as
I see ?
Thanks and regards
Krishna






Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Nick Folino
So they'll go to your site, login there and get proxied to your Facebook
account, where something will login you in to Facebook so they can see your
Facebook content?  Wow.


On Fri, Jul 30, 2021 at 9:50 AM Krishna P  wrote:

> So that I give access to my family members without creating their own
> accounts and login due to their old age.
>
> On Fri, Jul 30, 2021 at 3:02 AM Nick Folino  wrote:
>
>> I have to know Why??
>>
>> On Fri, Jul 30, 2021 at 12:17 AM Krishna P 
>> wrote:
>>
>>> Hello everyone,
>>>I want to run a apache server with my facebook account login and give
>>> the access to my family. I am able to get the local server WAMP page when I
>>> give my local host but how I do I connect to https://facebook.com and
>>> login with my credentials and give the address to my family who can login
>>> from different computer location or mobile and see the same content as I
>>> see ?
>>> Thanks and regards
>>> Krishna
>>>
>>


Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Eric Covener
On Fri, Jul 30, 2021 at 12:17 AM Krishna P  wrote:
>
> Hello everyone,
>I want to run a apache server with my facebook account login and give the 
> access to my family. I am able to get the local server WAMP page when I give 
> my local host but how I do I connect to https://facebook.com and login with 
> my credentials and give the address to my family who can login from different 
> computer location or mobile and see the same content as I see ?

Sorry, it's just not how proxy servers work.

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



Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Krishna P
So that I give access to my family members without creating their own
accounts and login due to their old age.

On Fri, Jul 30, 2021 at 3:02 AM Nick Folino  wrote:

> I have to know Why??
>
> On Fri, Jul 30, 2021 at 12:17 AM Krishna P 
> wrote:
>
>> Hello everyone,
>>I want to run a apache server with my facebook account login and give
>> the access to my family. I am able to get the local server WAMP page when I
>> give my local host but how I do I connect to https://facebook.com and
>> login with my credentials and give the address to my family who can login
>> from different computer location or mobile and see the same content as I
>> see ?
>> Thanks and regards
>> Krishna
>>
>


Re: [users@httpd] Question about running apache server using WAMP

2021-07-30 Thread Nick Folino
I have to know Why??

On Fri, Jul 30, 2021 at 12:17 AM Krishna P  wrote:

> Hello everyone,
>I want to run a apache server with my facebook account login and give
> the access to my family. I am able to get the local server WAMP page when I
> give my local host but how I do I connect to https://facebook.com and
> login with my credentials and give the address to my family who can login
> from different computer location or mobile and see the same content as I
> see ?
> Thanks and regards
> Krishna
>


[users@httpd] Question about running apache server using WAMP

2021-07-29 Thread Krishna P
Hello everyone,
   I want to run a apache server with my facebook account login and give
the access to my family. I am able to get the local server WAMP page when I
give my local host but how I do I connect to https://facebook.com and login
with my credentials and give the address to my family who can login from
different computer location or mobile and see the same content as I see ?
Thanks and regards
Krishna


Re: [users@httpd] question re: where to place

2020-01-27 Thread Eric Covener
On Mon, Jan 27, 2020 at 7:23 AM o1bigtenor  wrote:
>
> Greetings
>
> Wanting to host for internal use only a number of programs and found
> the concept of using the module mod_authz_host and the Require
> directives.
>
> What is not clear is where I would place the declaration, require xxx.
>
> Does the declaration get placed within
> sites-available/example.com.conf  or is there a better place to put
> it?

That's a reasonable place on a debian-based server, where virtual
hosts you add won't be touched by the package manager.

Packaging issues aside, all of the config files you find on a system
like this are just serialized into one file anyway with the Include
directive.
The real consideration is the context you put a directive into because
of the scope you want it to apply:
https://httpd.apache.org/docs/current/sections.html



-- 
Eric Covener
cove...@gmail.com

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



[users@httpd] question re: where to place

2020-01-27 Thread o1bigtenor
Greetings

Wanting to host for internal use only a number of programs and found
the concept of using the module mod_authz_host and the Require
directives.

What is not clear is where I would place the declaration, require xxx.

Does the declaration get placed within
sites-available/example.com.conf  or is there a better place to put
it?

Regards

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



[users@httpd] Question on headers, global or individual virtual host, apache 2.4?

2019-08-06 Thread David Mehler
Hello,

I'm running apache 2.4. I've got a question on headers, should the
below be set in a global context in a configuration file? Or should
they be in set in each virtual host context and wrapped in IfModule
statements?

Also, are these headers correct?

 
 Header unset ETag
 FileETag None
 Header unset Server
 Header always set X-Content-Type-Options "nosniff"
 Header always set X-XSS-Protection "1; mode=block"
 Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure
Header set X-Content-Security-Policy "allow 'self';"

 Header always set Referrer-Policy "no-referrer-when-downgrade"
 Header always set Feature-Policy "accelerometer 'none';
camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer
'none'; microphone 'none'; payment 'none'; usb 'none' "
 Header set X-Frame-Options DENY
 Header set Cache-Control:public, max-age=31536000
 Header set MyHeader "Feel safe zombiesecured headers in
use!!! It took %D microseconds for Zombiesecured to serve this request
on %t"
Header always set Strict-Transport-Security:
"max-age=31536000; includeSubDomains; preload"
Header set Expect-CT enforce,max-age=30, report-uri="url" <---
You can gradually increase the max-age once you are confident that it
has been set up properly


Thanks.
Dave.

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



Re: [users@httpd] Question about configure not answered in documentation

2019-04-06 Thread Rainer Jung

Hi Jeff,

Am 06.04.2019 um 00:19 schrieb Jeff Cauhape:

Well,

That almost worked.

I edited the config.layout file and copied  to .
In  I made the following changes only:


 prefix:/usr/local/apache2
 exec_prefix:   ${prefix}
 bindir:${exec_prefix}/bin
 sbindir:   ${exec_prefix}/bin
 libdir:${exec_prefix}/lib
 libexecdir:${exec_prefix}/modules
 mandir:${prefix}/man
 sysconfdir:${prefix}/conf
 datadir:   ${prefix}
 installbuilddir: ${datadir}/build
 errordir:  ${datadir}/error
 iconsdir:  ${datadir}/icons
 htdocsdir: /var/www/html <- Changed
 manualdir: ${datadir}/manual
 cgidir:/var/www/cgi-bin<- Changed
 includedir:${prefix}/include
 localstatedir: ${prefix}
 runtimedir:${localstatedir}/logs
 logfiledir:${localstatedir}/logs
 proxycachedir: ${localstatedir}/proxy


I then ran config like this from a shell script:
#!/bin/bash

./configure --with-pcre=/usr/local/bin/pcre-config \
 --enable-layout=DETR \
 --prefix=/apps/apache_2.4.39 \
 --enable-proxy-html   \
 --enable-socache-shmcb \
 --enable-ssl

What happened is that the /var/www/html and /var/www/cgi-bin directories
got created, but in the httpd.conf file had this for the DocumentRoot and 
script locations:

DocumentRoot "/apps/apache_2.4.39/htdocs"

...

and

 ScriptAlias  /cgi-bin/   "/apps/apache_2.4.39/cgi-bin/"


It looks like there is someplace where directives in config.layout are being 
ignored. Ideas?

n.b. After I reanthe config command, I ran a 'make clean' prior to the 'make' 
to build a
new server.


Thanks for giving it a try, I think you are already pretty close.

To check, whether the layout was successfully picked up you can do a

% grep cgidir config.log
% grep htdocsdir config.log

The file config.log is written during configure and should contain 
cgidir, exp_cgidir, rel_cgidir, htdocsdir, exp_htdocsdir and rel_htdocsdir.


The values shown by grep should match those given in the layout.

Since you wrote, that the new directories were created, I expect the 
grep commands to show the correct values, but it is a good first step 
for double-checking.


Next: the source config file docs/conf/httpd.conf.in contains the right 
placeholders, e.g.


DocumentRoot "@exp_htdocsdir@"

ScriptAlias /cgi-bin/ "@exp_cgidir@/"
# "@exp_cgidir@" should be changed to whatever your ScriptAliased


etc. so it must do replacements and you should get your configured values.

But: I vaguely remember, that "make install" will not overwrite config 
files previously installed to the same installation directory to prevent 
loosing older customization during updates (and "make clean" will not 
remove them). Could that be your problem? Is the file timestamp of 
conf/httpd.conf in the installation directory later than your layout 
changes or older? Does it work if you remove the whole old installation 
directory and run a new "make install"?


Regards,

Rainer

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



RE: [users@httpd] Question about configure not answered in documentation

2019-04-05 Thread Jeff Cauhape
Well,

That almost worked.

I edited the config.layout file and copied  to .
In  I made the following changes only:


prefix:/usr/local/apache2
exec_prefix:   ${prefix}
bindir:${exec_prefix}/bin
sbindir:   ${exec_prefix}/bin
libdir:${exec_prefix}/lib
libexecdir:${exec_prefix}/modules
mandir:${prefix}/man
sysconfdir:${prefix}/conf
datadir:   ${prefix}
installbuilddir: ${datadir}/build
errordir:  ${datadir}/error
iconsdir:  ${datadir}/icons
htdocsdir: /var/www/html <- Changed
manualdir: ${datadir}/manual
cgidir:/var/www/cgi-bin <- Changed
includedir:${prefix}/include
localstatedir: ${prefix}
runtimedir:${localstatedir}/logs
logfiledir:${localstatedir}/logs
proxycachedir: ${localstatedir}/proxy


I then ran config like this from a shell script:
#!/bin/bash

./configure --with-pcre=/usr/local/bin/pcre-config \
--enable-layout=DETR \
--prefix=/apps/apache_2.4.39 \
--enable-proxy-html   \
--enable-socache-shmcb \
--enable-ssl

What happened is that the /var/www/html and /var/www/cgi-bin directories
got created, but in the httpd.conf file had this for the DocumentRoot and 
script locations:

DocumentRoot "/apps/apache_2.4.39/htdocs"

...

and

ScriptAlias  /cgi-bin/   "/apps/apache_2.4.39/cgi-bin/"


It looks like there is someplace where directives in config.layout are being 
ignored. Ideas?

n.b. After I reanthe config command, I ran a 'make clean' prior to the 'make' 
to build a
new server.

Jeffrey Cauhape – IT Professional III – Linux and Solaris Administrator
Nevada Department of Employment, Training and Rehabilitation
(775) 684-3804 (office) jpcauh...@detr.nv.gov

-Original Message-
From: Jeff Cauhape [mailto:jpcauh...@detr.nv.gov] 
Sent: Friday, April 5, 2019 1:21 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Question about configure not answered in 
documentation

Bingo! That's it!

Thank you very much.

Jeffrey Cauhape – IT Professional III – Linux and Solaris Administrator Nevada 
Department of Employment, Training and Rehabilitation
(775) 684-3804 (office) jpcauh...@detr.nv.gov

-Original Message-
From: Rainer Jung [mailto:rainer.j...@kippdata.de]
Sent: Friday, April 5, 2019 1:04 PM
To: users@httpd.apache.org; Jeff Cauhape 
Subject: Re: [users@httpd] Question about configure not answered in 
documentation

Hi Jeff,

Am 05.04.2019 um 20:55 schrieb Jeff Cauhape:
> I am guessing the answer to my question is probably “no”, but I’m 
> hoping
> 
> someone here has a silver bullet.
> 
> We are finally getting our act together and updating our Apache server 
> instances.
> 
> Our chosen way to do this is as follows:
> 
> The /apps directory holds application software distributions, suche as
> 
> /apps/apache_2.4.25
> 
> /apps/apache_2.4.37
> 
> /apps/apache_2.4.39
> 
> /apps/apache   (this is a symbolic link to the current
> distribuiton)
> 
> We keep the DocumentRoot directory outside of the distribution tree 
> because
> 
> when we want to update the server, we don’t want to have to copy the 
> HTML
> 
> and cgi files.
> 
> Q: Is there some way to pass a parameter to configure to point to a 
> directory
> 
> outside of the distribution tree?
> 
> For example, if I want our htdocs to go into /etc/html  by default?
> 
> I know, we can just go in and edit httpd.conf to do this, but it would 
> be handy
> 
> to have it point to the right place as part of the build. I have 
> checked
> 
> https://httpd.apache.org/docs/2.4/programs/configure.html
> 
> and I don’t see anything that indicates that.
> 
> Ideas?

In the source distribution there's a file config.layout. Each layout defined in 
the file has a name and consists of a list of paths to use.

You can add you own layout to that file, e.f. a layout named JEFF and then add 
the configure flag "--enable-layout=JEFF" when running configure.

See:

https://httpd.apache.org/docs/2.4/programs/configure.html

I'm not sure whether that suffices to put the manual into a custom directory 
but you should get close.

Regards,

Rainer

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

B CB  [  
X  ܚX KK[XZ[
 \ \  ][  X  ܚX P
 \X K ܙ B  ܈Y][ۘ[  [X[  K[XZ[
 \ \  Z[
 \X K ܙ B


RE: [users@httpd] Question about configure not answered in documentation

2019-04-05 Thread Jeff Cauhape
It occurred to me that the simplest thing to do with the latest server is to 
just 
copy the httpd.conf file over from the older instance to the newer instance.

Hit the 'Easy' button

Jeffrey Cauhape - IT Professional III - Linux and Solaris Administrator
Nevada Department of Employment, Training and Rehabilitation
(775) 684-3804 (office) jpcauh...@detr.nv.gov

-Original Message-
From: Flaviu Radulescu [mailto:flaviu.radule...@lumminary.com.INVALID] 
Sent: Friday, April 5, 2019 12:53 PM
To: users@httpd.apache.org
Subject: [Unverified Sender] RE: [users@httpd] Question about configure not 
answered in documentation
Importance: Low

Or maybe you can create just a symlink from the apache folder to the correct 
HTML path


---
FLAVIU RADULESCU | Lumminary  |  lumminary.com

PLEASE NOTE:  This email and any file transmitted are confidential and/or 
legally privileged and intended only for the person(s) directly addressed. If 
you are not the intended recipient, any use, copying, transmission, 
distribution, or other forms of dissemination is strictly prohibited. If you 
have received this email in error, please notify the sender immediately and 
permanently delete the email and files, if any.

-Original Message-
From: Dennis Clarke 
Sent: Friday, April 5, 2019 8:39 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Question about configure not answered in 
documentation

On 4/5/19 2:55 PM, Jeff Cauhape wrote:
> I am guessing the answer to my question is probably "no", but I'm 
> hoping
> 
> someone here has a silver bullet.
> 
>


I think this is a basic path thing passed along like so :


beta $ ./configure --prefix=/some/app/path \ --sysconfdir=/usr/local/www/conf \ 
--localstatedir=/usr/local/www/var --datadir=/usr/local/www/data \ 
--htmldir=/usr/local/www/docs \

... etc etc etc



--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional

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


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


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



RE: [users@httpd] Question about configure not answered in documentation

2019-04-05 Thread Jeff Cauhape
Bingo! That's it!

Thank you very much.

Jeffrey Cauhape – IT Professional III – Linux and Solaris Administrator
Nevada Department of Employment, Training and Rehabilitation
(775) 684-3804 (office) jpcauh...@detr.nv.gov

-Original Message-
From: Rainer Jung [mailto:rainer.j...@kippdata.de] 
Sent: Friday, April 5, 2019 1:04 PM
To: users@httpd.apache.org; Jeff Cauhape 
Subject: Re: [users@httpd] Question about configure not answered in 
documentation

Hi Jeff,

Am 05.04.2019 um 20:55 schrieb Jeff Cauhape:
> I am guessing the answer to my question is probably “no”, but I’m 
> hoping
> 
> someone here has a silver bullet.
> 
> We are finally getting our act together and updating our Apache server 
> instances.
> 
> Our chosen way to do this is as follows:
> 
> The /apps directory holds application software distributions, suche as
> 
> /apps/apache_2.4.25
> 
> /apps/apache_2.4.37
> 
> /apps/apache_2.4.39
> 
> /apps/apache   (this is a symbolic link to the current 
> distribuiton)
> 
> We keep the DocumentRoot directory outside of the distribution tree 
> because
> 
> when we want to update the server, we don’t want to have to copy the 
> HTML
> 
> and cgi files.
> 
> Q: Is there some way to pass a parameter to configure to point to a 
> directory
> 
> outside of the distribution tree?
> 
> For example, if I want our htdocs to go into /etc/html  by default?
> 
> I know, we can just go in and edit httpd.conf to do this, but it would 
> be handy
> 
> to have it point to the right place as part of the build. I have 
> checked
> 
> https://httpd.apache.org/docs/2.4/programs/configure.html
> 
> and I don’t see anything that indicates that.
> 
> Ideas?

In the source distribution there's a file config.layout. Each layout defined in 
the file has a name and consists of a list of paths to use.

You can add you own layout to that file, e.f. a layout named JEFF and then add 
the configure flag "--enable-layout=JEFF" when running configure.

See:

https://httpd.apache.org/docs/2.4/programs/configure.html

I'm not sure whether that suffices to put the manual into a custom directory 
but you should get close.

Regards,

Rainer

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



Re: [users@httpd] Question about configure not answered in documentation

2019-04-05 Thread Rainer Jung

Hi Jeff,

Am 05.04.2019 um 20:55 schrieb Jeff Cauhape:

I am guessing the answer to my question is probably “no”, but I’m hoping

someone here has a silver bullet.

We are finally getting our act together and updating our Apache server 
instances.


Our chosen way to do this is as follows:

The /apps directory holds application software distributions, suche as

/apps/apache_2.4.25

/apps/apache_2.4.37

/apps/apache_2.4.39

/apps/apache   (this is a symbolic link to the current distribuiton)

We keep the DocumentRoot directory outside of the distribution tree because

when we want to update the server, we don’t want to have to copy the HTML

and cgi files.

Q: Is there some way to pass a parameter to configure to point to a 
directory


outside of the distribution tree?

For example, if I want our htdocs to go into /etc/html  by default?

I know, we can just go in and edit httpd.conf to do this, but it would 
be handy


to have it point to the right place as part of the build. I have checked

https://httpd.apache.org/docs/2.4/programs/configure.html

and I don’t see anything that indicates that.

Ideas?


In the source distribution there's a file config.layout. Each layout 
defined in the file has a name and consists of a list of paths to use.


You can add you own layout to that file, e.f. a layout named JEFF and 
then add the configure flag "--enable-layout=JEFF" when running configure.


See:

https://httpd.apache.org/docs/2.4/programs/configure.html

I'm not sure whether that suffices to put the manual into a custom 
directory but you should get close.


Regards,

Rainer

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



RE: [users@httpd] Question about configure not answered in documentation

2019-04-05 Thread Flaviu Radulescu
Or maybe you can create just a symlink from the apache folder to the correct 
HTML path


---
FLAVIU RADULESCU | Lumminary  |  lumminary.com

PLEASE NOTE:  This email and any file transmitted are confidential and/or 
legally privileged and intended only for the person(s) directly addressed. If 
you are not the intended recipient, any use, copying, transmission, 
distribution, or other forms of dissemination is strictly prohibited. If you 
have received this email in error, please notify the sender immediately and 
permanently delete the email and files, if any.

-Original Message-
From: Dennis Clarke  
Sent: Friday, April 5, 2019 8:39 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Question about configure not answered in 
documentation

On 4/5/19 2:55 PM, Jeff Cauhape wrote:
> I am guessing the answer to my question is probably "no", but I'm 
> hoping
> 
> someone here has a silver bullet.
> 
>


I think this is a basic path thing passed along like so :


beta $ ./configure --prefix=/some/app/path \ --sysconfdir=/usr/local/www/conf \ 
--localstatedir=/usr/local/www/var --datadir=/usr/local/www/data \ 
--htmldir=/usr/local/www/docs \

... etc etc etc



--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional

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


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



Re: [users@httpd] Question about configure not answered in documentation

2019-04-05 Thread Dennis Clarke
On 4/5/19 2:55 PM, Jeff Cauhape wrote:
> I am guessing the answer to my question is probably “no”, but I’m hoping
> 
> someone here has a silver bullet.
> 
>


I think this is a basic path thing passed along like so :


beta $ ./configure --prefix=/some/app/path \
--sysconfdir=/usr/local/www/conf \
--localstatedir=/usr/local/www/var --datadir=/usr/local/www/data \
--htmldir=/usr/local/www/docs \

... etc etc etc



-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional

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



[users@httpd] Question about configure not answered in documentation

2019-04-05 Thread Jeff Cauhape
I am guessing the answer to my question is probably "no", but I'm hoping
someone here has a silver bullet.

We are finally getting our act together and updating our Apache server 
instances.
Our chosen way to do this is as follows:

The /apps directory holds application software distributions, suche as

/apps/apache_2.4.25
/apps/apache_2.4.37
/apps/apache_2.4.39
/apps/apache   (this is a symbolic link to the current distribuiton)

We keep the DocumentRoot directory outside of the distribution tree because
when we want to update the server, we don't want to have to copy the HTML
and cgi files.

Q: Is there some way to pass a parameter to configure to point to a directory
outside of the distribution tree?

For example, if I want our htdocs to go into /etc/html  by default?

I know, we can just go in and edit httpd.conf to do this, but it would be handy
to have it point to the right place as part of the build. I have checked

https://httpd.apache.org/docs/2.4/programs/configure.html

and I don't see anything that indicates that.

Ideas?

Thanks,

Jeffrey Cauhape - IT Professional III - Linux and Solaris Administrator
Nevada Department of Employment, Training and Rehabilitation
(775) 684-3804 (office) jpcauh...@detr.nv.gov



Re: [users@httpd] Question about order of execution

2019-02-05 Thread James Moe
On 04/02/2019 6.18 PM, Eric Covener wrote:

>>   My question is: Does the certificate validation occur before or after
>> processing <.htaccess>?
>
> Long before, the handshake is complete before any HTTP request.
>
  Ah, quite.
  Thanks.

-- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.



signature.asc
Description: OpenPGP digital signature


Re: [users@httpd] Question about order of execution

2019-02-04 Thread Eric Covener
>   My question is: Does the certificate validation occur before or after
> processing <.htaccess>?

Long before, the handshake is complete before any HTTP request.

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



[users@httpd] Question about order of execution

2019-02-04 Thread James Moe
apache 2.4.38
linux 2.26.32 x86_64

  We have de-commissioned a domain, businessmastery.us, and have added
Redirects to point to the new locations for its information.
  We recently received a query that a visitor's browser was complaining
about how unsafe businessmastery.us was, what with an expired SSL
certificate and all. I am unclear how they got to the old site at all.

  My question is: Does the certificate validation occur before or after
processing <.htaccess>?

[ .htaccess ]
#
Options +ExecCGI
#
#
# 20180722 jmm: De-commissioned. Refer to sohnen-moe.com
#
Redirect Permanent /register/ https://sohnen-moe.com/bm5-registration/
Redirect Permanent /workbook.php
https://sohnen-moe.com/bm5-workbook-request/
Redirect Permanent /workbook5/ https://sohnen-moe.com/bm5-workbook-request/
# Redirect Permanent
#
# Catchall for other bizmast URLs.
ReDirectMatch Permanent ^.*$
"https://sohnen-moe.com/products/books/#product-business-mastery;
#
#
# 20180315 jmm: Always use a secure connection
#
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R]
[ end ]


-- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.



signature.asc
Description: OpenPGP digital signature


Re: [users@httpd] Question about linking third-party GPL plugin to httpd

2018-10-29 Thread Yehuda Katz
You should definitely talk to your own lawyer but in general, the license
applies to distribution, not to your own use.
https://www.gnu.org/licenses/gpl-faq.en.html#GPLRequireSourcePostedPublic



- Y

Sent from a device with a very small keyboard and hyperactive autocorrect.

On Mon, Oct 29, 2018, 10:47 PM Remus Clearwater 
wrote:

> Hi,
> I downloaded the sources of a third-party plugin A and the httpd
> separately. The license of plugin A is GPL, and httpd is Apache License
> 2.0. There is also a plugin B developed by our own company and is closed
> source. So, does there would be some problems when I compile and link
> them three together to provide web service for our users through the
> internet? (Since GPL is infectious, will plugin B and httpd be infected
> in this case?)
>
> Thank you very much for your time :-)
>
> All the best
>
> Remus
>


[users@httpd] Question about linking third-party GPL plugin to httpd

2018-10-29 Thread Remus Clearwater
Hi,
I downloaded the sources of a third-party plugin A and the httpd
separately. The license of plugin A is GPL, and httpd is Apache License
2.0. There is also a plugin B developed by our own company and is closed
source. So, does there would be some problems when I compile and link them
three together to provide web service for our users through the
internet? (Since
GPL is infectious, will plugin B and httpd be infected in this case?)

Thank you very much for your time :-)

All the best

Remus


Re: [users@httpd] Question about apache2.4, prefork and mod_perl

2017-09-13 Thread Norbert



On 09/13/17 14:05, Yann Ylavic wrote:

Hi Norbert,

can we keep the users@ mailing list CC-ed on this since it may be
relevant for others too?
Moreover people with a better knowledge of mod_perl than me could chime in...

On Wed, Sep 13, 2017 at 1:33 PM, Norbert  wrote:

thanks - but it does not help -

The case seems to be mod_perl specific (I know very few about it),
"normally" preforked processes have the lifetime given by these
directives...

Could it be a crash of children processes somehow, or a special
handling of processes in mod_perl?
The creation of multiple root processes at startup looks special to
me, usually httpd has a single root process to maintain children
(www:www) processes, is a root process still alive after the load?


For others on the list, your results below:


have a look, I use top in 1 second intervals
and extracted the httpd processes which have the user www.
The minus represent the 1 second gap:

-
-
30830 www1  240   326M 31884K select  0 0:00   0.00% httpd
30832 www1  270   326M 31636K select  4 0:00   0.00% httpd
30833 www1  270   326M 31636K select  5 0:00   0.00% httpd
30834 www1  270   326M 31636K select  1 0:00   0.00% httpd
30831 www1  270   326M 31644K select  6 0:00   0.00% httpd
30835 www1  270   326M 31632K select  0 0:00   0.00% httpd
-
30830 www1  240   326M 31884K select  0 0:00   0.49% httpd
30832 www1  270   326M 31636K select  4 0:00   0.49% httpd
30833 www1  270   326M 31636K select  5 0:00   0.49% httpd
30834 www1  270   326M 31636K select  1 0:00   0.49% httpd
30831 www1  270   326M 31644K select  6 0:00   0.49% httpd
30835 www1  270   326M 31632K select  0 0:00   0.49% httpd
-
30830 www1  210   326M 31928K select  3 0:00   0.39% httpd
30832 www1  270   326M 31636K select  4 0:00   0.39% httpd
30833 www1  270   326M 31636K select  5 0:00   0.39% httpd
30834 www1  270   326M 31636K select  1 0:00   0.39% httpd
30831 www1  270   326M 31644K select  6 0:00   0.39% httpd
30835 www1  270   326M 31632K select  0 0:00   0.39% httpd
-
30830 www1  210   330M 35880K select  3 0:00   0.59% httpd
30832 www1  270   326M 31636K select  4 0:00   0.29% httpd
30833 www1  270   326M 31636K select  5 0:00   0.29% httpd
30834 www1  270   326M 31636K select  1 0:00   0.29% httpd
30831 www1  270   326M 31644K select  6 0:00   0.29% httpd
30835 www1  270   326M 31632K select  0 0:00   0.29% httpd
-
30830 www1  210   330M 35880K select  3 0:00   0.49% httpd
30832 www1  270   326M 31636K select  4 0:00   0.20% httpd
30833 www1  270   326M 31636K select  5 0:00   0.20% httpd
30834 www1  270   326M 31636K select  1 0:00   0.20% httpd
30831 www1  270   326M 31644K select  6 0:00   0.20% httpd
30835 www1  270   326M 31632K select  0 0:00   0.20% httpd
-
30830 www1  210   330M 35900K select  4 0:00   0.39% httpd
30831 www1  200   326M 31652K select  4 0:00   0.20% httpd
30835 www1  200   326M 31636K select  6 0:00   0.10% httpd
-
30830 www1  200   330M 35900K select  1 0:00   0.29% httpd
30831 www1  200   326M 31876K select  0 0:00   0.20% httpd
30835 www1  200   326M 31636K select  5 0:00   0.10% httpd
-
30831 www1  200   326M 31932K select  7 0:00   0.29% httpd
30830 www1  200   330M 35900K select  0 0:00   0.20% httpd
30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
-
30831 www1  200   326M 31932K select  7 0:00   0.20% httpd
30830 www1  200   330M 35900K select  0 0:00   0.10% httpd
30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
-
30831 www1  200   326M 31932K select  7 0:00   0.10% httpd
30830 www1  200   330M 35900K select  0 0:00   0.00% httpd
30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
-
30830 www1  200   330M 35900K select  0 0:00   0.00% httpd
30831 www1  200   326M 31932K select  7 0:00   0.00% httpd
30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
-
30830 www1  200   330M 35900K select  0 0:00   0.00% httpd
30831 www1  200   326M 31932K select  7 0:00   0.00% httpd
30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
-
-
-

and then no www user is activae any more...  Note: the test machine is only
used by myself.

Regards, Norbert



On 09/13/17 13:08, Yann Ylavic wrote:

On Wed, Sep 13, 

Re: [users@httpd] Question about apache2.4, prefork and mod_perl

2017-09-13 Thread Yann Ylavic
Hi Norbert,

can we keep the users@ mailing list CC-ed on this since it may be
relevant for others too?
Moreover people with a better knowledge of mod_perl than me could chime in...

On Wed, Sep 13, 2017 at 1:33 PM, Norbert  wrote:
>
> thanks - but it does not help -

The case seems to be mod_perl specific (I know very few about it),
"normally" preforked processes have the lifetime given by these
directives...

Could it be a crash of children processes somehow, or a special
handling of processes in mod_perl?
The creation of multiple root processes at startup looks special to
me, usually httpd has a single root process to maintain children
(www:www) processes, is a root process still alive after the load?


For others on the list, your results below:

> have a look, I use top in 1 second intervals
> and extracted the httpd processes which have the user www.
> The minus represent the 1 second gap:
>
> -
> -
> 30830 www1  240   326M 31884K select  0 0:00   0.00% httpd
> 30832 www1  270   326M 31636K select  4 0:00   0.00% httpd
> 30833 www1  270   326M 31636K select  5 0:00   0.00% httpd
> 30834 www1  270   326M 31636K select  1 0:00   0.00% httpd
> 30831 www1  270   326M 31644K select  6 0:00   0.00% httpd
> 30835 www1  270   326M 31632K select  0 0:00   0.00% httpd
> -
> 30830 www1  240   326M 31884K select  0 0:00   0.49% httpd
> 30832 www1  270   326M 31636K select  4 0:00   0.49% httpd
> 30833 www1  270   326M 31636K select  5 0:00   0.49% httpd
> 30834 www1  270   326M 31636K select  1 0:00   0.49% httpd
> 30831 www1  270   326M 31644K select  6 0:00   0.49% httpd
> 30835 www1  270   326M 31632K select  0 0:00   0.49% httpd
> -
> 30830 www1  210   326M 31928K select  3 0:00   0.39% httpd
> 30832 www1  270   326M 31636K select  4 0:00   0.39% httpd
> 30833 www1  270   326M 31636K select  5 0:00   0.39% httpd
> 30834 www1  270   326M 31636K select  1 0:00   0.39% httpd
> 30831 www1  270   326M 31644K select  6 0:00   0.39% httpd
> 30835 www1  270   326M 31632K select  0 0:00   0.39% httpd
> -
> 30830 www1  210   330M 35880K select  3 0:00   0.59% httpd
> 30832 www1  270   326M 31636K select  4 0:00   0.29% httpd
> 30833 www1  270   326M 31636K select  5 0:00   0.29% httpd
> 30834 www1  270   326M 31636K select  1 0:00   0.29% httpd
> 30831 www1  270   326M 31644K select  6 0:00   0.29% httpd
> 30835 www1  270   326M 31632K select  0 0:00   0.29% httpd
> -
> 30830 www1  210   330M 35880K select  3 0:00   0.49% httpd
> 30832 www1  270   326M 31636K select  4 0:00   0.20% httpd
> 30833 www1  270   326M 31636K select  5 0:00   0.20% httpd
> 30834 www1  270   326M 31636K select  1 0:00   0.20% httpd
> 30831 www1  270   326M 31644K select  6 0:00   0.20% httpd
> 30835 www1  270   326M 31632K select  0 0:00   0.20% httpd
> -
> 30830 www1  210   330M 35900K select  4 0:00   0.39% httpd
> 30831 www1  200   326M 31652K select  4 0:00   0.20% httpd
> 30835 www1  200   326M 31636K select  6 0:00   0.10% httpd
> -
> 30830 www1  200   330M 35900K select  1 0:00   0.29% httpd
> 30831 www1  200   326M 31876K select  0 0:00   0.20% httpd
> 30835 www1  200   326M 31636K select  5 0:00   0.10% httpd
> -
> 30831 www1  200   326M 31932K select  7 0:00   0.29% httpd
> 30830 www1  200   330M 35900K select  0 0:00   0.20% httpd
> 30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
> -
> 30831 www1  200   326M 31932K select  7 0:00   0.20% httpd
> 30830 www1  200   330M 35900K select  0 0:00   0.10% httpd
> 30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
> -
> 30831 www1  200   326M 31932K select  7 0:00   0.10% httpd
> 30830 www1  200   330M 35900K select  0 0:00   0.00% httpd
> 30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
> -
> 30830 www1  200   330M 35900K select  0 0:00   0.00% httpd
> 30831 www1  200   326M 31932K select  7 0:00   0.00% httpd
> 30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
> -
> 30830 www1  200   330M 35900K select  0 0:00   0.00% httpd
> 30831 www1  200   326M 31932K select  7 0:00   0.00% httpd
> 30835 www1  200   326M 31636K select  5 0:00   0.00% httpd
> -
> -
> -
>
> and then no www user is activae any more...  Note: the test 

Re: [users@httpd] Question about apache2.4, prefork and mod_perl

2017-09-13 Thread Yann Ylavic
On Wed, Sep 13, 2017 at 10:10 AM, Norbert  wrote:
> Thanks, I set (on my testmachine):
>
> 
> MinSpareServers 4
> MaxSpareServers 4
> MaxConnectionsPerChild 10
> 
>
> but nothing changes -  the httpd processes with user www:www appear and
> disappear in top after seconds...

We the above, there should be at least 4 processes that don't
disappear before 10 handling
10 connections.

But if more/other processes are created because of the load, they
would be recycled as soon as the load decreases.


What do you observe with the below ?


StartServers4
ServerLimit 80
MinSpareServers 4
MaxSpareServers 40
MaxRequestWorkers   80
MaxConnectionsPerChild  0



Regards,
Yann.

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



Re: [users@httpd] Question about apache2.4, prefork and mod_perl

2017-09-13 Thread Yann Ylavic
On Wed, Sep 13, 2017 at 9:56 AM, Yann Ylavic  wrote:
>
> Please have a look at http://httpd.apache.org/docs/2.4/fr/mod/prefork.html.

Sorry, http://httpd.apache.org/docs/2.4/mod/prefork.html or
http://httpd.apache.org/docs/2.4/de/mod/prefork.html might be more
appropriate...

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



Re: [users@httpd] Question about apache2.4, prefork and mod_perl

2017-09-13 Thread Yann Ylavic
Hi,

On Wed, Sep 13, 2017 at 9:11 AM, Norbert  wrote:
>
> So: I am running apache 2.4 (on FreeBSD 11), use mod_perl and prefork.  When
> the server starts it creates several httpd processes all running under root.
> This is ok.  When a request arrives it creates subprocesses with the user
> www:www (80:80) - everything ok.  But now the question: why are the
> processes with www:www user terminated after a short time / request?
> Meaning: if I wait a short time, the mod_perl modules have allways been
> "reinitailized", as far as I can so from my debugging output. Is there a way
> to keep a fixed number of processes under www:www running - at least for
> hours?  I hope I could explain...

Please have a look at http://httpd.apache.org/docs/2.4/fr/mod/prefork.html.

The relevant directives are MinSpareServers and MaxSpareServers for
the number of running processes, and MaxConnectionsPerChild for their
lifetime.


Regards,
Yann.

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



[users@httpd] Question about apache2.4, prefork and mod_perl

2017-09-13 Thread Norbert

Hello,

I hope this request is not stupid, but I did not find anything which 
gives me an answer...


So: I am running apache 2.4 (on FreeBSD 11), use mod_perl and prefork.  
When the server starts it creates several httpd processes all running 
under root.  This is ok.  When a request arrives it creates subprocesses 
with the user www:www (80:80) - everything ok.  But now the question: 
why are the processes with www:www user terminated after a short time / 
request?  Meaning: if I wait a short time, the mod_perl modules have 
allways been "reinitailized", as far as I can so from my debugging 
output. Is there a way to keep a fixed number of processes under www:www 
running - at least for hours?  I hope I could explain...


the neccessary part of my httpd.conf is:

...
LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
...

User www
Group www

...
PerlRequire /path/to/startup.pl
PerlModule ModPerl::PerlRun
PerlModule ModPerl::Registry
...

thanks for help!  Norbert



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



Re: [users@httpd] Question about make openssl files

2017-02-23 Thread Rodrigo Cunha
sorry

2017-02-23 16:22 GMT-03:00 Yehuda Katz :

> Hi Rodrigo,
> This mailing list is for Apache HTTPD. If you have questions about
> OpenSSL, you should try an OpenSSL mailing list (
> https://www.openssl.org/community/mailinglists.html) or documentation (
> https://www.openssl.org/docs/manpages.html).
>
> To point you in the right direction though: you probably want to start
> with the req manpage: https://www.openssl.org/docs/man1.0.2/apps/req.html and
> read the information about setting attributes.
>
> - Y
>
> On Thu, Feb 23, 2017 at 1:58 PM, Rodrigo Cunha 
> wrote:
>
>> Dears, a want know how i insert auto answers for questions from openssl
>> stdout.
>> I want knew how to bypass the extra attributes "password" options in my
>> csr settings.
>> my commands for make this files:
>> openssl req  -nodes -new -x509  -keyout aux.key -out aux.cert
>> openssl req -new -key aux.key -out aux.csr
>>
>> I want do answers for this questions:
>>
>> Country Name (2 letter code) [AU]: Indefinido
>> State or Province Name (full name) [ ]: Indefinido
>> Locality Name (eg, city) []:
>> Organization Name (eg, company) [Internet Widgits Pty Ltd]:Indefinido
>> Organizational Unit Name (eg, section) []:Indefinido
>> Common Name (e.g. server FQDN or YOUR name) []:Indefinido
>> Email Address []:Indefinido
>>
>> I dont answers password for this.
>>
>> --
>> Atenciosamente,
>> Rodrigo da Silva Cunha
>> São Gonçalo, RJ - Brasil
>>
>>
>>
>> 
>>  Livre
>> de vírus. www.avast.com
>> .
>>
>> <#m_-2280936000779004583_m_4278783927997947723_m_6002865144250440756_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>
>


-- 
Atenciosamente,
Rodrigo da Silva Cunha
São Gonçalo, RJ - Brasil


Re: [users@httpd] Question about make openssl files

2017-02-23 Thread Yehuda Katz
Hi Rodrigo,
This mailing list is for Apache HTTPD. If you have questions about OpenSSL,
you should try an OpenSSL mailing list (https://www.openssl.org/
community/mailinglists.html) or documentation (https://www.openssl.org/docs/
manpages.html).

To point you in the right direction though: you probably want to start with
the req manpage: https://www.openssl.org/docs/man1.0.2/apps/req.html and
read the information about setting attributes.

- Y

On Thu, Feb 23, 2017 at 1:58 PM, Rodrigo Cunha 
wrote:

> Dears, a want know how i insert auto answers for questions from openssl
> stdout.
> I want knew how to bypass the extra attributes "password" options in my
> csr settings.
> my commands for make this files:
> openssl req  -nodes -new -x509  -keyout aux.key -out aux.cert
> openssl req -new -key aux.key -out aux.csr
>
> I want do answers for this questions:
>
> Country Name (2 letter code) [AU]: Indefinido
> State or Province Name (full name) [ ]: Indefinido
> Locality Name (eg, city) []:
> Organization Name (eg, company) [Internet Widgits Pty Ltd]:Indefinido
> Organizational Unit Name (eg, section) []:Indefinido
> Common Name (e.g. server FQDN or YOUR name) []:Indefinido
> Email Address []:Indefinido
>
> I dont answers password for this.
>
> --
> Atenciosamente,
> Rodrigo da Silva Cunha
> São Gonçalo, RJ - Brasil
>
>
>
> 
>  Livre
> de vírus. www.avast.com
> .
>
> <#m_4278783927997947723_m_6002865144250440756_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>


[users@httpd] Question about make openssl files

2017-02-23 Thread Rodrigo Cunha
Dears, a want know how i insert auto answers for questions from openssl
stdout.
I want knew how to bypass the extra attributes "password" options in my csr
settings.
my commands for make this files:
openssl req  -nodes -new -x509  -keyout aux.key -out aux.cert
openssl req -new -key aux.key -out aux.csr

I want do answers for this questions:

Country Name (2 letter code) [AU]: Indefinido
State or Province Name (full name) [ ]: Indefinido
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Indefinido
Organizational Unit Name (eg, section) []:Indefinido
Common Name (e.g. server FQDN or YOUR name) []:Indefinido
Email Address []:Indefinido

I dont answers password for this.

-- 
Atenciosamente,
Rodrigo da Silva Cunha
São Gonçalo, RJ - Brasil



Livre
de vírus. www.avast.com
.
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


[users@httpd] Question about ProxyPass / Reverse Proxy

2017-02-03 Thread Lacroix, Scott
Hello All,

My apologies if this has been asked before, but I have done extensive Googling 
and I can't find it if it has!

What we're doing is using a Reverse Proxy setup to redirect a local request to 
another local URL:

ProxyPass /path/morePath/info http://localhost:7000/morePath/info retry=0 ttl=10
ProxyPass /path/morePath ws://localhost:7000/morePath retry=0 ttl=10
ProxyPass /path/ http://localhost:7000/ retry=0 ttl=10

That works MOST of the time. The problem we're seeing is this: If we try to 
pre-configure a system that is set up for DHCP but has no network connection 
(pre-configuring on a bench) and thus no IP address, we're having trouble with 
the redirect. BUT if I change the above to the following:

ProxyPass /path/morePath/info http://0.0.0.0:7000/morePath/info retry=0 ttl=10
ProxyPass /path/morePath ws://0.0.0.0:7000/morePath retry=0 ttl=10
ProxyPass /path/ http://0.0.0.0:7000/ retry=0 ttl=10

Then it works fine.

So my question is: what's the difference here? What exactly does mod_proxy do 
with the address 0.0.0.0, and why doesn't "localhost" work?

Thanks for whatever help you can give!

Scott LaCroix
Software Engineer | JCI / Tyco Safety Products
O: 978.577.4057 | F: 978.577.4392 | 
slacr...@tycoint.com




This e-mail contains privileged and confidential information intended for the 
use of the addressees named above. If you are not the intended recipient of 
this e-mail, you are hereby notified that you must not disseminate, copy or 
take any action in respect of any information contained in it. If you have 
received this e-mail in error, please notify the sender immediately by e-mail 
and immediately destroy this e-mail and its attachments.


Re: [users@httpd] Question about adding new cipher to openssl and then testing through apache httpd

2017-01-08 Thread Eric Covener
On Sun, Jan 8, 2017 at 12:59 AM, William Bathurst  wrote:
> Hi Eric,
>
> Can you please explain how to load the new one at runtime?

Usually just whatever your platform does for LD_LIBRARY_PATH, LIBPATH, etc.

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



Re: [users@httpd] Question about adding new cipher to openssl and then testing through apache httpd

2017-01-07 Thread William Bathurst

Hi Eric,

Can you please explain how to load the new one at runtime?

Thanks!
Bill


On 1/7/2017 8:08 PM, Eric Covener wrote:

You often have to take efforts to load the new one at runtime, too



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



Re: [users@httpd] Question about adding new cipher to openssl and then testing through apache httpd

2017-01-07 Thread Eric Covener
On Sat, Jan 7, 2017 at 10:41 PM, William Bathurst  wrote:
> I initially tried compiling 2.4 with the custom OpenSSL and then listing the
> new ciphers in the
> SSLCipherSuite directive but they were not recognized.


You often have to take efforts to load the new one at runtime, too.

-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] Question about adding new cipher to openssl and then testing through apache httpd

2017-01-07 Thread Michael A. Peters

I'm not sure you need to do anything in OpenSSL.

When I build Apache against LibreSSL, I have access to ciphers in 
LibreSSL that are (or were) not in OpenSSL.


As long as your new cipher doesn't trigger any blacklists in the mod_ssl 
source it should be picked up and available as long as a client supports 
it too.


On 01/07/2017 07:41 PM, William Bathurst wrote:

Hello,

I have created a custom version of Openssl v1.1 where I am testing a new
cipher algorithm. I now wish to integrate and test in Apache HTTP. Where
in the source code do I need update in order to get Apache HTTP to
recognize the new cipher? I can list the new cipher using the "openssl
ciphers" command:

/usr/local/ssl/bin/openssl ciphers

ECDHE-ECDSA-CIPHERTEST256-SHA256:ECDHE-RSA-CIPHERTEST256-SHA256:ECDHE-ECDSA-CIPHERTEST128-SHA256:ECDHE-RSA-CIPHERTEST128-SHA256:CIPHERTEST256-SHA256:CIPHERTEST128-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-CCM8:..

I initially tried compiling 2.4 with the custom OpenSSL and then listing
the new ciphers in the
SSLCipherSuite directive but they were not recognized.

NOTES:
Server version: Apache/2.4.24-dev (Unix)
Server built:   Jan  8 2017 00:11:07

OpenSSL 1.1.1-TEST-dev  xx XXX 

Thanks in advance!





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



[users@httpd] Question about adding new cipher to openssl and then testing through apache httpd

2017-01-07 Thread William Bathurst

Hello,

I have created a custom version of Openssl v1.1 where I am testing a new 
cipher algorithm. I now wish to integrate and test in Apache HTTP. Where 
in the source code do I need update in order to get Apache HTTP to 
recognize the new cipher? I can list the new cipher using the "openssl 
ciphers" command:


/usr/local/ssl/bin/openssl ciphers

ECDHE-ECDSA-CIPHERTEST256-SHA256:ECDHE-RSA-CIPHERTEST256-SHA256:ECDHE-ECDSA-CIPHERTEST128-SHA256:ECDHE-RSA-CIPHERTEST128-SHA256:CIPHERTEST256-SHA256:CIPHERTEST128-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-CCM8:..

I initially tried compiling 2.4 with the custom OpenSSL and then listing 
the new ciphers in the

SSLCipherSuite directive but they were not recognized.

NOTES:
Server version: Apache/2.4.24-dev (Unix)
Server built:   Jan  8 2017 00:11:07

OpenSSL 1.1.1-TEST-dev  xx XXX 

Thanks in advance!




Re: [users@httpd] Question

2016-11-04 Thread Rich Bowen


On 11/01/2016 06:46 PM, Abdullah AbuHijleh wrote:
> We need to configure Apache HTTP Server Version 2.4 to work with
> Kerberos SSO ?
> 
> Please help

Looks like there's something called mod_auth_kerb
http://modauthkerb.sourceforge.net/ but it doesn't appear to be actively
maintained.

-- 
Rich Bowen - rbo...@rcbowen.com - @rbowen
http://apachecon.com/ - @apachecon

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



Re: [users@httpd] Question about configuring apache to use php via fpm

2016-11-03 Thread Rose, John B
You may also want to be aware of …

ProxyErrorOverride

In case you want to use Custom error pages from Apache when using php-fpm

From: Jason Brooks <jason.bro...@eroi.com>
Reply-To: "users@httpd.apache.org" <users@httpd.apache.org>
Date: Thursday, November 3, 2016 at 3:07 PM
To: "users@httpd.apache.org" <users@httpd.apache.org>
Subject: Re: [users@httpd] Question about configuring apache to use php via fpm

This does help, thank you!

Jason Brooks

Systems Administrator

eROI

Performance is Art.




m:

505 nw couch #300

w:

eroi.com<http://eroi.com/>

t:

503.290.3105

f:

503.228.4249


fb:

fb.com/eROI<http://www.facebook.com/eROI>






On Nov 3, 2016, at 11:30 AM, Luca Toscano 
<toscano.l...@gmail.com<mailto:toscano.l...@gmail.com>> wrote:

Hello Jason,




mod-proxy-fcgi is the only one actively supported and developed in the httpd 
project at the moment, it is definitely the best choice for the php-fpm use 
case (standalone daemon that does not need more than a proxy in front of it).

https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html#examples contains 
also good references.

Hope that helps!

Luca



Re: [users@httpd] Question about configuring apache to use php via fpm

2016-11-03 Thread Jason Brooks
This does help, thank you!

Jason BrooksSystems Administrator
eROIPerformance is Art.
 
m:  505 nw couch #300   w:  eroi.com 
t:  503.290.3105f:  503.228.4249


fb: fb.com/eROI 








> On Nov 3, 2016, at 11:30 AM, Luca Toscano  wrote:
> 
> Hello Jason,
> 
> 

> mod-proxy-fcgi is the only one actively supported and developed in the httpd 
> project at the moment, it is definitely the best choice for the php-fpm use 
> case (standalone daemon that does not need more than a proxy in front of it).
> 
> https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html#examples 
>  contains 
> also good references.
> 
> Hope that helps!
> 
> Luca 



Re: [users@httpd] Question about configuring apache to use php via fpm

2016-11-03 Thread Luca Toscano
Hello Jason,

2016-11-03 19:05 GMT+01:00 Jason Brooks :

> Hello,
>
> There are several sites on configuring apache with php-fpm.  Many don’t
> work, some appear to be contradictory.
>
> Thus far, I found two configurations that work, but I am not sure which
> one is more correct.  By “more correct” I mean
>
> less convoluted
> less hidden issues
> less security problems
> better performing
> …
>
> This is on a ubuntu 16.04 LTS server, running apache 2.4.18, mpm-event,
> with php7.0-fpm installed.  I do NOT have mod_php installed.  For my test,
> I am just running the phpinfo() function call.
>
> Here are the configuration methods I have found to work:
> 
> 
> 1) using mod_alias, mod_fastcgi, and mod_actions:
> 
> Require all granted
>  
>  
> AddHandler php7-fcgi .php
> Action php7-fcgi /php7-fcgi virtual
> Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi
> FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -host 127.0.0.1:9000
> -pass-header Authorization
> 
>
> This was found at https://www.howtoforge.com/tutorial/apache-with-php-fpm-
> on-ubuntu-16-04/ dated last August.
> it seems hacky: it needs a cgi-bin directory to be configured, but doesn’t
> actually put anything in a cgi-bin directory to execute...
>
> 
> 
> 2) using mod_proxy, and mod_proxy_fcgi
> ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://localhost:9000/var/www/html/$1"
> enablereuse=on
>
> This was found at https://wiki.apache.org/httpd/PHP-FPM dated last July.
> it seems more elegant, but I don’t know how speedy it might be.
>
>
mod-proxy-fcgi is the only one actively supported and developed in the
httpd project at the moment, it is definitely the best choice for the
php-fpm use case (standalone daemon that does not need more than a proxy in
front of it).

https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html#examples contains
also good references.

Hope that helps!

Luca


[users@httpd] Question about configuring apache to use php via fpm

2016-11-03 Thread Jason Brooks
Hello,

There are several sites on configuring apache with php-fpm.  Many don’t work, 
some appear to be contradictory.  

Thus far, I found two configurations that work, but I am not sure which one is 
more correct.  By “more correct” I mean 

less convoluted
less hidden issues
less security problems
better performing
…

This is on a ubuntu 16.04 LTS server, running apache 2.4.18, mpm-event, with 
php7.0-fpm installed.  I do NOT have mod_php installed.  For my test, I am just 
running the phpinfo() function call.

Here are the configuration methods I have found to work:

1) using mod_alias, mod_fastcgi, and mod_actions:
 
Require all granted 
  
  
AddHandler php7-fcgi .php 
Action php7-fcgi /php7-fcgi virtual 
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi 
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -host 
127.0.0.1:9000 -pass-header Authorization 


This was found at 
https://www.howtoforge.com/tutorial/apache-with-php-fpm-on-ubuntu-16-04/ 
 
dated last August.
it seems hacky: it needs a cgi-bin directory to be configured, but 
doesn’t actually put anything in a cgi-bin directory to execute...


2) using mod_proxy, and mod_proxy_fcgi
ProxyPassMatch ^/(.*\.php(/.*)?)$ 
"fcgi://localhost:9000/var/www/html/$1" enablereuse=on

This was found at https://wiki.apache.org/httpd/PHP-FPM 
 dated last July.
it seems more elegant, but I don’t know how speedy it might be.

Thank you for your time!

—jason



Jason BrooksSystems Administrator
eROIPerformance is Art.
 
m:  505 nw couch #300   w:  eroi.com 
t:  503.290.3105f:  503.228.4249


fb: fb.com/eROI 










[users@httpd] Question

2016-11-01 Thread Abdullah AbuHijleh
We need to configure Apache HTTP Server Version 2.4 to work with Kerberos
SSO ?

Please help


[users@httpd] Question on correlation bewteen timeout types (Acquire, connection, proxytimeout and timeout)

2016-06-24 Thread Christian Georg
Hi all,

I am currently trying to understand the different timout parameters a bit 
better and how they interact.  We are using apache httpd 2.4 mod_proxy on a 
centos system as a reverse proxy with mod_proxy_balancer.

Here is the relevant section from our setup:

Define CONNECTION_OPTIONS "min=10 max=500 smax=30 acquire=5000 
connectiontimeout=5 disablereuse=off keepalive=off timeout=29 ttl=10 retry=60"

BalancerMember https://Server1/   ${CONNECTION_OPTIONS}
BalancerMember https:// Server2/  ${CONNECTION_OPTIONS} 
status=+H
ProxySet lbmethod=bytraffic


What I am trying to understand is how the different timeout parameters interact 
and at what time a request might have been sent to the backend.

Can you confirm/correct the following understanding and answer the questions?

Acquire:
Acquire timeout is a timeout send to the client if the connection pool is very 
busy and apache did not even start to process the request. If this timeout 
happens the request did not reach the proxy and I can be sure no request is 
sent to the backend. In this case, the client will receive an http 503. Should 
I see these kind of requests within the access log of the proxy virtual host?

Connectiontimeout:
Connectiontimeout is a timeout that happens during handshake between the apache 
proxy and the backend. As we are using SSL between the proxy and the backend 
this can happen during SSL Handshake. If this timeout occurs the request was 
trying to be processed by the proxy and will appear in the access log with an 
http code of 504. If this timeout occurs, then I can be sure that the request 
has not been sent to the backend. Can any other http code occur from time 
timeout and is there even a small chance that we might have send the request to 
the backend?

ProxyTimeout and timeout:
Timeout and proxy timeout will both occur only if a successful connection to 
the backend was established and if the request has been sent to the backend. 
Hence I should the see request in both logfiles. If the server does not respond 
within the time defined in this timeout I would expect an http 502 to be 
created. Is this correct? The Part I would like to understand is: does the 
timeout include the acquire time and connection time or is it independent?
Let's take an example: If it takes 4 seconds to acquire a connection and 
another 4 seconds to connect to the backend will the will the client see a 
timout after 29 seconds (timeout includes acquire and connection)  will the 
client see a timeout after 33 seconds (timout does nto include acquire time but 
toes include connection time) or will the client see a timeout after 37 seconds 
(timeout will only start to after the request was send).

Is there any reason to set the proxytimeout to another value than the timeout?

One related question: We are currently logging the http codes using "%>s" from 
my understanding this is the http code we are sending in the response to the 
client. Is this correct and is there a way to also log the http code we have 
received from the backend we are proxying to? I would expect the http code from 
the backend to be empty if a timeout occurs in our systems

Thanks in advance

Chris





Re: [users@httpd] Question

2016-01-25 Thread Frank Gingras



On 25/01/16 02:59 PM, Debra Rozier wrote:

I have a php application that is hosted on IIS / MSSQL:

  * IIS 8.5 on Windows 2012 R2
  * Wincache 1.3.5 / FASTCgi
  * PHP 5.4
  * MSSQL 2008
  * NLB environment with 2 web servers with approx 30-40 users hitting
the web application between the two

The problem I am having is that one of the IIS system periodically goes
down across both of them and users are no longer able to log into the
application if they are currently routed to the downed server, and they
are not rerouted to the new server when they attempt to reconnect to the
application.  They physically have to point the URL directly to the up
server in the NLB to use the second running server.

Any thoughts on why this may happen?

This is the event that is recorded in the IIS event log:

Inline image 1

Debra





So where does httpd come into the picture? Are you using it as a load 
balancer?


Frank

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



Re: [users@httpd] Question

2016-01-25 Thread Yehuda Katz
Then this is the wrong place to ask for support. This list is for the
Apache HTTPD project and has nothing to do with IIS or PHP.
PHP.net has a list of places you can get PHP-specific help:
http://php.net/support.php

- Y

On Mon, Jan 25, 2016 at 3:27 PM, Debra Rozier  wrote:

> No, this is a php application, installed in a windows environment, not
> apache.  The load balancer is a network load balancer.  One URL that users
> login to that routes them to either one of the web servers.  The
> application is installed on both VMs.
> On Jan 25, 2016 6:21 PM, "Frank Gingras" 
> wrote:
>
>>
>>
>> On 25/01/16 02:59 PM, Debra Rozier wrote:
>>
>>> I have a php application that is hosted on IIS / MSSQL:
>>>
>>>   * IIS 8.5 on Windows 2012 R2
>>>   * Wincache 1.3.5 / FASTCgi
>>>   * PHP 5.4
>>>   * MSSQL 2008
>>>   * NLB environment with 2 web servers with approx 30-40 users hitting
>>> the web application between the two
>>>
>>> The problem I am having is that one of the IIS system periodically goes
>>> down across both of them and users are no longer able to log into the
>>> application if they are currently routed to the downed server, and they
>>> are not rerouted to the new server when they attempt to reconnect to the
>>> application.  They physically have to point the URL directly to the up
>>> server in the NLB to use the second running server.
>>>
>>> Any thoughts on why this may happen?
>>>
>>> This is the event that is recorded in the IIS event log:
>>>
>>> Inline image 1
>>>
>>> Debra
>>>
>>>
>>>
>>>
>> So where does httpd come into the picture? Are you using it as a load
>> balancer?
>>
>> Frank
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>


Re: [users@httpd] Question

2016-01-25 Thread Debra Rozier
No, this is a php application, installed in a windows environment, not
apache.  The load balancer is a network load balancer.  One URL that users
login to that routes them to either one of the web servers.  The
application is installed on both VMs.
On Jan 25, 2016 6:21 PM, "Frank Gingras"  wrote:

>
>
> On 25/01/16 02:59 PM, Debra Rozier wrote:
>
>> I have a php application that is hosted on IIS / MSSQL:
>>
>>   * IIS 8.5 on Windows 2012 R2
>>   * Wincache 1.3.5 / FASTCgi
>>   * PHP 5.4
>>   * MSSQL 2008
>>   * NLB environment with 2 web servers with approx 30-40 users hitting
>> the web application between the two
>>
>> The problem I am having is that one of the IIS system periodically goes
>> down across both of them and users are no longer able to log into the
>> application if they are currently routed to the downed server, and they
>> are not rerouted to the new server when they attempt to reconnect to the
>> application.  They physically have to point the URL directly to the up
>> server in the NLB to use the second running server.
>>
>> Any thoughts on why this may happen?
>>
>> This is the event that is recorded in the IIS event log:
>>
>> Inline image 1
>>
>> Debra
>>
>>
>>
>>
> So where does httpd come into the picture? Are you using it as a load
> balancer?
>
> Frank
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Question about htaccess

2015-09-04 Thread Eric Covener
On Thu, Sep 3, 2015 at 9:43 PM, Rodrigo Cunha  wrote:
> i try this in conf this vhost but not work
> 
> AllowOverride None
> 

Why the *?

> i try create new htaccess in
> /var/www/oduvaldocozzi.intranet/public/dir1/dir1 ans insert this code :
> 
> AllowOverride None
> 

Don't put  inside htacces.

You'll also need to tell us more than "doesn't work" to get anywhere.

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



Re: [users@httpd] Question about htaccess

2015-09-04 Thread Rodrigo Cunha
I have a htacces file in my root folder with some basic code in it. But I
want that all those instructions get ignored in the directory "dir1/dir1".
How can I achive this?

Thanks!

2015-09-04 11:05 GMT-03:00 Eric Covener :

> On Thu, Sep 3, 2015 at 9:43 PM, Rodrigo Cunha 
> wrote:
> > i try this in conf this vhost but not work
> > 
> > AllowOverride None
> > 
>
> Why the *?
>
> > i try create new htaccess in
> > /var/www/oduvaldocozzi.intranet/public/dir1/dir1 ans insert this code :
> > 
> > AllowOverride None
> > 
>
> Don't put  inside htacces.
>
> You'll also need to tell us more than "doesn't work" to get anywhere.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


-- 
Atenciosamente,
Rodrigo da Silva Cunha


Re: [users@httpd] Question about htaccess

2015-09-04 Thread Eric Covener
On Fri, Sep 4, 2015 at 10:59 AM, Rodrigo Cunha
 wrote:
> I have a htacces file in my root folder with some basic code in it. But I
> want that all those instructions get ignored in the directory "dir1/dir1".
> How can I achive this?


Depends on the content of the htaccess.

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



[users@httpd] Question about htaccess

2015-09-03 Thread Rodrigo Cunha
Hello!!I have a question about htaccess in subdirectory apache2
in my server the root is /var/www/oduvaldocozzi.intranet/
i insert rules rewrite for /var/www/oduvaldocozzi.intranet/ but i have
disable the rules from directory /var/www/oduvaldocozzi.intranet/dir1/dir1
i have disable this rules only this directory
i try this in conf this vhost but not work

AllowOverride None

i try create new htaccess in
/var/www/oduvaldocozzi.intranet/public/dir1/dir1 ans insert this code :

AllowOverride None

but not work too
help me

-- 
Atenciosamente,
Rodrigo da Silva Cunha


[users@httpd] Question about apache kerberos usage with web applications.

2015-08-28 Thread Keith Kenneth
Hello,

I am trying to understand the architecture for Apache kerberos:

1. I have a commercial  J2EE web application (JIRA) running on tomcat
 (https:// app1.mycomp.com:7100/JIRA)  JIRA allows kerberos authentication.

2. I know I need to install apache with auth_kerb_module (also on
https://app1.mycom.com:443)

3. We are using MS AD

4. I know I need to create a service principal for the apache server and
key tab file, then configure httpd.conf, etc, etc


QUESTION #1: Once I have the above in place, how does this all work in
terms of user function?

For instance:

A) Windows Client workstation will pull up a page on the apache server (
https://app1.mycom.com:443/portal_jira.html ??)  that references the JIRA
application, and the user clicks on the JIRA link.

B) The credentials of the user on the windows client workstation are passed
to the apache server for validation against AD, which then results in a
ticket sent back to the client workstation browser

C) the ticket is then sent by the browser to the JIRA application (https://
app1.mycomp.com:7100/JIRA) which validates the ticket and allows the user
in ???


QUESTION #2

A) What would the apache config look like given the above scenerio?

VirtualHost *:443
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/mypubliccert.pem
SSLCertificateKeyFile /etc/pki/tls/private/privatekey.pem
ProxyPreserveHost On
ProxyRequests Off
ServerName app1.mycomp.com
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
SSLProxyEngine On

Location /
AuthType Kerberos
AuthName Jira Kerberos Auth
KrbMethodNegotiate On
KrbMethodK5Passwd On
KrbAuthRealms MYREALM
Krb5KeyTab /etc/httpd/httpd.keytab
KrbLocalUserMapping On
require valid-user
RequestHeader set X-Forwarded-User %{REMOTE_USER}s
/Location
/VirtualHost





Thank you for ANY and ALL help!!

Ed


Re: [users@httpd] Question on building mod_qos for Centos 6

2015-08-18 Thread Sophie Loewenthal

Thanks Rainr.

I build the modules in the end with  apxs -i -c mod_qos.c -lcrypto 
-lpcre because configure asked for items I could not find in my 
repositories.


It build this in /etc/httpd/modules/mod_qos
-rw-r--r-- 1 root root 744576 Aug 18 11:37 mod_qos.o
-rw-r--r-- 1 root root276 Aug 18 11:37 mod_qos.lo
-rw-r--r-- 1 root root  0 Aug 18 11:37 mod_qos.slo
-rw-r--r-- 1 root root936 Aug 18 11:37 mod_qos.la

And put a compiled .so in :
# ls -l /usr/lib64/httpd/modules/mod_qos.so
-rwxr-xr-x 1 root root 518232 Aug 18 11:37 
/usr/lib64/httpd/modules/mod_qos.so


:)

Added to httpd.conf

LoadModule qos_module /usr/lib64/httpd/modules/mod_qos.so


Unsure for the conf file. I've created a file called mod_qos.conf in 
/etc/httpd/conf.d/ and added:
## QoS Settings
IfModule mod_qos.c
QS_LogOnly on   #  put mod_qos into a permissive mode. No actions are 
applied.
# handles connections from up to 10 different IPs
QS_ClientEntries 10
/IfModule

Does the last configuration step look correct?

Thanks.

Kind regards,
Sophie

--
Sophie Loewenthal
System Engineer ITOPS / Trimble Transport  Logistics
GSM:+32.471.900703
On 8/18/2015 11:36 AM, Rainer Jung wrote:

Am 18.08.2015 um 09:59 schrieb Sophie Loewenthal:

Hi,

 I've been trying to build the module mod_qos on for Centos 6 and
wondered if somebody had some experience with this.

The documentation referred to a file buildconf but I did not find this
in the tarball mod_qos-11.16.tar.gz.   Does anybody know where I could
find the *buildconf* file?

Install guide read:

tar xfz httpd-2.2.27.tar.gz
tar xfz mod_qos-11.16-src.tar.gz
ln -s httpd-2.2.27 httpd
cd httpd
mkdir modules/qos
cp ../mod_qos-11.16/apache2/* modules/qos
./*buildconf*
./configure --with-mpm=worker --enable-so --enable-qos=shared 
--enable-ssl --enable-unique-id

make
cd ..

This creates a DSO module that can be loaded into the Apache server
using the following directive:

LoadModule qos_module path to module/mod_qos.so


Typically a script named buildconf or similar is only needed for the 
people doing a release. It uses thr auto-tools (autoconf etc.) to 
generate the configure script.


If you have a real release tarball, configure should be already 
included and you don't need to run buildconf. Just start with the next 
step, running configure.


Regards,

Rainr


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




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



[users@httpd] Question on building mod_qos for Centos 6

2015-08-18 Thread Sophie Loewenthal

Hi,

I've been trying to build the module mod_qos on for Centos 6 and 
wondered if somebody had some experience with this.


The documentation referred to a file buildconf but I did not find this 
in the tarball mod_qos-11.16.tar.gz.   Does anybody know where I could 
find the *buildconf* file?


Install guide read:

tar xfz httpd-2.2.27.tar.gz
tar xfz mod_qos-11.16-src.tar.gz
ln -s httpd-2.2.27 httpd
cd httpd
mkdir modules/qos
cp ../mod_qos-11.16/apache2/* modules/qos
./*buildconf*
./configure --with-mpm=worker --enable-so --enable-qos=shared --enable-ssl 
--enable-unique-id
make
cd ..

This creates a DSO module that can be loaded into the Apache server 
using the following directive:


LoadModule qos_module path to module/mod_qos.so



Kind regards,
Sophie



Re: [users@httpd] Question on building mod_qos for Centos 6

2015-08-18 Thread Rainer Jung

Am 18.08.2015 um 09:59 schrieb Sophie Loewenthal:

Hi,

 I've been trying to build the module mod_qos on for Centos 6 and
wondered if somebody had some experience with this.

The documentation referred to a file buildconf but I did not find this
in the tarball mod_qos-11.16.tar.gz.   Does anybody know where I could
find the *buildconf* file?

Install guide read:

tar xfz httpd-2.2.27.tar.gz
tar xfz mod_qos-11.16-src.tar.gz
ln -s httpd-2.2.27 httpd
cd httpd
mkdir modules/qos
cp ../mod_qos-11.16/apache2/* modules/qos
./*buildconf*
./configure --with-mpm=worker --enable-so --enable-qos=shared --enable-ssl 
--enable-unique-id
make
cd ..

This creates a DSO module that can be loaded into the Apache server
using the following directive:

LoadModule qos_module path to module/mod_qos.so


Typically a script named buildconf or similar is only needed for the 
people doing a release. It uses thr auto-tools (autoconf etc.) to 
generate the configure script.


If you have a real release tarball, configure should be already included 
and you don't need to run buildconf. Just start with the next step, 
running configure.


Regards,

Rainr


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



Re: [users@httpd] Question on building mod_qos for Centos 6

2015-08-18 Thread Rainer Jung

Am 18.08.2015 um 12:09 schrieb Sophie Loewenthal:

Thanks Rainr.

I build the modules in the end with  apxs -i -c mod_qos.c -lcrypto
-lpcre because configure asked for items I could not find in my
repositories.

It build this in /etc/httpd/modules/mod_qos
-rw-r--r-- 1 root root 744576 Aug 18 11:37 mod_qos.o
-rw-r--r-- 1 root root276 Aug 18 11:37 mod_qos.lo
-rw-r--r-- 1 root root  0 Aug 18 11:37 mod_qos.slo
-rw-r--r-- 1 root root936 Aug 18 11:37 mod_qos.la

And put a compiled .so in :
# ls -l /usr/lib64/httpd/modules/mod_qos.so
-rwxr-xr-x 1 root root 518232 Aug 18 11:37
/usr/lib64/httpd/modules/mod_qos.so

:)


OK, if it loads that's fine.


Added to httpd.conf

LoadModule qos_module /usr/lib64/httpd/modules/mod_qos.so


Unsure for the conf file. I've created a file called mod_qos.conf in
/etc/httpd/conf.d/ and added:
## QoS Settings
IfModule mod_qos.c
 QS_LogOnly on#  put mod_qos into a permissive mode. No actions
are applied.
 # handles connections from up to 10 different IPs
 QS_ClientEntries 10
/IfModule

Does the last configuration step look correct?


mod_qos is quite complex and allows a lot of configuration depending on 
your use cases. You should probably switch over to the support channels 
provided by the people who created mod_qos. It is a 3rd party module, 
not one coming from the Apache Software Foundation. This list here is 
for questions concerning the Apache web server itself, not 3rd party 
modules.


The best configuration description for mod_qos is probably

http://opensource.adnovum.ch/mod_qos/

Support situation is a bit vague, but their sourceforge site

http://sourceforge.net/p/mod-qos/wiki/Home/

lists the project members and there is an issue tracker

http://sourceforge.net/p/mod-qos/bugs/?source=navbar

and a discusion forum

http://sourceforge.net/p/mod-qos/discussion/?source=navbar

Regards,

Rainer


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



Re: [users@httpd] Question on building mod_qos for Centos 6

2015-08-18 Thread Sophie Loewenthal

HI Rainr,

Thanks for your notes. I'll join their mailing.

Thanks again!

Sophie.

On 8/18/2015 3:58 PM, Rainer Jung wrote:

Am 18.08.2015 um 12:09 schrieb Sophie Loewenthal:

Thanks Rainr.

I build the modules in the end with  apxs -i -c mod_qos.c -lcrypto
-lpcre because configure asked for items I could not find in my
repositories.

It build this in /etc/httpd/modules/mod_qos
-rw-r--r-- 1 root root 744576 Aug 18 11:37 mod_qos.o
-rw-r--r-- 1 root root276 Aug 18 11:37 mod_qos.lo
-rw-r--r-- 1 root root  0 Aug 18 11:37 mod_qos.slo
-rw-r--r-- 1 root root936 Aug 18 11:37 mod_qos.la

And put a compiled .so in :
# ls -l /usr/lib64/httpd/modules/mod_qos.so
-rwxr-xr-x 1 root root 518232 Aug 18 11:37
/usr/lib64/httpd/modules/mod_qos.so

:)


OK, if it loads that's fine.


Added to httpd.conf

LoadModule qos_module /usr/lib64/httpd/modules/mod_qos.so


Unsure for the conf file. I've created a file called mod_qos.conf in
/etc/httpd/conf.d/ and added:
## QoS Settings
IfModule mod_qos.c
 QS_LogOnly on#  put mod_qos into a permissive mode. No actions
are applied.
 # handles connections from up to 10 different IPs
 QS_ClientEntries 10
/IfModule

Does the last configuration step look correct?


mod_qos is quite complex and allows a lot of configuration depending 
on your use cases. You should probably switch over to the support 
channels provided by the people who created mod_qos. It is a 3rd party 
module, not one coming from the Apache Software Foundation. This list 
here is for questions concerning the Apache web server itself, not 3rd 
party modules.


The best configuration description for mod_qos is probably

http://opensource.adnovum.ch/mod_qos/

Support situation is a bit vague, but their sourceforge site

http://sourceforge.net/p/mod-qos/wiki/Home/

lists the project members and there is an issue tracker

http://sourceforge.net/p/mod-qos/bugs/?source=navbar

and a discusion forum

http://sourceforge.net/p/mod-qos/discussion/?source=navbar

Regards,

Rainer


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




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



Re: [users@httpd] Question about server-status output

2015-04-07 Thread Eric Covener
On Tue, Apr 7, 2015 at 11:26 AM, Rose, John B jbr...@utk.edu wrote:
 This particular server is using prefork. So it seems like it would just be
 the absolute value set in MaxClients. But I guess that isn't the case. So
 in a prefork config what determines
 The number of spaces?

 We have a new 2.4 server we are using event MPM. I assume in that case
 what you said below would apply?


I think in that case it's extra space for ServerLimit  MaxClients.
For worker and event, add ThreadLimit as a multiplier.

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



Re: [users@httpd] Question about server-status output

2015-04-07 Thread Eric Covener
On Tue, Apr 7, 2015 at 11:42 AM, Rose, John B jbr...@utk.edu wrote:
 So if Maxclients is less than 256 then ServerLimit is not set. In that
 case ServerLimit defaults to 256? Therefore there should always be at
 least 256 spots there, unless for some reason you set ServerLimit lower
 than 256. Which you should not do? I am pretty sure I have seen much less
 than 256 spots there somewhere along the line on some Apache server.

 So the number of positions is whatever the largest value is of MaxClients
 or ServerLimit if prefork. Or largest of MaxClients/MaxRequestWorkers or
 ServerLimit*ThreadLimit if threaded MPM?


Yes, the compiled-in default for ServerLimit in prefork is 256.

A low ServerLimit*ThreadLimit will cap what values httpd will let you
configure for MaxClients, as opposed to silently boosting.There
are some elaborate messages that complain hen the relationship between
them is wrong and it will lower your MaxClients.

-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] Question about server-status output

2015-04-07 Thread Rose, John B
OK thanks

On 4/7/15 11:31 AM, Eric Covener cove...@gmail.com wrote:

On Tue, Apr 7, 2015 at 11:26 AM, Rose, John B jbr...@utk.edu wrote:
 This particular server is using prefork. So it seems like it would just
be
 the absolute value set in MaxClients. But I guess that isn't the case.
So
 in a prefork config what determines
 The number of spaces?

 We have a new 2.4 server we are using event MPM. I assume in that case
 what you said below would apply?


I think in that case it's extra space for ServerLimit  MaxClients.
For worker and event, add ThreadLimit as a multiplier.

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



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



[users@httpd] Question about server-status output

2015-04-07 Thread Rose, John B
I thought the number of positions in server-status Scoreboard  output had the 
same number of positions as the number assigned to your 
Maxclients/MaxRequestworkers setting.

But I guess it does not based on looking at it more closely/frequently.

I was looking at a web server with a MaxClients of 60, but there were 248 
positions in the Scoreboard part of server-status.

Although I know I have seen less positions in Scoreboard output.

So what determines the number of positions in that part of the output, and can 
that be interpreted to mean anything when monitoring your web server?

Thanks


Re: [users@httpd] Question about server-status output

2015-04-07 Thread Eric Covener
On Tue, Apr 7, 2015 at 11:16 AM, Rose, John B jbr...@utk.edu wrote:
 So what determines the number of positions in that part of the output, and
 can that be interpreted to mean anything when monitoring your web server?

There are spaces to grow into if ServerLimit*ThreadLimit  MaxClients.
Is that what you're seeing?


-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] Question about server-status output

2015-04-07 Thread Rose, John B
This particular server is using prefork. So it seems like it would just be
the absolute value set in MaxClients. But I guess that isn't the case. So
in a prefork config what determines
The number of spaces?

We have a new 2.4 server we are using event MPM. I assume in that case
what you said below would apply?

Thanks

On 4/7/15 11:19 AM, Eric Covener cove...@gmail.com wrote:

On Tue, Apr 7, 2015 at 11:16 AM, Rose, John B jbr...@utk.edu wrote:
 So what determines the number of positions in that part of the output,
and
 can that be interpreted to mean anything when monitoring your web
server?

There are spaces to grow into if ServerLimit*ThreadLimit  MaxClients.
Is that what you're seeing?


-- 
Eric Covener
cove...@gmail.com

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



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



Re: [users@httpd] Question about server-status output

2015-04-07 Thread Rose, John B
So if Maxclients is less than 256 then ServerLimit is not set. In that
case ServerLimit defaults to 256? Therefore there should always be at
least 256 spots there, unless for some reason you set ServerLimit lower
than 256. Which you should not do? I am pretty sure I have seen much less
than 256 spots there somewhere along the line on some Apache server.

So the number of positions is whatever the largest value is of MaxClients
or ServerLimit if prefork. Or largest of MaxClients/MaxRequestWorkers or
ServerLimit*ThreadLimit if threaded MPM?

On 4/7/15 11:31 AM, Eric Covener cove...@gmail.com wrote:

On Tue, Apr 7, 2015 at 11:26 AM, Rose, John B jbr...@utk.edu wrote:
 This particular server is using prefork. So it seems like it would just
be
 the absolute value set in MaxClients. But I guess that isn't the case.
So
 in a prefork config what determines
 The number of spaces?

 We have a new 2.4 server we are using event MPM. I assume in that case
 what you said below would apply?


I think in that case it's extra space for ServerLimit  MaxClients.
For worker and event, add ThreadLimit as a multiplier.

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



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



Re: [users@httpd] question about roatelogs -n

2015-03-31 Thread 5k Kate
Hi Jonny,

I'm not sure whther rotatelogs can do this. However, I usually use
logrotate http://linux.die.net/man/8/logrotate and it has the ability to do
this. Here's how it's setup for apache:

ubuntu@ip-172-31-11-241:~$ cat /etc/logrotate.d/apache2
/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
/etc/init.d/apache2 reload  /dev/null
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi; \
endscript
}

You can also see it's keeps access.log current and appends the number to
each new one. It also separately compresses the files after a time.

ubuntu@ip-172-31-11-241:~$ ls -l /var/log/apache2/
total 75788
-rw-r- 1 root adm 6356 Mar 31 18:29 access.log
-rw-r- 1 root adm 60851094 Mar 29 06:32 access.log.1
-rw-r- 1 root adm 2013 Jan 4 06:51 access.log.10.gz
-rw-r- 1 root adm 2442 Dec 28 06:29 access.log.11.gz

Hope that helps!

Kate

On Sat, Mar 28, 2015 at 7:42 PM, Daniel dferra...@gmail.com wrote:



 2015-03-28 20:43 GMT+01:00 Jonny Rimkus jo...@rimkus.it:


 Hello,
 I've a question to the rotatelogs command.
 I'm using following Apache Version:

 Server version: Apache/2.4.7 (Ubuntu)
 Server built:   Mar 10 2015 13:05:59

 I'm using the rotatelogs command in my Vhost as follows:
 |/usr/bin/rotatelogs -p /opt/bin/apacheloguser -n 3 /path/to/logfile
 10M combined

 according to the man page it works as expected,
 when logfile size reaches 10MB it:
 1. creates a new File: logfile.1 and starts logging to this file
 -- when logfile.1 reaches 10MB:
 creates a new file: logfile.2 and start logging to this file

 I would like to know if it is possible to make this behaviour possible:

 1. rename logfile.1 to logfile.2
 2. rename logfile to logfile.1
 3. create new file logfile and start logging to this file

 Thanks in advance and
 Kind regards
 Jonny Rimkus




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



 Logrotate from your linux distrubution will do exactly just that. Maybe
 that's what you want to use instead of rotatelogs.


 --
 *Daniel Ferradal*
 IT Specialist

 email dferra...@gmail.com
 linkedin es.linkedin.com/in/danielferradal



[users@httpd] question about roatelogs -n

2015-03-28 Thread Jonny Rimkus

Hello,
I've a question to the rotatelogs command.
I'm using following Apache Version:

Server version: Apache/2.4.7 (Ubuntu)
Server built:   Mar 10 2015 13:05:59

I'm using the rotatelogs command in my Vhost as follows:
|/usr/bin/rotatelogs -p /opt/bin/apacheloguser -n 3 /path/to/logfile
10M combined

according to the man page it works as expected,
when logfile size reaches 10MB it:
1. creates a new File: logfile.1 and starts logging to this file
-- when logfile.1 reaches 10MB:
creates a new file: logfile.2 and start logging to this file

I would like to know if it is possible to make this behaviour possible:

1. rename logfile.1 to logfile.2
2. rename logfile to logfile.1
3. create new file logfile and start logging to this file

Thanks in advance and
Kind regards
Jonny Rimkus




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



Re: [users@httpd] question about roatelogs -n

2015-03-28 Thread Daniel
2015-03-28 20:43 GMT+01:00 Jonny Rimkus jo...@rimkus.it:


 Hello,
 I've a question to the rotatelogs command.
 I'm using following Apache Version:

 Server version: Apache/2.4.7 (Ubuntu)
 Server built:   Mar 10 2015 13:05:59

 I'm using the rotatelogs command in my Vhost as follows:
 |/usr/bin/rotatelogs -p /opt/bin/apacheloguser -n 3 /path/to/logfile
 10M combined

 according to the man page it works as expected,
 when logfile size reaches 10MB it:
 1. creates a new File: logfile.1 and starts logging to this file
 -- when logfile.1 reaches 10MB:
 creates a new file: logfile.2 and start logging to this file

 I would like to know if it is possible to make this behaviour possible:

 1. rename logfile.1 to logfile.2
 2. rename logfile to logfile.1
 3. create new file logfile and start logging to this file

 Thanks in advance and
 Kind regards
 Jonny Rimkus




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



Logrotate from your linux distrubution will do exactly just that. Maybe
that's what you want to use instead of rotatelogs.


-- 
*Daniel Ferradal*
IT Specialist

email dferra...@gmail.com
linkedin es.linkedin.com/in/danielferradal


[users@httpd] Question about ab

2014-12-12 Thread Rose, John B
In the ab documentation


http://httpd.apache.org/docs/2.2/programs/ab.html


it says ...


-c concurrency

  Number of multiple requests to peform at a time.


Exactly what does at a time mean? Every second?


Thanks


Re: [users@httpd] Question about ab

2014-12-12 Thread Eric Covener
On Fri, Dec 12, 2014 at 10:35 AM, Rose, John B jbr...@utk.edu wrote:
 In the ab documentation


 http://httpd.apache.org/docs/2.2/programs/ab.html


 it says ...


 -c concurrency

   Number of multiple requests to peform at a time.


 Exactly what does at a time mean? Every second?

In parallel, concurrently, at the same time.

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



Re: [users@httpd] Question about ab

2014-12-12 Thread Aaron Ritter
concurrent means now/always

what u confuse it to is transaction rate
On 12 Dec 2014 16:36, Rose, John B jbr...@utk.edu wrote:

  In the ab documentation


  http://httpd.apache.org/docs/2.2/programs/ab.html


  it says ...


  *-c concurrency*

 *  Number of multiple requests to peform at a time. *


  Exactly what does at a time mean? Every second?


  Thanks



Re: [users@httpd] Question about ab

2014-12-12 Thread Rose, John B
I should have phrased that how frequent is a new group of concurrent
requests performed?

On 12/12/14 10:39 AM, Eric Covener cove...@gmail.com wrote:

On Fri, Dec 12, 2014 at 10:35 AM, Rose, John B jbr...@utk.edu wrote:
 In the ab documentation


 http://httpd.apache.org/docs/2.2/programs/ab.html


 it says ...


 -c concurrency

   Number of multiple requests to peform at a time.


 Exactly what does at a time mean? Every second?

In parallel, concurrently, at the same time.

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



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



Re: [users@httpd] Question about ab

2014-12-12 Thread Eric Covener
On Fri, Dec 12, 2014 at 6:09 PM, Rose, John B jbr...@utk.edu wrote:
 I should have phrased that how frequent is a new group of concurrent
 requests performed?

If you ask for 10,000 requests with a concurrency of 5. There are 5
threads each going as fast as possible to reach 10k total.  It does
not try to burst 5 simultaneous requests.

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



Re: [users@httpd] Question

2014-04-29 Thread Yehuda Katz
If you are already using PHP sessions, then there is no need for
mod_session.
PHP supports changing the session store:
session_set_save_handlerhttp://www.php.net/session_set_save_handler
For an example solution, see http://phpsecurity.org/code/ch08-2

- Y


On Tue, Apr 29, 2014 at 1:05 AM, Билгүүн Ө bilguu...@statebank.mn wrote:

 First, thank you for response.

 I’m apologize for about the asking question on comment section.

 And I try to store php session in MySQL then configure Load Balancing. If
 I can’t store session in DB, I think our server will get single point of
 failure. We have a many php websites and these all using php session.

 Is there any module that possible to sync php sessions.



 *From:* Yehuda Katz [mailto:yeh...@ymkatz.net]
 *Sent:* Tuesday, April 29, 2014 12:27 PM
 *To:* users@httpd.apache.org
 *Subject:* Re: [users@httpd] Question



 mod_session_dbd and php $_SESSION have nothing to do with each other and
 php has its own session management system.



 If you can better explain what you are trying to do, someone might be able
 to give you a recommendation for whether to use mod_session or php session.



 Also, the Comments section on the Apache manual 
 pageshttp://httpd.apache.org/docs/trunk/mod/mod_session_dbd.html#comments_sectionis
  NOT for asking questions like this. Please don't do it again.



 - Y



 On Tue, Apr 29, 2014 at 12:14 AM, Билгүүн Ө bilguu...@statebank.mn
 wrote:

 *From:* Билгүүн Ө [mailto:bilguu...@statebank.mn]
 *Sent:* Tuesday, April 29, 2014 12:03 PM
 *To:* 'users-...@httpd.apache.org'
 *Subject:* Question



 Dear everyone

 I'm trying to use mo_session_db, but i cant. I'm using mysql-14.14,
 apache-2.4.9 and php-5.5.11.

 I create database named session_db, and table named SESSION which created
 by query CREATE TABLE SESSION ( id VARCHAR(32) NOT NULL COMMENT 'Stores the
 Session ID', access INT(10) UNSIGNED NOT NULL, data TEXT, PRIMARY KEY
 (`id`) ) ENGINE=INNODB ROW_FORMAT=DEFAULT;

 My mod_session_dbd.conf is:

 Session On

 SessionDBDCookieName session path=/

 SessionDBDCookieRemove Off

 SessionDBDPerUser On

 SessionDBDDeleteLabel deletesession

 SessionDBDInsertLabel insertsession

 SessionDBDSelectLabel selectsession

 SessionDBDUpdateLabel updatesession

 DBDriver mysql

 DBDParams host=ip address x.x.x.x/localhost, port=3306, user=root,
 password=password, dbname=session_db

 DBDExptime 300

 DBDPrepareSQL delete from SESSION where id = %s deletesession

 DBDPrepareSQL update SESSION set data = %s, access = %lld, id = %s where
 id = %s updatesession

 DBDPrepareSQL insert into SESSION (id, access, data) values (%s, %lld,
 %s) insertsession

 DBDPrepareSQL select data from SESSION where id = %s and (access = 0 or
 access  %lld) selectsession

 DBDPrepareSQL delete from SESSION where access != 0 and access  %lld
 cleansession



 I tested by store the session but it could not store in sql. My test
 pages are:



 #index.html

 form action=session.php method=get

 Value:input type=text name=view/

 input type=submit value=Submit/

 /form



 #session.php

 session_start();

 if(isset($_GET['view']))

 { $_SESSION['view'] = $_GET['view'];

 echo Saved in SESSIONbr/;

 echo a href=link.phpLink/abr/;

 echo a href=index.htmlBack/a;

 }

 else

 { echo Could not save in SESSIONbr/;

 echo a href=index.htmlBack/a;

 }

 #link.php

 session_start();

 if(isset($_SESSION['view']))

 { echoSession: . $_SESSION['view'].br/;

 echo a href=clear.phpClear cookie/abr/;

 }

 else

 { echo There is no cookiebr/; }



 #clear.php

 session_start();

 if(isset($_SESSION['view']))

 { unset($_SESSION['view']);

 echo cookie clearedbr/br/;

 }

 else{ echo there has not been saved cookiebr/; }



 Is there any problem in my config or testing pages. Sorry for my bad
 english



 [image: line]

 Хүндэтгэсэн

 Ө.Билгүүн

 Системийн администратор

 МТ Системийн хэлтэс



 Мэйл хаяг  | bilguu...@sbank.mn; bilguu...@statebank.mn

 Вэб хуудас | www.statebank.mn



 [image: state-logo]

 *Танд санхүүгийн үйлчилгээг эрсдэлгүй хүргэнэ.­*







[users@httpd] Question: How to secure multiple URL's with SSL on a single host with a single domain?

2014-04-29 Thread Foster, Nate

Hi All,

I'm new to the list, so please excuse me if I'm in the wrong spot.

I host a groupware service on a Debian 7 host running Apache2.2.  The 
service uses multiple URL's for it's interface.


xx.xx.xx.xx/webmail is the main interface
xx.xx.xx.xx/web-admin is the administrative interface
xx.xx.xx.xx/webdav is for access to the WebDAV component

Each URL is enabled and it's .conf file is living in sites-enabled/

To secure the first URL, I modified the webmail.conf to have the 
following lines at the top of the file:


VirtualHost *:443
SSLEngine on
SSLCertificateFile /etc/ssl/apache.pem
SSLCertificateKeyFile /etc/ssl/private/apache.key
ServerAdmin webmas...@puresolar.us


and /VirtualHost at the bottom of the file.

This worked great until I repeated it for the remaining URL's which 
results in an error:  [warn] _default_ VirtualHost overlap on port 443, 
the first has precedence


When I search for tutorials and documentation on how to do this 
properly, I keep getting information related to securing multiple 
virtual hosts, which does not really work for my scenario.  I would be 
grateful for any pointers on how I can secure my server properly!


Many Thanks!

-Nate

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



Re: [users@httpd] Question: How to secure multiple URL's with SSL on a single host with a single domain?

2014-04-29 Thread Eggert Ehmke
Hello Nate,

if all your URLs are in the same domain, I would expect only one virtual host. 
This can contain multiple Directory xxx sections for your purpose. This way 
you only have one host on port 443. 
Hope that helps
Eggert


Am Dienstag, 29. April 2014, 12:48:57 schrieb Foster, Nate:
 Hi All,
 
 I'm new to the list, so please excuse me if I'm in the wrong spot.
 
 I host a groupware service on a Debian 7 host running Apache2.2.  The
 service uses multiple URL's for it's interface.
 
 xx.xx.xx.xx/webmail is the main interface
 xx.xx.xx.xx/web-admin is the administrative interface
 xx.xx.xx.xx/webdav is for access to the WebDAV component
 
 Each URL is enabled and it's .conf file is living in sites-enabled/
 
 To secure the first URL, I modified the webmail.conf to have the
 following lines at the top of the file:
 
 VirtualHost *:443
 SSLEngine on
 SSLCertificateFile /etc/ssl/apache.pem
 SSLCertificateKeyFile /etc/ssl/private/apache.key
 ServerAdmin webmas...@puresolar.us
 
 
 and /VirtualHost at the bottom of the file.
 
 This worked great until I repeated it for the remaining URL's which
 results in an error:  [warn] _default_ VirtualHost overlap on port 443,
 the first has precedence
 
 When I search for tutorials and documentation on how to do this
 properly, I keep getting information related to securing multiple
 virtual hosts, which does not really work for my scenario.  I would be
 grateful for any pointers on how I can secure my server properly!
 
 Many Thanks!
 
 -Nate
 
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org



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



Re: [users@httpd] Question: How to secure multiple URL's with SSL on a single host with a single domain?

2014-04-29 Thread Foster, Nate

Hello Eggert,

Thanks for your suggestion!  I'm going to try it now.  :-)

Nate

On 29.04.2014 12:56, Eggert Ehmke wrote:

Hello Nate,

if all your URLs are in the same domain, I would expect only one 
virtual host.
This can contain multiple Directory xxx sections for your purpose. 
This way

you only have one host on port 443.
Hope that helps
Eggert


Am Dienstag, 29. April 2014, 12:48:57 schrieb Foster, Nate:

Hi All,

I'm new to the list, so please excuse me if I'm in the wrong spot.

I host a groupware service on a Debian 7 host running Apache2.2.  The
service uses multiple URL's for it's interface.

xx.xx.xx.xx/webmail is the main interface
xx.xx.xx.xx/web-admin is the administrative interface
xx.xx.xx.xx/webdav is for access to the WebDAV component

Each URL is enabled and it's .conf file is living in sites-enabled/

To secure the first URL, I modified the webmail.conf to have the
following lines at the top of the file:

VirtualHost *:443
SSLEngine on
SSLCertificateFile /etc/ssl/apache.pem
SSLCertificateKeyFile /etc/ssl/private/apache.key
ServerAdmin webmas...@puresolar.us


and /VirtualHost at the bottom of the file.

This worked great until I repeated it for the remaining URL's which
results in an error:  [warn] _default_ VirtualHost overlap on port 
443,

the first has precedence

When I search for tutorials and documentation on how to do this
properly, I keep getting information related to securing multiple
virtual hosts, which does not really work for my scenario.  I would be
grateful for any pointers on how I can secure my server properly!

Many Thanks!

-Nate

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




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


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



Re: [users@httpd] Question: How to secure multiple URL's with SSL on a single host with a single domain?

2014-04-29 Thread Nick Tkach
So in that list of urls at the top, those are totally separate names
and IPs?  Something like this?


11.22.33.44/webmail is the main interface
55.66.77.88/web-admin is the administrative interface
99.00.11.22/webdav is for access to the WebDAV component


On Tue, Apr 29, 2014 at 2:48 PM, Foster, Nate nate.fos...@puresolar.us wrote:
 Hi All,

 I'm new to the list, so please excuse me if I'm in the wrong spot.

 I host a groupware service on a Debian 7 host running Apache2.2.  The
 service uses multiple URL's for it's interface.

 xx.xx.xx.xx/webmail is the main interface
 xx.xx.xx.xx/web-admin is the administrative interface
 xx.xx.xx.xx/webdav is for access to the WebDAV component

 Each URL is enabled and it's .conf file is living in sites-enabled/

 To secure the first URL, I modified the webmail.conf to have the following
 lines at the top of the file:

 VirtualHost *:443
 SSLEngine on
 SSLCertificateFile /etc/ssl/apache.pem
 SSLCertificateKeyFile /etc/ssl/private/apache.key
 ServerAdmin webmas...@puresolar.us


 and /VirtualHost at the bottom of the file.

 This worked great until I repeated it for the remaining URL's which results
 in an error:  [warn] _default_ VirtualHost overlap on port 443, the first
 has precedence

 When I search for tutorials and documentation on how to do this properly, I
 keep getting information related to securing multiple virtual hosts, which
 does not really work for my scenario.  I would be grateful for any pointers
 on how I can secure my server properly!

 Many Thanks!

 -Nate

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


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



Re: [users@httpd] Question: How to secure multiple URL's with SSL on a single host with a single domain?

2014-04-29 Thread Foster, Nate

Hi Nick,

Thanks for the fast response.  These URL's are all hosted on the same 
machine w/the same IP address.


I figured out what I was doing wrong thanks to Eggert.  I was not using 
the directory /xxx/xxx properly.


I'm including my fixed .conf file below in case it might be useful to 
others.



VirtualHost *:443

SSLEngine on
SSLCertificateFile /etc/ssl/apache.pem
SSLCertificateKeyFile /etc/ssl/private/apache.key
ServerAdmin webmas...@puresolar.us


# Those aliases do not work properly with several hosts on your apache 
server

# Uncomment them to use it or adapt them to your configuration
#Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
#Alias /roundcube /var/lib/roundcube
# by NF - Alias /roundcubemail /usr/share/roundcubemail/
Alias /webmail /usr/share/roundcubemail/

# by NF - Adding Alias for webadmin
Alias /kolab-webadmin /usr/share/kolab-webadmin/public_html/

# by NF - Alias for iRony
Alias /iRony   /usr/share/iRony/public_html



#   This section for RoundCubeMail AKA Webmail #

# Access to tinymce files
#Directory /usr/share/tinymce/www/
#Options Indexes MultiViews FollowSymLinks
#AllowOverride None
#Order allow,deny
#Allow from all
#/Directory

Directory /usr/share/roundcubemail/
Options +FollowSymLinks
AllowOverride All
ifModule mod_authz_core.c
Require all granted
/ifModule
ifModule !mod_authz_core.c
Order Allow,Deny
Allow from All
/ifModule
/Directory

# Protecting basic directories:
Directory /usr/share/roundcubemail/config
Options -FollowSymLinks
AllowOverride None
/Directory

Directory /usr/share/roundcubemail/logs
Options -FollowSymLinks
AllowOverride None
ifModule mod_authz_core.c
Require all denied
/ifModule
ifModule !mod_authz_core.c
Order Deny,Allow
Deny from All
/ifModule
/Directory



#   This section for Kolab-Webadmin#


Directory /usr/share/kolab-webadmin/public_html/
IfModule mod_rewrite.c
RewriteEngine on
# NOTE: This needs to point to the base uri of your 
installation.

RewriteBase /kolab-webadmin/

# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^api/(.*)\.(.*)$ api/index.php?service=$1method=$2 
[L,QSA]


/IfModule

AddDefaultCharset   UTF-8
php_value error_reporting  6135

DirectoryIndex index.php
AllowOverride All

ifModule mod_authz_core.c
Require all granted
/ifModule
ifModule !mod_authz_core.c
Order Allow,Deny
Allow from All
/ifModule

/Directory



#   This section iRony #

Directory /usr/share/iRony/public_html/
AllowOverride All

IfModule mod_authz_core.c
# Apache 2.4
Require all granted
/IfModule
IfModule !mod_authz_core.c
# Apache 2.2
Order Allow,Deny
Allow from All
/IfModule

RewriteEngine On
RewriteBase /iRony/
RewriteRule ^\.well-known/caldav   / [R,L]
RewriteRule ^\.well-known/carddav  / [R,L]

RewriteCond  %{REQUEST_FILENAME}  !-f
RewriteCond  %{REQUEST_FILENAME}  !-d
RewriteRule  (.*) index.php  [qsappend,last]

/Directory


/VirtualHost


On 29.04.2014 13:16, Nick Tkach wrote:

So in that list of urls at the top, those are totally separate names
and IPs?  Something like this?


11.22.33.44/webmail is the main interface
55.66.77.88/web-admin is the administrative interface
99.00.11.22/webdav is for access to the WebDAV component


On Tue, Apr 29, 2014 at 2:48 PM, Foster, Nate 
nate.fos...@puresolar.us wrote:

Hi All,

I'm new to the list, so please excuse me if I'm in the wrong spot.

I host a groupware service on a Debian 7 host running Apache2.2.  The
service uses multiple URL's for it's interface.

xx.xx.xx.xx/webmail is the main interface
xx.xx.xx.xx/web-admin is the administrative interface
xx.xx.xx.xx/webdav is for access to the WebDAV component

Each URL is enabled and it's .conf file is living in sites-enabled/

To secure the first URL, I modified the webmail.conf to have the 
following

lines at the top of the file:

VirtualHost *:443
SSLEngine on
SSLCertificateFile /etc/ssl/apache.pem
SSLCertificateKeyFile /etc/ssl/private/apache.key
ServerAdmin webmas...@puresolar.us


and /VirtualHost at the bottom of the file.

This worked great until I repeated it for the remaining URL's which 
results
in an error:  [warn] _default_ VirtualHost overlap on 

[users@httpd] Question: Can I install Apache 2.2.26 on Redhat linux 5?

2014-04-29 Thread Hisham

 Hi all,
 
 I am trying to download and install apache 2.2.26 on my RHEL 5 OS. I was 
 informed that the latest version supported on this OS is 2.2.3! Can anyone 
 confirm and how do i check if 2.2.26 will still work
 
 Thanks
 Alex 
 
 Sent from my iPhone

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



Re: [users@httpd] Question: Can I install Apache 2.2.26 on Redhat linux 5?

2014-04-29 Thread John Iliffe
As a general rule you can install any version of Apache on any version of 
Linux.  The question is how much work you are willing to do!

In the case of RHEL5, Red Hat is no longer supporting it so they don't keep 
the repository up to date.  Maybe the last version you can pull with yum or 
up2date is 2.2.3.

So, you have to go to the Apache downloads and get the current version and 
then configure and make it yourself.  As a suggestion, put your new version 
on its own directory so it doesn't overlay the version that is already 
there and in use.  When you have tested the new version, just change the 
init.d file for httpd and point to the new path.

As a comment, be careful of the httpd.conf files - they change with time so 
don't start a new version of Apache with your existing conf file without 
checking.

Good luck!

John

On Tuesday 29 April 2014 16:38:36 Hisham wrote:
  Hi all,
  
  I am trying to download and install apache 2.2.26 on my RHEL 5 OS. I
  was informed that the latest version supported on this OS is 2.2.3!
  Can anyone confirm and how do i check if 2.2.26 will still work
  
  Thanks
  Alex
  
  Sent from my iPhone
 
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org

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



Re: [users@httpd] Question

2014-04-29 Thread bilguun ulziibat
thank you for all of you're recommendations and directions


On Tue, Apr 29, 2014 at 11:41 PM, Yehuda Katz yeh...@ymkatz.net wrote:

 If you are already using PHP sessions, then there is no need for
 mod_session.
 PHP supports changing the session store: 
 session_set_save_handlerhttp://www.php.net/session_set_save_handler
 For an example solution, see http://phpsecurity.org/code/ch08-2

 - Y


 On Tue, Apr 29, 2014 at 1:05 AM, Билгүүн Ө bilguu...@statebank.mn wrote:

 First, thank you for response.

 I’m apologize for about the asking question on comment section.

 And I try to store php session in MySQL then configure Load Balancing. If
 I can’t store session in DB, I think our server will get single point of
 failure. We have a many php websites and these all using php session.

 Is there any module that possible to sync php sessions.



 *From:* Yehuda Katz [mailto:yeh...@ymkatz.net]
 *Sent:* Tuesday, April 29, 2014 12:27 PM
 *To:* users@httpd.apache.org
 *Subject:* Re: [users@httpd] Question



 mod_session_dbd and php $_SESSION have nothing to do with each other and
 php has its own session management system.



 If you can better explain what you are trying to do, someone might be
 able to give you a recommendation for whether to use mod_session or php
 session.



 Also, the Comments section on the Apache manual 
 pageshttp://httpd.apache.org/docs/trunk/mod/mod_session_dbd.html#comments_sectionis
  NOT for asking questions like this. Please don't do it again.



 - Y



 On Tue, Apr 29, 2014 at 12:14 AM, Билгүүн Ө bilguu...@statebank.mn
 wrote:

 *From:* Билгүүн Ө [mailto:bilguu...@statebank.mn]
 *Sent:* Tuesday, April 29, 2014 12:03 PM
 *To:* 'users-...@httpd.apache.org'
 *Subject:* Question



 Dear everyone

 I'm trying to use mo_session_db, but i cant. I'm using mysql-14.14,
 apache-2.4.9 and php-5.5.11.

 I create database named session_db, and table named SESSION which created
 by query CREATE TABLE SESSION ( id VARCHAR(32) NOT NULL COMMENT 'Stores the
 Session ID', access INT(10) UNSIGNED NOT NULL, data TEXT, PRIMARY KEY
 (`id`) ) ENGINE=INNODB ROW_FORMAT=DEFAULT;

 My mod_session_dbd.conf is:

 Session On

 SessionDBDCookieName session path=/

 SessionDBDCookieRemove Off

 SessionDBDPerUser On

 SessionDBDDeleteLabel deletesession

 SessionDBDInsertLabel insertsession

 SessionDBDSelectLabel selectsession

 SessionDBDUpdateLabel updatesession

 DBDriver mysql

 DBDParams host=ip address x.x.x.x/localhost, port=3306, user=root,
 password=password, dbname=session_db

 DBDExptime 300

 DBDPrepareSQL delete from SESSION where id = %s deletesession

 DBDPrepareSQL update SESSION set data = %s, access = %lld, id = %s where
 id = %s updatesession

 DBDPrepareSQL insert into SESSION (id, access, data) values (%s, %lld,
 %s) insertsession

 DBDPrepareSQL select data from SESSION where id = %s and (access = 0 or
 access  %lld) selectsession

 DBDPrepareSQL delete from SESSION where access != 0 and access  %lld
 cleansession



 I tested by store the session but it could not store in sql. My test
 pages are:



 #index.html

 form action=session.php method=get

 Value:input type=text name=view/

 input type=submit value=Submit/

 /form



 #session.php

 session_start();

 if(isset($_GET['view']))

 { $_SESSION['view'] = $_GET['view'];

 echo Saved in SESSIONbr/;

 echo a href=link.phpLink/abr/;

 echo a href=index.htmlBack/a;

 }

 else

 { echo Could not save in SESSIONbr/;

 echo a href=index.htmlBack/a;

 }

 #link.php

 session_start();

 if(isset($_SESSION['view']))

 { echoSession: . $_SESSION['view'].br/;

 echo a href=clear.phpClear cookie/abr/;

 }

 else

 { echo There is no cookiebr/; }



 #clear.php

 session_start();

 if(isset($_SESSION['view']))

 { unset($_SESSION['view']);

 echo cookie clearedbr/br/;

 }

 else{ echo there has not been saved cookiebr/; }



 Is there any problem in my config or testing pages. Sorry for my bad
 english



 [image: line]

 Хүндэтгэсэн

 Ө.Билгүүн

 Системийн администратор

 МТ Системийн хэлтэс



 Мэйл хаяг  | bilguu...@sbank.mn; bilguu...@statebank.mn

 Вэб хуудас | www.statebank.mn



 [image: state-logo]

 *Танд санхүүгийн үйлчилгээг эрсдэлгүй хүргэнэ.­*









[users@httpd] Question

2014-04-28 Thread Билгүүн Ө
From: Билгүүн Ө [mailto:bilguu...@statebank.mn] 
Sent: Tuesday, April 29, 2014 12:03 PM
To: 'users-...@httpd.apache.org'
Subject: Question

 

Dear everyone  

I'm trying to use mo_session_db, but i cant. I'm using mysql-14.14, 
apache-2.4.9 and php-5.5.11. 

I create database named session_db, and table named SESSION which created by 
query CREATE TABLE SESSION ( id VARCHAR(32) NOT NULL COMMENT 'Stores the 
Session ID', access INT(10) UNSIGNED NOT NULL, data TEXT, PRIMARY KEY (`id`) ) 
ENGINE=INNODB ROW_FORMAT=DEFAULT; 

My mod_session_dbd.conf is: 

Session On 

SessionDBDCookieName session path=/ 

SessionDBDCookieRemove Off 

SessionDBDPerUser On 

SessionDBDDeleteLabel deletesession 

SessionDBDInsertLabel insertsession 

SessionDBDSelectLabel selectsession 

SessionDBDUpdateLabel updatesession 

DBDriver mysql 

DBDParams host=ip address x.x.x.x/localhost, port=3306, user=root, 
password=password, dbname=session_db 

DBDExptime 300 

DBDPrepareSQL delete from SESSION where id = %s deletesession 

DBDPrepareSQL update SESSION set data = %s, access = %lld, id = %s where id = 
%s updatesession 

DBDPrepareSQL insert into SESSION (id, access, data) values (%s, %lld, %s) 
insertsession 

DBDPrepareSQL select data from SESSION where id = %s and (access = 0 or access 
 %lld) selectsession 

DBDPrepareSQL delete from SESSION where access != 0 and access  %lld 
cleansession 

 

I tested by store the session but it could not store in sql. My test pages are: 

 

#index.html 

form action=session.php method=get 

Value:input type=text name=view/ 

input type=submit value=Submit/ 

/form 

 

#session.php

session_start();

if(isset($_GET['view']))

{ $_SESSION['view'] = $_GET['view']; 

echo Saved in SESSIONbr/; 

echo a href=link.phpLink/abr/; 

echo a href=index.htmlBack/a;

} 

else

{ echo Could not save in SESSIONbr/; 

echo a href=index.htmlBack/a; 

} 

#link.php 

session_start();

if(isset($_SESSION['view']))

{ echoSession: . $_SESSION['view'].br/; 

echo a href=clear.phpClear cookie/abr/; 

} 

else

{ echo There is no cookiebr/; } 

 

#clear.php 

session_start();

if(isset($_SESSION['view']))

{ unset($_SESSION['view']); 

echo cookie clearedbr/br/; 

} 

else{ echo there has not been saved cookiebr/; }

 

Is there any problem in my config or testing pages. Sorry for my bad english

 

line

Хүндэтгэсэн

Ө.Билгүүн

Системийн администратор

МТ Системийн хэлтэс

 

Мэйл хаяг  | bilguu...@sbank.mn; bilguu...@statebank.mn

Вэб хуудас | www.statebank.mn

 

state-logo

Танд санхүүгийн үйлчилгээг эрсдэлгүй хүргэнэ.­

 



  1   2   >