Re: [gentoo-user] Apache and systemd problem

2023-05-13 Thread Jacques Montier
Le ven. 12 mai 2023 à 16:22, Jacques Montier a écrit : > > >> Yes, you need to configure the apache files to specify IP address to >> listen >> to, webroot, etc. for each host you want to serve files from. >> >> Ok, it's done > >> >> >> Fix this by adding the "start" subcommand: >> >>

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
> > Yes, you need to configure the apache files to specify IP address to > listen > to, webroot, etc. for each host you want to serve files from. > > Ok, it's done > > > Fix this by adding the "start" subcommand: > > ExecStart=/usr/sbin/apache2ctl start > > > ExecStart=/usr/sbin/apache2ctl start

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Michael
On Friday, 12 May 2023 10:41:32 BST Jacques Montier wrote: > > After you are able to start it manually, you can edit your systemd service > > file accordingly. > > GOOD NEWS ! i can start apache2ctl manually by #/usr/bin/apache2ctl > I get the warning message : > AH00558: apache2: Could not

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
> > After you are able to start it manually, you can edit your systemd service > file accordingly. GOOD NEWS ! i can start apache2ctl manually by #/usr/bin/apache2ctl I get the warning message : AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
Le ven. 12 mai 2023 à 10:40, Alexandru N. Barloiu a écrit : > How can you not miss it when it's specified in the ebuild? > > [root@ruja:~]# grep service > /usr/portage/www-servers/apache/apache-2.4.55-r1.ebuild > # Then apache2.4.service can be used and systemd support controlled >

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Alexandru N. Barloiu
How can you not miss it when it's specified in the ebuild? [root@ruja:~]# grep service /usr/portage/www-servers/apache/apache-2.4.55-r1.ebuild     # Then apache2.4.service can be used and systemd support controlled     systemd_newunit "${FILESDIR}/apache2.4-hardened.service" "apache2.service"

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
Le ven. 12 mai 2023 à 02:54, Alexandru N. Barloiu a écrit : > first of all, gentoo does install with a service file: > > [root@noela:~]# equery f apache | grep systemd | grep service > /lib/systemd/system/apache2.service > > Hi Alexandru, Gentoo did not install any apache2.service. I had to

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Alexandru N. Barloiu
first of all, gentoo does install with a service file: [root@noela:~]# equery f apache | grep systemd | grep service /lib/systemd/system/apache2.service also, I feel the way apache works is indifferent to distro or os. i mean, it makes very little difference as far as apache goes if you have

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Michael
On Thursday, 11 May 2023 17:17:27 BST Jacques Montier wrote: > I don't find any "LogLevel info" in /etc/apache2/httpd.conf > /var/log/apache2/error_log is empty. > > Jacques Please take a look here to see what the httpd.conf should look like and if there is no LogLevel directive add it

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Jacques Montier
> > > - /var/log/apache2 and /etc/apache2/httpd.conf are in the right place > > Check ownership of files in /var/log/apache2/ > > Apache will need to be able to write to them. > > Apache ownership of apache:apache Inside apache2, root:root and the files are empty. I changed the ownership of the

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Michael
On Thursday, 11 May 2023 15:07:09 BST Jacques Montier wrote: > Thank you Michael for your response. > > - no error during compilation and installation OK > - /var/log/apache2 and /etc/apache2/httpd.conf are in the right place Check ownership of files in /var/log/apache2/ Apache will need to

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Jacques Montier
Thank you Michael for your response. - no error during compilation and installation - /var/log/apache2 and /etc/apache2/httpd.conf are in the right place - by default in httpd.conf: User apache Group apache - User and group for /var/www -> apache:apache - /usr/bin/apache2ctl configtest returns

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Michael
On Wednesday, 10 May 2023 19:58:50 BST Jacques Montier wrote: > Hello all, > > To learn a little bit about systemd, I recently installed a gentoo with > systemd profile. > After some fights, the OS is working, but it was a real mess !!! > Now I am struggling for launching apache2 daemon. > When

Re: [gentoo-user] apache 2.4.50 or php

2021-10-07 Thread Canek Peláez Valdés
On Thu, Oct 7, 2021 at 2:44 PM wrote: > I just ungraded to apache 2.4.50 but I'm getting an error with my php. 8 > Or it could be related to newer PHP Version 8.0.11 > > When I try to login apache is giving me error code 500 > I masked dev-lang/php:8, for the time being. Regards. -- Dr. Canek

Re: [gentoo-user] apache 2.4.50 or php

2021-10-07 Thread Pascal Schorde
You can check the changes in the migration guides https://www.php.net/manual/en/migration71.php https://www.php.net/manual/en/migration72.php https://www.php.net/manual/en/migration73.php https://www.php.net/manual/en/migration74.php schrieb am Do., 7. Okt. 2021, 22:18: > On 10/7/21 1:44 PM,

Re: [gentoo-user] apache 2.4.50 or php

2021-10-07 Thread thelma
On 10/7/21 1:44 PM, the...@sys-concept.com wrote: > I just ungraded to apache 2.4.50 but I'm getting an error with my php. 8 > Or it could be related to newer PHP Version 8.0.11 > > When I try to login apache is giving me error code 500 > It seems to me dev-lang/php-8.0.11 and

[gentoo-user] apache 2.4.50 or php

2021-10-07 Thread thelma
I just ungraded to apache 2.4.50 but I'm getting an error with my php. 8 Or it could be related to newer PHP Version 8.0.11 When I try to login apache is giving me error code 500

[gentoo-user] apache 2.4 - .htaccess IP's limit

2021-02-09 Thread thelma
Does apache 2.4 have a limit of how many individual entries like: " Require not ip xxx.xxx.xxx.xx" I can have in Apache .htaccess file? I have over 500-subnets and I've notices some IP's are being blocked even though they are not on the list.

Re: [gentoo-user] Apache 2.4 - set SecStatusEngine to On

2021-01-03 Thread thelma
Thelma On 1/3/21 9:02 AM, Michael wrote: > On Saturday, 2 January 2021 04:46:58 GMT the...@sys-concept.com wrote: >> Status engine is currently disabled, enable it by set SecStatusEngine to On. >> >> How to enable "SecStatusEngine to On" in Apache 2.4 >> >> From my log file: >> [Fri Jan 01

Re: [gentoo-user] Apache 2.4 - set SecStatusEngine to On

2021-01-03 Thread Michael
On Saturday, 2 January 2021 04:46:58 GMT the...@sys-concept.com wrote: > Status engine is currently disabled, enable it by set SecStatusEngine to On. > > How to enable "SecStatusEngine to On" in Apache 2.4 > > From my log file: > [Fri Jan 01 19:44:52.649498 2021] [core:notice] [pid 14152]

[gentoo-user] Apache - prevent local ip from log files

2021-01-02 Thread thelma
Trying to prevent local local IP from appearing in log files. I have in modules.d/00_mod_log_config.conf DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio LogFormat '"%h %l %u %t \"%r\" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate SetEnvIf

[gentoo-user] Apache 2.4 - set SecStatusEngine to On

2021-01-01 Thread thelma
Status engine is currently disabled, enable it by set SecStatusEngine to On. How to enable "SecStatusEngine to On" in Apache 2.4 From my log file: [Fri Jan 01 19:44:52.649498 2021] [core:notice] [pid 14152] AH00094: Command line: '/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D

[gentoo-user] apache modules.d/80_modsecurity-crs.conf files not showing up

2020-12-19 Thread thelma
On one of my server I have file in apache: modules.d/80_modsecurity-crs.conf On my other server this file does not appear. both servers have option selected: APACHE2_OPTS="... -D SECURITY" Which option enable/install this file?

Re: [gentoo-user] apache blocking access based country

2020-12-09 Thread Michael
On Wednesday, 9 December 2020 07:03:17 GMT Remco Rijnders wrote: > On Tue, Dec 08, 2020 at 11:18:49PM -0700, thelma wrote in > > <94662af9-b159-65ca-371d-1521ab4fa...@sys-concept.com>: > >Steve, suggested a good alternative database of IP's with two letter > >country beside them. It can be sorted

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Remco Rijnders
On Tue, Dec 08, 2020 at 11:18:49PM -0700, thelma wrote in <94662af9-b159-65ca-371d-1521ab4fa...@sys-concept.com>: Steve, suggested a good alternative database of IP's with two letter country beside them. It can be sorted by country in a spreadsheet. This 16MB file would seem like an ideal

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 05:25 PM, Steve Wilson wrote: > > On 09/12/2020 00:01, Grant Taylor wrote: >> On 12/8/20 4:44 PM, Steve Wilson wrote: >>> I use this as the first step to limit ssh access to one of my >>> servers: `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip ! >>> --src-cc GB -m comment

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Grant Taylor
P.S. You might also be interested in some of the feeds that Team Cymru has to offer. I think they are more friendly to scripted querying. Link - IP to ASN Mapping Service - https://team-cymru.com/community-services/ip-asn-mapping/ -- Grant. . . . unix || die

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Grant Taylor
On 12/8/20 9:59 PM, the...@sys-concept.com wrote: I'll write a script to check, all the IP's from at text file with "whois" and write the output out to another file, just to be sure. I don't know how long will it take, the file contains 26611-entries (IP addresses). ProTip: Don't parse the

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Grant Taylor
On 12/8/20 8:50 PM, the...@sys-concept.com wrote: Creating ACL based on those internet sources eg. https://www.countryipblocks.net/acl.php is not reliable. I pulled a list of Russian and Ukrainian IPs from the above link and checking some of them, I found these two (and possibly more) are

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 08:50 PM, the...@sys-concept.com wrote: [snip] > Creating ACL based on those internet sources eg. > https://www.countryipblocks.net/acl.php > is not reliable. I pulled a list of Russian and Ukrainian IPs from the > above link and checking some of them, I found these two (and

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Grant Taylor
On 12/8/20 6:17 PM, the...@sys-concept.com wrote: so it might be easier to for apache, am I correct? Apache vs iptables is somewhat a preference. Though with Apache, chances are good that you would need to ban in multiple locations, possibly multiple VHOSTs or server wide. (See more

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 05:25 PM, Steve Wilson wrote: > > On 09/12/2020 00:01, Grant Taylor wrote: >> On 12/8/20 4:44 PM, Steve Wilson wrote: >>> I use this as the first step to limit ssh access to one of my >>> servers: `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip ! >>> --src-cc GB -m comment

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 05:25 PM, Steve Wilson wrote: > > On 09/12/2020 00:01, Grant Taylor wrote: >> On 12/8/20 4:44 PM, Steve Wilson wrote: >>> I use this as the first step to limit ssh access to one of my >>> servers: `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip ! >>> --src-cc GB -m comment

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Steve Wilson
On 09/12/2020 00:01, Grant Taylor wrote: On 12/8/20 4:44 PM, Steve Wilson wrote: I use this as the first step to limit ssh access to one of my servers: `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip ! --src-cc GB -m comment --comment "Drop SSH from outside GB" -j DROP` Has the geoip

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Grant Taylor
On 12/8/20 4:44 PM, Steve Wilson wrote: I use this as the first step to limit ssh access to one of my servers: `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip ! --src-cc GB -m comment --comment "Drop SSH from outside GB" -j DROP` Has the geoip match extension been updated to take into

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Steve Wilson
On 08/12/2020 22:55, the...@sys-concept.com wrote: What are my options apache blocking access based on country? So fare I run onto something "geoip" or ACL (long list of IP's provided by eg:) https://www.ip2location.com/free/visitor-blocker We geoip I think I will need to install some module

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
On 12/08/2020 03:55 PM, the...@sys-concept.com wrote: > What are my options apache blocking access based on country? > So fare I run onto something "geoip" or ACL (long list of IP's provided by > eg:) > https://www.ip2location.com/free/visitor-blocker > > We geoip I think I will need to install

Re: [gentoo-user] apache blocking access based country

2020-12-08 Thread Grant Taylor
On 12/8/20 3:55 PM, the...@sys-concept.com wrote: What are my options apache blocking access based on country? Do you want to block connections to /just/ Apache and /nothing/ else on the system? Or do you want to block connections from specified sources to anything and everything on the

[gentoo-user] apache blocking access based country

2020-12-08 Thread thelma
What are my options apache blocking access based on country? So fare I run onto something "geoip" or ACL (long list of IP's provided by eg:) https://www.ip2location.com/free/visitor-blocker We geoip I think I will need to install some module for apache (apache 2.2). It is using geoip.dat so it

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-12-01 Thread Michael
On Tuesday, 1 December 2020 19:34:54 GMT the...@sys-concept.com wrote: > On 12/01/2020 07:18 AM, Michael wrote: > > On Monday, 30 November 2020 22:52:05 GMT the...@sys-concept.com wrote: > >> Access based on IP address works from .htaccess with Files directive: > >> > >> > >> > >>Require ip

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-12-01 Thread thelma
On 12/01/2020 07:18 AM, Michael wrote: > On Monday, 30 November 2020 22:52:05 GMT the...@sys-concept.com wrote: > >> Access based on IP address works from .htaccess with Files directive: >> >> >>Require ip 10.0.0.109 >> >> >> But it doesn't read AuthType Basic, it doesn't ask me for any

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-12-01 Thread Michael
On Monday, 30 November 2020 22:52:05 GMT the...@sys-concept.com wrote: > Access based on IP address works from .htaccess with Files directive: > > >Require ip 10.0.0.109 > > > But it doesn't read AuthType Basic, it doesn't ask me for any password. > > AuthName "restricted stuff" >

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread thelma
On 11/30/2020 02:20 PM, Michael wrote: > On Monday, 30 November 2020 20:07:10 GMT the...@sys-concept.com wrote: > >> Thank for looking into it and input. >> I must be missing someting because if I use in .htaccess file direcive: >> or >> >> >> In both cases I get an error from Apache: >> >>

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread Michael
On Monday, 30 November 2020 20:07:10 GMT the...@sys-concept.com wrote: > Thank for looking into it and input. > I must be missing someting because if I use in .htaccess file direcive: > or > > > In both cases I get an error from Apache: > > [client 10.0.0.109]

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread thelma
On 11/30/2020 12:43 PM, Michael wrote: > I don't have time to look into this in much detail, or test it, but see > comments below. > > On Monday, 30 November 2020 18:09:52 GMT the...@sys-concept.com wrote: >> On 11/30/2020 05:34 AM, Michael wrote: >>> On Sunday, 29 November 2020 18:22:09 GMT

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread Michael
I don't have time to look into this in much detail, or test it, but see comments below. On Monday, 30 November 2020 18:09:52 GMT the...@sys-concept.com wrote: > On 11/30/2020 05:34 AM, Michael wrote: > > On Sunday, 29 November 2020 18:22:09 GMT the...@sys-concept.com wrote: > >> Thelma > >> >

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread thelma
On 11/30/2020 05:34 AM, Michael wrote: [snip] > > I've tested different RequireAll directives in a .htaccess file and with > otherwise default apache settings I can confirm: > > This is correct: > = > > Require ip 10.0.0.100 > > = > will

[gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread thelma
On 11/30/2020 05:34 AM, Michael wrote: > On Sunday, 29 November 2020 18:22:09 GMT the...@sys-concept.com wrote: >> Thelma >> >> On 11/29/2020 03:22 AM, Michael wrote: >>> On Sunday, 29 November 2020 07:30:16 GMT the...@sys-concept.com wrote: I'm trying to deny access to all except specific IP

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-30 Thread Michael
On Sunday, 29 November 2020 18:22:09 GMT the...@sys-concept.com wrote: > Thelma > > On 11/29/2020 03:22 AM, Michael wrote: > > On Sunday, 29 November 2020 07:30:16 GMT the...@sys-concept.com wrote: > >> I'm trying to deny access to all except specific IP address in a > >> directory, just testing

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-29 Thread thelma
Thelma On 11/29/2020 03:22 AM, Michael wrote: > On Sunday, 29 November 2020 07:30:16 GMT the...@sys-concept.com wrote: >> I'm trying to deny access to all except specific IP address in a >> directory, just testing it. >> >> In modules.d/00_default_settings.conf >> >> >> Options

Re: [gentoo-user] apache 2.4 - deny access to directory

2020-11-29 Thread Michael
On Sunday, 29 November 2020 07:30:16 GMT the...@sys-concept.com wrote: > I'm trying to deny access to all except specific IP address in a > directory, just testing it. > > In modules.d/00_default_settings.conf > > > Options MultiViews > AllowOverride All > Require all granted

[gentoo-user] apache 2.4 - deny access to directory

2020-11-28 Thread thelma
I'm trying to deny access to all except specific IP address in a directory, just testing it. In modules.d/00_default_settings.conf Options MultiViews AllowOverride All Require all granted in admin/.htaccess Require all denied Require ip 10.0.0.100 My IP is

Re: [SOLVED] [gentoo-user] Apache 2.4 can not access server subdirectory

2020-11-01 Thread Michael
On Sunday, 1 November 2020 05:01:48 GMT the...@sys-concept.com wrote: > On 10/30/2020 12:34 PM, Michael wrote: > [snip] > > vhosts.conf - define my web-site, but I commented everything out in > that > file (it is empty) and restarted apache: > /etc/init.d/apache2 restart >

[gentoo-user] Apache 2.4 .htaccess allows access

2020-10-31 Thread thelma
My server box ip is 10.0.0.109 In my .htaccess file I've tried Require all denied /RequireAll> I can still access the server I tried: Require all denied No difference, it allow me to access the server, and I know apache reads the .htaccess file --

Re:[SOLVED] [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-31 Thread thelma
On 10/30/2020 12:34 PM, Michael wrote: [snip] vhosts.conf - define my web-site, but I commented everything out in that file (it is empty) and restarted apache: /etc/init.d/apache2 restart And I can still display my web page. How is it possible??? >>> >>> I would

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-30 Thread Michael
On Friday, 30 October 2020 18:29:18 GMT the...@sys-concept.com wrote: > On 10/30/2020 11:55 AM, Michael wrote: > > On Friday, 30 October 2020 16:27:05 GMT the...@sys-concept.com wrote: > >> I have a bigger problem. > >> The apache 2.4 doesn't read configuration files. > >> In apache2.conf I have:

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-30 Thread thelma
On 10/30/2020 11:55 AM, Michael wrote: > On Friday, 30 October 2020 16:27:05 GMT the...@sys-concept.com wrote: > >> I have a bigger problem. >> The apache 2.4 doesn't read configuration files. >> In apache2.conf I have: >> >> # Include the virtual host configurations: >> IncludeOptional

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-30 Thread Michael
On Friday, 30 October 2020 16:27:05 GMT the...@sys-concept.com wrote: > I have a bigger problem. > The apache 2.4 doesn't read configuration files. > In apache2.conf I have: > > # Include the virtual host configurations: > IncludeOptional sites-enabled/*.conf > > So it should read read every

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-30 Thread thelma
On 10/30/2020 04:31 AM, Michael wrote: [snip] >> >> This is from apache.conf >> >> >> Options FollowSymLinks >> AllowOverride None >> Require all denied >> >> >> >> AllowOverride None >> Require all granted >> >> >> >> Options FollowSymLinks >>

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-30 Thread Michael
On Thursday, 29 October 2020 19:59:45 GMT the...@sys-concept.com wrote: > On 10/29/2020 10:53 AM, Michael wrote: > > On Thursday, 29 October 2020 14:10:07 GMT the...@sys-concept.com wrote: > >> Here are the permissions: > >> > >> index on server/ > >> -rw-r--r-- 1 root root19078 Jan

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-29 Thread thelma
On 10/29/2020 10:53 AM, Michael wrote: > On Thursday, 29 October 2020 14:10:07 GMT the...@sys-concept.com wrote: >> On 10/29/2020 06:21 AM, Remco Rijnders wrote: >>> On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in >>> >>> <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>: After

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-29 Thread Michael
On Thursday, 29 October 2020 14:10:07 GMT the...@sys-concept.com wrote: > On 10/29/2020 06:21 AM, Remco Rijnders wrote: > > On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in > > > > <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>: > >> After installing apache 2.4 I can not access

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-29 Thread Remco Rijnders
On Thu, Oct 29, 2020 at 08:10:07AM -0600, thelma wrote in <474d741a-a72d-e3ff-f771-5c7ecd72c...@sys-concept.com>: On 10/29/2020 06:21 AM, Remco Rijnders wrote: On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>: After installing

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-29 Thread thelma
On 10/29/2020 06:21 AM, Remco Rijnders wrote: > On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in > <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>: >> After installing apache 2.4 I can not access server subdirectory: >> server/admin/index.html >> >> Forbiden >> You don't have

Re: [gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-29 Thread Remco Rijnders
On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>: After installing apache 2.4 I can not access server subdirectory: server/admin/index.html Forbiden You don't have permission to access /admin/index.html on this server I can access

[gentoo-user] Apache 2.4 can not access server subdirectory

2020-10-28 Thread thelma
After installing apache 2.4 I can not access server subdirectory: server/admin/index.html Forbiden You don't have permission to access /admin/index.html on this server I can access index.html in a directory below /admin (server/index.html) but not the server/admin/index.html I even change the

Re: [gentoo-user] apache htaccess - block IP range

2020-03-18 Thread Alarig Le Lay
Hi, On mar. 17 mars 15:47:36 2020, the...@sys-concept.com wrote: > How to block in .htaccess file certain IP range? > > I have bot from huawei.com on my server for several days: > IP: 114.119.128.0 - 114.119.191.255 > Or just block all China In a case like this, I’m not trying to bother about

Re: [gentoo-user] apache htaccess - block IP range

2020-03-17 Thread thelma
On 03/17/2020 04:51 PM, Michael wrote: > Please do not top-post in this mailing list. > > On Tuesday, 17 March 2020 22:41:26 GMT the...@sys-concept.com wrote: >> I have tried (doesn't work) >> >> >> order allow,deny >> allow from all >> >> # block spamers: >> deny from huawei.com >> >> >> I'm

Re: [gentoo-user] apache htaccess - block IP range

2020-03-17 Thread Michael
Please do not top-post in this mailing list. On Tuesday, 17 March 2020 22:41:26 GMT the...@sys-concept.com wrote: > I have tried (doesn't work) > > > order allow,deny > allow from all > > # block spamers: > deny from huawei.com > > > I'm still getting over 800-entires from: 114.119.128.0 -

Re: [gentoo-user] apache htaccess - block IP range

2020-03-17 Thread thelma
I have tried (doesn't work) order allow,deny allow from all # block spamers: deny from huawei.com I'm still getting over 800-entires from: 114.119.128.0 - 114.119.191.255 Thelma On 03/17/2020 04:00 PM, Michael wrote: > Require not ip 114.119.128.0/255.255.255.0

Re: [gentoo-user] apache htaccess - block IP range

2020-03-17 Thread thelma
The below are not blocking those IP's : deny from 114.119.128.0/24 deny from 114.119.128.0 Thelma On 03/17/2020 04:00 PM, Michael wrote: > On Tuesday, 17 March 2020 21:56:29 GMT the...@sys-concept.com wrote: >> Will it work: >> deny from 114.119.128.0/114.119.191.255 >> >> Thelma > > It is

Re: [gentoo-user] apache htaccess - block IP range

2020-03-17 Thread thelma
I'm still using apache 2.2 So I think it should be: deny from 114.119.128.0/24 With the: Require all granted Require not ip 114.119.128.0/24 I couldn't even access my own webpage from localhost. Thelma On 03/17/2020 04:00 PM, Michael wrote: > On Tuesday, 17 March 2020 21:56:29 GMT

Re: [gentoo-user] apache htaccess - block IP range

2020-03-17 Thread Michael
On Tuesday, 17 March 2020 21:56:29 GMT the...@sys-concept.com wrote: > Will it work: > deny from 114.119.128.0/114.119.191.255 > > Thelma It is better to use this syntax: Require all granted Require not ip XX.XXX.XX.XXX So your example address space becomes: Require not ip

Re: [gentoo-user] apache htaccess - block IP range

2020-03-17 Thread thelma
Will it work: deny from 114.119.128.0/114.119.191.255 Thelma On 03/17/2020 03:47 PM, the...@sys-concept.com wrote: > How to block in .htaccess file certain IP range? > > I have bot from huawei.com on my server for several days: > IP: 114.119.128.0 - 114.119.191.255 > Or just block all China >

[gentoo-user] apache htaccess - block IP range

2020-03-17 Thread thelma
How to block in .htaccess file certain IP range? I have bot from huawei.com on my server for several days: IP: 114.119.128.0 - 114.119.191.255 Or just block all China -- Thelma

[gentoo-user] Apache not starting after upgrading Apache/glibc...

2019-04-13 Thread Matthias Hanft
Hi, today, as usual on Saturdays, I ran "emerge -aNDuv @world" which succeeded without any errors. As I noticed, there was an Apache upgrade from 2.4.38-r1 to 2.4.39, and a glibc upgrade from 2.27-r6 to 2.28-r5 (among others). After upgrading, Apache won't start any more. "/etc/init.d/apache2

Re: [gentoo-user] apache mod_wsgi radicale and passing in an environment variable

2018-05-08 Thread Mick
On Tuesday, 8 May 2018 00:00:04 BST Bill Kenworthy wrote: > Hi all, > > how does one set an environment variable for Apache mod_wsgi on gentoo? > > I am using the radicale wsgi module and it requires the config file to > be passed in from the environment to be set in the environment. The >

[gentoo-user] apache mod_wsgi radicale and passing in an environment variable

2018-05-07 Thread Bill Kenworthy
Hi all,     how does one set an environment variable for Apache mod_wsgi on gentoo? I am using the radicale wsgi module and it requires the config file to be passed in from the environment to be set in the environment.  The documents recommend something like whats below, but is not specific on

Re: [gentoo-user] Apache config

2017-05-18 Thread Michael Orlitzky
On 05/18/2017 10:49 AM, Peter Humphrey wrote: > > While working on the new-old site I'm using my local mini-server, but I > can't find out why it's not obeying server-include commands. In the source I > have e.g. > > > ... > > > Options Indexes FollowSymLinks Includes >

[gentoo-user] Apache config

2017-05-18 Thread Peter Humphrey
Hello list, Not long ago I was asking for advice on Joomla, then Drupal, to build a new site. Now that's been put on the back burner while I recover the old site from a few years ago and bring it up to date. It was hand-crafted from CSS and HTML. While working on the new-old site I'm using my

Re: [gentoo-user] apache-2.4.20 update doesn't like includes directive

2016-05-22 Thread Michael Orlitzky
On 05/22/2016 04:50 AM, Mick wrote: > > I tried setting APACHE2_MODULES="access_compat" in make.conf and I got this > conflict: Oh, sorry, I meant that you have to add "access_compat" to the list of modules already present in APACHE2_MODULES. Those conflicts are saying that you need "unixd"

Re: [gentoo-user] apache-2.4.20 update doesn't like includes directive

2016-05-22 Thread Mick
On Saturday 21 May 2016 14:10:53 Michael Orlitzky wrote: > On 05/21/2016 01:11 PM, Mick wrote: > I had to also replace in the config all vhosts "Order deny,allow" > > > directives with the new syntax. > > You can keep compatibility with the old syntax (if you need to) with >

Re: [gentoo-user] apache-2.4.20 update doesn't like includes directive

2016-05-21 Thread Michael Orlitzky
On 05/21/2016 01:11 PM, Mick wrote: > > I added '-D UNIXD_H' to my /etc/conf.d/apache2 and the problem seems to be > gone. That part should be unnecessary. I think there's some magic where we automatically uncomment the LoadModule unixd_module modules/mod_unixd.so line in your httpd.conf,

Re: [gentoo-user] apache-2.4.20 update doesn't like includes directive

2016-05-21 Thread Mick
On Saturday 21 May 2016 11:32:12 Michael Orlitzky wrote: > On 05/21/2016 11:11 AM, Mick wrote: > > Cannot load modules/mod_php.so into server: > > /usr/lib/apache2/modules/mod_php.so: undefined symbol: unixd_config > > You need "unixd" in your APACHE2_MODULES. Hmm ... interestingly on this old

Re: [gentoo-user] apache-2.4.20 update doesn't like includes directive

2016-05-21 Thread Michael Orlitzky
On 05/21/2016 11:11 AM, Mick wrote: > Cannot load modules/mod_php.so into server: > /usr/lib/apache2/modules/mod_php.so: undefined symbol: unixd_config You need "unixd" in your APACHE2_MODULES.

[gentoo-user] apache-2.4.20 update doesn't like includes directive

2016-05-21 Thread Mick
I've updated apache to 2.4.20 and it now refuses to accept the httpd.conf. In particular it says: === # /etc/init.d/apache2 restart * Caching service dependencies ...

[gentoo-user] apache SSL error

2016-01-05 Thread thelma
I changed in apache: 00_default_ssl_vhost.conf SSLProtocol ALL -SSLv2 -SSLv3 SSLHonorCipherOrder on SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DH$ and now apache will not

Re: [gentoo-user] apache SSL error

2016-01-05 Thread thelma
On 01/05/2016 08:45 PM, the...@sys-concept.com wrote: > I changed in apache: 00_default_ssl_vhost.conf > > SSLProtocol ALL -SSLv2 -SSLv3 > SSLHonorCipherOrder on > SSLCipherSuite >

Re: [gentoo-user] apache and the -D parameter

2015-04-21 Thread Michael Orlitzky
On 04/20/2015 07:18 PM, Bill Kenworthy wrote: as expected, no difference :( strace doesnt show anything useful - its reading the config files including 70-mod_wsgi.conf but doesnt show anything else. BillK The only other thing I can think of would be to delete and re-type the -D line

Re: [gentoo-user] apache and the -D parameter

2015-04-20 Thread Bill Kenworthy
On 21/04/15 04:15, Michael Orlitzky wrote: On 04/20/2015 09:54 AM, Bill Kenworthy wrote: ps aux: several entries of root 7549 0.0 0.0 145116 7916 ?Ss 05:05 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D WSGI -D LANGUAGE -D SSL -d

Re: [gentoo-user] apache and the -D parameter

2015-04-20 Thread Michael Orlitzky
On 04/20/2015 09:54 AM, Bill Kenworthy wrote: ps aux: several entries of root 7549 0.0 0.0 145116 7916 ?Ss 05:05 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D WSGI -D LANGUAGE -D SSL -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf -E

Re: [gentoo-user] apache and the -D parameter

2015-04-20 Thread J. Roeleveld
On Monday, April 20, 2015 06:56:49 PM Bill Kenworthy wrote: Hi, I am trying to set up mod_wsgi and apache in an LXC container. apache is ignoring all -D parameters on startup even though I can see them in the startup script debug and they are being passed to apache according to ps aux.

[gentoo-user] apache and the -D parameter

2015-04-20 Thread Bill Kenworthy
Hi, I am trying to set up mod_wsgi and apache in an LXC container. apache is ignoring all -D parameters on startup even though I can see them in the startup script debug and they are being passed to apache according to ps aux. apache -M does not show the modules in the loaded list. If I

Re: [gentoo-user] apache and the -D parameter

2015-04-20 Thread Bill Kenworthy
On 20/04/15 21:21, J. Roeleveld wrote: On Monday, April 20, 2015 06:56:49 PM Bill Kenworthy wrote: Hi, I am trying to set up mod_wsgi and apache in an LXC container. apache is ignoring all -D parameters on startup even though I can see them in the startup script debug and they are being

Re: [gentoo-user] apache-2.2.27 disable SSLCipherSuite LOW 40 56 bit

2014-06-22 Thread Mick
On Sunday 22 Jun 2014 02:29:44 Joseph wrote: Before upgrading to apache 2.2.27 I had this line in httpd.conf SSLProtocol -ALL +SSLv3 +TLSv1 +TLSv1.2 SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT and I was getting A- rating from: www.ssllabs.com Now after upgrading to

Re: [gentoo-user] apache-2.2.27 disable SSLCipherSuite LOW 40 56 bit

2014-06-22 Thread Joseph
Thank you. With the setting below in httpd.conf SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite

[gentoo-user] apache-2.2.27 disable SSLCipherSuite LOW 40 56 bit

2014-06-21 Thread Joseph
Before upgrading to apache 2.2.27 I had this line in httpd.conf SSLProtocol -ALL +SSLv3 +TLSv1 +TLSv1.2 SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT and I was getting A- rating from: www.ssllabs.com Now after upgrading to apache-2.2.27 I'm getting C because of weak Cipher

Re: [gentoo-user] apache disable 40bit encryption

2014-04-29 Thread Mick
On Monday 28 Apr 2014 23:03:44 Joseph wrote: On 04/28/14 21:38, Mick wrote: On Monday 28 Apr 2014 19:56:24 Joseph wrote: How do I disable apache 40bit encryption connection to my server? Is there a way to limit the connection to min 128-bit?

Re: [gentoo-user] apache disable 40bit encryption

2014-04-29 Thread Joseph
On 04/29/14 08:20, Mick wrote: On Monday 28 Apr 2014 23:03:44 Joseph wrote: On 04/28/14 21:38, Mick wrote: On Monday 28 Apr 2014 19:56:24 Joseph wrote: How do I disable apache 40bit encryption connection to my server? Is there a way to limit the connection to min 128-bit?

Re: [gentoo-user] apache disable 40bit encryption

2014-04-29 Thread Mick
On Tuesday 29 Apr 2014 15:11:41 Joseph wrote: On 04/29/14 08:20, Mick wrote: On Monday 28 Apr 2014 23:03:44 Joseph wrote: On 04/28/14 21:38, Mick wrote: On Monday 28 Apr 2014 19:56:24 Joseph wrote: How do I disable apache 40bit encryption connection to my server? Is there a way to

  1   2   3   4   >