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
> 
> 
> -
> 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] Four subdomain, fourth redirects to first

2021-09-21 Thread Daniel Armando Rodriguez
The host I'm using was originally named accordingly with the task 
assigned back then, now one of the vhosts has the same name.


But, after noticed the issue just renamed the conf, and now everything 
is working as expected.



Thank you all for your time and patience.-


El 2021-09-21 19:51, Frank Gingras escribió:

Why do you have two vhosts with the same ServerName value set? That
will break name-based vhosts. Set a unique ServerName value for every
vhost on that port.

On Tue, 21 Sept 2021 at 18:25, Daniel Armando Rodriguez
 wrote:


Here it is the curl result from the same host

# curl -v -H Host:4.DOMAIN.edu.ar [1] http://INTERNAL-IP/
* Expire in 0 ms for 6 (transfer 0x5573684c6c10)
*   Trying INTERNAL-IP...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x5573684c6c10)
* Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)

GET / HTTP/1.1
Host:4.DOMAIN.edu.ar [1]
User-Agent: curl/7.64.0
Accept: */*


< HTTP/1.1 301 Moved Permanently
< Date: Tue, 21 Sep 2021 22:10:39 GMT
< Server: Apache/2.4.48
< X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
< X-Redirect-By: WordPress
< Location: https://1.DOMAIN.edu.ar/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host INTERNAL-IP left intact

Querying to localhost

# curl -v -H Host:4.DOMAIN.edu.ar [1] http://localhost/
* Expire in 0 ms for 6 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
*   Trying ::1...
* TCP_NODELAY set
* Expire in 15 ms for 3 (transfer 0x5556238fac10)
* Expire in 200 ms for 4 (transfer 0x5556238fac10)
* Connected to localhost (::1) port 80 (#0)

GET / HTTP/1.1
Host:4.DOMAIN.edu.ar [1]
User-Agent: curl/7.64.0
Accept: */*


< HTTP/1.1 301 Moved Permanently
< Date: Tue, 21 Sep 2021 22:13:01 GMT
< Server: Apache/2.4.48
< X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
< X-Redirect-By: WordPress
< Location: https://1.DOMAIN.edu.ar/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host localhost left intact

From apachectl -S I see the problem is related to what vhost is set
as
default
VirtualHost configuration:
*:80   is a NameVirtualHost
default server 4.DOMAIN.edu.ar [1]
(/etc/apache2/sites-enabled/1.DOMAIN.conf:1)
port 80 namevhost 4.DOMAIN.edu.ar [1]
(/etc/apache2/sites-enabled/1.DOMAIN.conf:1)
alias 1.DOMAIN.edu.ar [2]
port 80 namevhost 4.DOMAIN.edu.ar [1]
(/etc/apache2/sites-enabled/2.DOMAIN.conf:1)
alias 2.DOMAIN.edu.ar [3]
port 80 namevhost 4.DOMAIN.edu.ar [1]
(/etc/apache2/sites-enabled/4.DOMAIN.conf:1)
alias 4.DOMAIN.edu.ar [1]
port 80 namevhost 4.DOMAIN.edu.ar [1]
(/etc/apache2/sites-enabled/3.DOMAIN.conf:1)
alias 3.DOMAIN.unau.edu.ar [4]
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33

El 2021-09-21 18:48, Frank Gingras escribió:

Show the httpd -S output and results from your tests with curl,

then.


It might help to log the host: header in your access log too.

On Tue, 21 Sept 2021 at 17:41, Daniel Armando Rodriguez

Re: [users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Frank Gingras
I would not rely on the debian scripts. Looking at apachectl -S will tell
you what you need to know.

On Tue, 21 Sept 2021 at 18:51, Frank Gingras  wrote:

> Why do you have two vhosts with the same ServerName value set? That will
> break name-based vhosts. Set a unique ServerName value for every vhost on
> that port.
>
> On Tue, 21 Sept 2021 at 18:25, Daniel Armando Rodriguez
>  wrote:
>
>> Here it is the curl result from the same host
>>
>> # curl -v -H Host:4.DOMAIN.edu.ar http://INTERNAL-IP/
>> * Expire in 0 ms for 6 (transfer 0x5573684c6c10)
>> *   Trying INTERNAL-IP...
>> * TCP_NODELAY set
>> * Expire in 200 ms for 4 (transfer 0x5573684c6c10)
>> * Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)
>> > GET / HTTP/1.1
>> > Host:4.DOMAIN.edu.ar
>> > User-Agent: curl/7.64.0
>> > Accept: */*
>> >
>> < HTTP/1.1 301 Moved Permanently
>> < Date: Tue, 21 Sep 2021 22:10:39 GMT
>> < Server: Apache/2.4.48
>> < X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
>> < X-Redirect-By: WordPress
>> < Location: https://1.DOMAIN.edu.ar/
>> < Content-Length: 0
>> < Content-Type: text/html; charset=UTF-8
>> <
>> * Connection #0 to host INTERNAL-IP left intact
>>
>> Querying to localhost
>>
>> # curl -v -H Host:4.DOMAIN.edu.ar http://localhost/
>> * Expire in 0 ms for 6 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
>> *   Trying ::1...
>> * TCP_NODELAY set
>> * Expire in 15 ms for 3 (transfer 0x5556238fac10)
>> * Expire in 200 ms for 4 (transfer 0x5556238fac10)
>> * Connected to localhost (::1) port 80 (#0)
>> > GET / HTTP/1.1
>> > Host:4.DOMAIN.edu.ar
>> > User-Agent: curl/7.64.0
>> > Accept: */*
>> >
>> < HTTP/1.1 301 Moved Permanently
>> < Date: Tue, 21 Sep 2021 22:13:01 GMT
>> < Server: Apache/2.4.48
>> < X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
>> < X-Redirect-By: WordPress
>> < Location: https://1.DOMAIN.edu.ar/
>> < Content-Length: 0
>> < Content-Type: text/html; charset=UTF-8
>> <
>> * Connection #0 to host localhost left intact
>>
>>  From apachectl -S I see the problem is related to what vhost is set as
>> default
>> VirtualHost configuration:
>> *:80   is a NameVirtualHost
>>   default server 4.DOMAIN.edu.ar
>> (/etc/apache2/sites-enabled/1.DOMAIN.conf:1)
>>   port 80 namevhost 4.DOMAIN.edu.ar
>> (/etc/apache2/sites-enabled/1.DOMAIN.conf:1)
>>   alias 1.DOMAIN.edu.ar
>>   port 80 namevhost 4.DOMAIN.edu.ar
>> (/etc/apache2/sites-enabled/2.DOMAIN.conf:1)
>>   alias 2.DOMAIN.edu.ar
>>   port 80 namevhost 4.DOMAIN.edu.ar
>> (/etc/apache2/sites-enabled/4.DOMAIN.conf:1)
>>   alias 4.DOMAIN.edu.ar
>>   port 80 namevhost 4.DOMAIN.edu.ar
>> (/etc/apache2/sites-enabled/3.DOMAIN.conf:1)
>>   alias 3.DOMAIN.unau.edu.ar
>> ServerRoot: "/etc/apache2"
>> Main DocumentRoot: "/var/www/html"
>> Main ErrorLog: "/var/log/apache2/error.log"
>> Mutex ssl-stapling: using_defaults
>> Mutex ssl-cache: using_defaults
>> Mutex default: dir="/var/run/apache2/" mechanism=default
>> Mutex mpm-accept: using_defaults
>> Mutex watchdog-callback: using_defaults
>> Mutex rewrite-map: using_defaults
>> Mutex ssl-stapling-refresh: using_defaults
>> PidFile: "/var/run/apache2/apache2.pid"
>> Define: DUMP_VHOSTS
>> Define: DUMP_RUN_CFG
>> User: name="www-data" id=

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


-
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] Four subdomain, fourth redirects to first

2021-09-21 Thread Frank Gingras
Why do you have two vhosts with the same ServerName value set? That will
break name-based vhosts. Set a unique ServerName value for every vhost on
that port.

On Tue, 21 Sept 2021 at 18:25, Daniel Armando Rodriguez
 wrote:

> Here it is the curl result from the same host
>
> # curl -v -H Host:4.DOMAIN.edu.ar http://INTERNAL-IP/
> * Expire in 0 ms for 6 (transfer 0x5573684c6c10)
> *   Trying INTERNAL-IP...
> * TCP_NODELAY set
> * Expire in 200 ms for 4 (transfer 0x5573684c6c10)
> * Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)
> > GET / HTTP/1.1
> > Host:4.DOMAIN.edu.ar
> > User-Agent: curl/7.64.0
> > Accept: */*
> >
> < HTTP/1.1 301 Moved Permanently
> < Date: Tue, 21 Sep 2021 22:10:39 GMT
> < Server: Apache/2.4.48
> < X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
> < X-Redirect-By: WordPress
> < Location: https://1.DOMAIN.edu.ar/
> < Content-Length: 0
> < Content-Type: text/html; charset=UTF-8
> <
> * Connection #0 to host INTERNAL-IP left intact
>
> Querying to localhost
>
> # curl -v -H Host:4.DOMAIN.edu.ar http://localhost/
> * Expire in 0 ms for 6 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 1 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> * Expire in 0 ms for 1 (transfer 0x5556238fac10)
> *   Trying ::1...
> * TCP_NODELAY set
> * Expire in 15 ms for 3 (transfer 0x5556238fac10)
> * Expire in 200 ms for 4 (transfer 0x5556238fac10)
> * Connected to localhost (::1) port 80 (#0)
> > GET / HTTP/1.1
> > Host:4.DOMAIN.edu.ar
> > User-Agent: curl/7.64.0
> > Accept: */*
> >
> < HTTP/1.1 301 Moved Permanently
> < Date: Tue, 21 Sep 2021 22:13:01 GMT
> < Server: Apache/2.4.48
> < X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
> < X-Redirect-By: WordPress
> < Location: https://1.DOMAIN.edu.ar/
> < Content-Length: 0
> < Content-Type: text/html; charset=UTF-8
> <
> * Connection #0 to host localhost left intact
>
>  From apachectl -S I see the problem is related to what vhost is set as
> default
> VirtualHost configuration:
> *:80   is a NameVirtualHost
>   default server 4.DOMAIN.edu.ar
> (/etc/apache2/sites-enabled/1.DOMAIN.conf:1)
>   port 80 namevhost 4.DOMAIN.edu.ar
> (/etc/apache2/sites-enabled/1.DOMAIN.conf:1)
>   alias 1.DOMAIN.edu.ar
>   port 80 namevhost 4.DOMAIN.edu.ar
> (/etc/apache2/sites-enabled/2.DOMAIN.conf:1)
>   alias 2.DOMAIN.edu.ar
>   port 80 namevhost 4.DOMAIN.edu.ar
> (/etc/apache2/sites-enabled/4.DOMAIN.conf:1)
>   alias 4.DOMAIN.edu.ar
>   port 80 namevhost 4.DOMAIN.edu.ar
> (/etc/apache2/sites-enabled/3.DOMAIN.conf:1)
>   alias 3.DOMAIN.unau.edu.ar
> ServerRoot: "/etc/apache2"
> Main DocumentRoot: "/var/www/html"
> Main ErrorLog: "/var/log/apache2/error.log"
> Mutex ssl-stapling: using_defaults
> Mutex ssl-cache: using_defaults
> Mutex default: dir="/var/run/apache2/" mechanism=default
> Mutex mpm-accept: using_defaults
> Mutex watchdog-callback: using_defaults
> Mutex rewrite-map: using_defaults
> Mutex ssl-stapling-refresh: using_defaults
> PidFile: "/var/run/apache2/apache2.pid"
> Define: DUMP_VHOSTS
> Define: DUMP_RUN_CFG
> User: name="www-data" id=33
> Group: name="www-data" id=33
>
>
>
>
> El 2021-09-21 18:48, Frank Gingras escribió:
> > Show the httpd -S output and results from your tests with curl, then.
> >
> > It might help to log the host: header in your access log too.
> >
> > On Tue, 21 Sept 2021 at 17:41, Daniel Arm

Re: [users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Paul A

On 2021-09-21 6:25 p.m., Daniel Armando Rodriguez wrote:

Here it is the curl result from the same host


[snip]


 From apachectl -S I see the problem is related to what vhost is set as 
default

VirtualHost configuration:
*:80   is a NameVirtualHost
  default server 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/1.DOMAIN.conf:1)


What does ls -al /etc/apache2/sites-enabled show?  You should most 
probably not have a "default", particularly '4.DOMAIN' referencing 
'1.DOMAIN'


hth -- P.


  port 80 namevhost 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/1.DOMAIN.conf:1)

  alias 1.DOMAIN.edu.ar
  port 80 namevhost 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/2.DOMAIN.conf:1)

  alias 2.DOMAIN.edu.ar
  port 80 namevhost 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/4.DOMAIN.conf:1)

  alias 4.DOMAIN.edu.ar
  port 80 namevhost 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/3.DOMAIN.conf:1)

  alias 3.DOMAIN.unau.edu.ar
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33




El 2021-09-21 18:48, Frank Gingras escribió:

Show the httpd -S output and results from your tests with curl, then.

It might help to log the host: header in your access log too.

On Tue, 21 Sept 2021 at 17:41, Daniel Armando Rodriguez
 wrote:


Changed all vhosts definition the way you suggested, but the issue
still
happens.

El 2021-09-21 16:32, Frank Gingras escribió:

The first mistake is to use the hostnames when defining vhosts.

Define

them all as *:PORT, then test with curl, and run apachectl -S or

httpd

-S to spot any overlap.

On Tue, 21 Sept 2021 at 14:48, Daniel Armando Rodriguez
 wrote:


Hi,

I have four subdomains on the same host which work as expected

whis

this
base config



ServerName 4.DOMAIN.edu.ar [2] [2]
ServerAlias 4.DOMAIN.edu.ar [2] [2]
ServerAdmin webmas...@domain.edu.ar

DocumentRoot /var/www/4


Options FollowSymLinks
AllowOverride All
Require all granted


ErrorLog ${APACHE_LOG_DIR}/error_4.log
CustomLog ${APACHE_LOG_DIR}/access_4.log combined



In the particular case of fourth subdomain, gets redirected to

the

first. See

# curl -v -H Host:4.DOMAIN.edu.ar [2] [2] http://INTERNAL-IP/
* Expire in 0 ms for 6 (transfer 0x55669ac96c10)
*   Trying INTERNAL-IP...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55669ac96c10)
* Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)

GET / HTTP/1.1
Host:4.DOMAIN.edu.ar [2] [2]
User-Agent: curl/7.64.0
Accept: */*


< HTTP/1.1 301 Moved Permanently
< Date: Tue, 21 Sep 2021 18:32:32 GMT
< Server: Apache/2.4.48
< X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
< X-Redirect-By: WordPress
< Location: https://1.DOMAIN.edu.ar/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host INTERNAL-IP left intact

As said, domains 1, 3 and 3 works. In fact, when configuring the

4th


just copied the one of the working configs and changed the
subdomain,
directory and also the log. Nothing more, but the result is not

the

one
I expected.

Any hint will be much appreciated.


-
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] Four subdomain, fourth redirects to first

2021-09-21 Thread Daniel Armando Rodriguez

Here it is the curl result from the same host

# curl -v -H Host:4.DOMAIN.edu.ar http://INTERNAL-IP/
* Expire in 0 ms for 6 (transfer 0x5573684c6c10)
*   Trying INTERNAL-IP...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x5573684c6c10)
* Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)

GET / HTTP/1.1
Host:4.DOMAIN.edu.ar
User-Agent: curl/7.64.0
Accept: */*


< HTTP/1.1 301 Moved Permanently
< Date: Tue, 21 Sep 2021 22:10:39 GMT
< Server: Apache/2.4.48
< X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
< X-Redirect-By: WordPress
< Location: https://1.DOMAIN.edu.ar/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host INTERNAL-IP left intact

Querying to localhost

# curl -v -H Host:4.DOMAIN.edu.ar http://localhost/
* Expire in 0 ms for 6 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 1 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
* Expire in 0 ms for 1 (transfer 0x5556238fac10)
*   Trying ::1...
* TCP_NODELAY set
* Expire in 15 ms for 3 (transfer 0x5556238fac10)
* Expire in 200 ms for 4 (transfer 0x5556238fac10)
* Connected to localhost (::1) port 80 (#0)

GET / HTTP/1.1
Host:4.DOMAIN.edu.ar
User-Agent: curl/7.64.0
Accept: */*


< HTTP/1.1 301 Moved Permanently
< Date: Tue, 21 Sep 2021 22:13:01 GMT
< Server: Apache/2.4.48
< X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
< X-Redirect-By: WordPress
< Location: https://1.DOMAIN.edu.ar/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host localhost left intact

From apachectl -S I see the problem is related to what vhost is set as 
default

VirtualHost configuration:
*:80   is a NameVirtualHost
 default server 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/1.DOMAIN.conf:1)
 port 80 namevhost 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/1.DOMAIN.conf:1)

 alias 1.DOMAIN.edu.ar
 port 80 namevhost 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/2.DOMAIN.conf:1)

 alias 2.DOMAIN.edu.ar
 port 80 namevhost 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/4.DOMAIN.conf:1)

 alias 4.DOMAIN.edu.ar
 port 80 namevhost 4.DOMAIN.edu.ar 
(/etc/apache2/sites-enabled/3.DOMAIN.conf:1)

 alias 3.DOMAIN.unau.edu.ar
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33




El 2021-09-21 18:48, Frank Gingras escribió:

Show the httpd -S output and results from your tests with curl, then.

It might help to log the host: header in your access log too.

On Tue, 21 Sept 2021 at 17:41, Daniel Armando Rodriguez
 wrote:


Changed all vhosts definition the way you suggested, but the issue
still
happens.

El 2021-09-21 16:32, Frank Gingras escribió:

The first mistake is to use the hostnames when defining vhosts.

Define

them all as *:PORT, then test with curl, and run apachectl -S or

httpd

-S to spot any overlap.

On Tue, 21 Sept 2021 at 14:48, Daniel Armando Rodriguez
 wrote:


Hi,

I have four subdomains on the same host which work as expected

whis

this
base config



Re: [users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Frank Gingras
Show the httpd -S output and results from your tests with curl, then.

It might help to log the host: header in your access log too.

On Tue, 21 Sept 2021 at 17:41, Daniel Armando Rodriguez
 wrote:

> Changed all vhosts definition the way you suggested, but the issue still
> happens.
>
>
> El 2021-09-21 16:32, Frank Gingras escribió:
> > The first mistake is to use the hostnames when defining vhosts. Define
> > them all as *:PORT, then test with curl, and run apachectl -S or httpd
> > -S to spot any overlap.
> >
> > On Tue, 21 Sept 2021 at 14:48, Daniel Armando Rodriguez
> >  wrote:
> >
> >> Hi,
> >>
> >> I have four subdomains on the same host which work as expected whis
> >> this
> >> base config
> >>
> >> 
> >>
> >> ServerName 4.DOMAIN.edu.ar [2]
> >> ServerAlias 4.DOMAIN.edu.ar [2]
> >> ServerAdmin webmas...@domain.edu.ar
> >>
> >> DocumentRoot /var/www/4
> >>
> >> 
> >> Options FollowSymLinks
> >> AllowOverride All
> >> Require all granted
> >> 
> >>
> >> ErrorLog ${APACHE_LOG_DIR}/error_4.log
> >> CustomLog ${APACHE_LOG_DIR}/access_4.log combined
> >>
> >> 
> >>
> >> In the particular case of fourth subdomain, gets redirected to the
> >> first. See
> >>
> >> # curl -v -H Host:4.DOMAIN.edu.ar [2] http://INTERNAL-IP/
> >> * Expire in 0 ms for 6 (transfer 0x55669ac96c10)
> >> *   Trying INTERNAL-IP...
> >> * TCP_NODELAY set
> >> * Expire in 200 ms for 4 (transfer 0x55669ac96c10)
> >> * Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)
> >>> GET / HTTP/1.1
> >>> Host:4.DOMAIN.edu.ar [2]
> >>> User-Agent: curl/7.64.0
> >>> Accept: */*
> >>>
> >> < HTTP/1.1 301 Moved Permanently
> >> < Date: Tue, 21 Sep 2021 18:32:32 GMT
> >> < Server: Apache/2.4.48
> >> < X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
> >> < X-Redirect-By: WordPress
> >> < Location: https://1.DOMAIN.edu.ar/
> >> < Content-Length: 0
> >> < Content-Type: text/html; charset=UTF-8
> >> <
> >> * Connection #0 to host INTERNAL-IP left intact
> >>
> >> As said, domains 1, 3 and 3 works. In fact, when configuring the 4th
> >>
> >> just copied the one of the working configs and changed the
> >> subdomain,
> >> directory and also the log. Nothing more, but the result is not the
> >> one
> >> I expected.
> >>
> >> Any hint will be much appreciated.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Daniel Armando Rodriguez
Changed all vhosts definition the way you suggested, but the issue still 
happens.



El 2021-09-21 16:32, Frank Gingras escribió:

The first mistake is to use the hostnames when defining vhosts. Define
them all as *:PORT, then test with curl, and run apachectl -S or httpd
-S to spot any overlap.

On Tue, 21 Sept 2021 at 14:48, Daniel Armando Rodriguez
 wrote:


Hi,

I have four subdomains on the same host which work as expected whis
this
base config



ServerName 4.DOMAIN.edu.ar [2]
ServerAlias 4.DOMAIN.edu.ar [2]
ServerAdmin webmas...@domain.edu.ar

DocumentRoot /var/www/4


Options FollowSymLinks
AllowOverride All
Require all granted


ErrorLog ${APACHE_LOG_DIR}/error_4.log
CustomLog ${APACHE_LOG_DIR}/access_4.log combined



In the particular case of fourth subdomain, gets redirected to the
first. See

# curl -v -H Host:4.DOMAIN.edu.ar [2] http://INTERNAL-IP/
* Expire in 0 ms for 6 (transfer 0x55669ac96c10)
*   Trying INTERNAL-IP...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55669ac96c10)
* Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)

GET / HTTP/1.1
Host:4.DOMAIN.edu.ar [2]
User-Agent: curl/7.64.0
Accept: */*


< HTTP/1.1 301 Moved Permanently
< Date: Tue, 21 Sep 2021 18:32:32 GMT
< Server: Apache/2.4.48
< X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
< X-Redirect-By: WordPress
< Location: https://1.DOMAIN.edu.ar/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host INTERNAL-IP left intact

As said, domains 1, 3 and 3 works. In fact, when configuring the 4th

just copied the one of the working configs and changed the
subdomain,
directory and also the log. Nothing more, but the result is not the
one
I expected.

Any hint will be much appreciated.


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



Re: [users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Daniel Armando Rodriguez

El 2021-09-21 16:47, Darryl Philip Baker escribió:

I have ~200 virtualhosts on my Apache HTTPD server and all use the
declaration “” with not port specification. Just a
“Listen 80” directive. Do you specify the port on the VirtualHost
directive because you don’t want to accept traffic on all the ports
there are Listen directives for?


At some point I was told to do so in order to solve a circumstantial 
problem that had arisen. I think that, from that point on, it became a 
habit.


-
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



Re: [users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Frank Gingras
Darryl,

You can use * without the port under one specific condition:

You only listen to a single TLS or non-TLS port, and all vhosts are
configured to accept the traffic accordingly

Otherwise, you risk overlapping TLS and non-TLS vhosts, and your vhost will
not function properly.

On Tue, 21 Sept 2021 at 15:53, Darryl Philip Baker <
darryl.ba...@northwestern.edu> wrote:

> I have ~200 virtualhosts on my Apache HTTPD server and all use the
> declaration “” with not port specification. Just a “Listen
> 80” directive. Do you specify the port on the VirtualHost directive because
> you don’t want to accept traffic on all the ports there are Listen
> directives for?
>
>
>
> *Darryl Baker, *GSEC  (he/him/his)
>
> Sr. System Administrator
>
> Distributed Application Platform Services
>
> *Northwestern University*
>
> 1800 Sherman Ave.
>
> Suite 6-600 – Box #39
>
> Evanston, IL  60201-3715
>
> *darryl.ba...@northwestern.edu *
>
> (847) 467-6674 <+18474676674>
>
>
>
>
>
> *From: *Frank Gingras 
> *Reply-To: *"users@httpd.apache.org" 
> *Date: *Tuesday, September 21, 2021 at 2:32 PM
> *Cc: *"users@httpd.apache.org" 
> *Subject: *Re: [users@httpd] Four subdomain, fourth redirects to first
>
>
>
> The first mistake is to use the hostnames when defining vhosts. Define
> them all as *:PORT, then test with curl, and run apachectl -S or httpd -S
> to spot any overlap.
>
>
>
> On Tue, 21 Sept 2021 at 14:48, Daniel Armando Rodriguez
>  wrote:
>
> Hi,
>
> I have four subdomains on the same host which work as expected whis this
> base config
>
>  
> >
>
>ServerName 4.DOMAIN.edu.ar
> 
>ServerAlias 4.DOMAIN.edu.ar
> 
>ServerAdmin webmas...@domain.edu.ar
>
>DocumentRoot /var/www/4
>
>
>  Options FollowSymLinks
>  AllowOverride All
>  Require all granted
>
>
>ErrorLog ${APACHE_LOG_DIR}/error_4.log
>CustomLog ${APACHE_LOG_DIR}/access_4.log combined
>
> 
>
> In the particular case of fourth subdomain, gets redirected to the
> first. See
>
> # curl -v -H Host:4.DOMAIN.edu.ar
> 
> http://INTERNAL-IP/
> 
> * Expire in 0 ms for 6 (transfer 0x55669ac96c10)
> *   Trying INTERNAL-IP...
> * TCP_NODELAY set
> * Expire in 200 ms for 4 (transfer 0x55669ac96c10)
> * Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)
> > GET / HTTP/1.1
> > Host:4.DOMAIN.edu.ar
> 
> > User-Agent: curl/7.64.0
> > Accept: */*
> >
> < HTTP/1.1 301 Moved Permanently
> < Date: Tue, 21 Sep 2021 18:32:32 GMT
> < Server: Apache/2.4.48
> < X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
> 
> < X-Redirect-By: WordPress
> < Location: https://1.DOMAIN.edu.ar/
> 
> < Content-Length: 0
> < Content-Type: text/html; charset=UTF-8
> <
> * Connection #0 to host INTERNAL-IP left intact
>
> As said, domains 1, 3 and 3 works. In fact, when configuring the 4th
> just copied the one of the working configs and changed the subdomain,
> directory and also the log. Nothing more, but the result is not the one
> I expected.
>
>
> Any hint will be much appreciated.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


RE: [users@httpd] Proxy reporting AH00898: Error reading from remote server [EXTERNAL]

2021-09-21 Thread Beard, Shawn
2 things you can do. :
On the tomcat side of things, for the connector try this setting: 
maxThreads="500"
The default is only 200 if not specified. Definitions can be found here: 
https://tomcat.apache.org/tomcat-9.0-doc/config/http.html

On the apache webserver side of things you may need to make connection changes 
to MPM. Typically on modern versions of linux its using the worker mpm.
Below is an example to handle higher loads. Please note that what you should 
set these to depends on how may cpu cores you have and can also use more memory.



StartServers 8
MinSpareThreads 200
MaxSpareThreads 400
ThreadsPerChild 50
MaxRequestWorkers 400
MaxConnectionsPerChild 0


​
Shawn   Beard• Sr. Systems Engineer
Middleware Engineering
[cid:image896056.png@FFD2CCA8.0CC1617F]
3840 109th Street   ,   Urbandale   ,   IA  50322
Phone: +1-515-564-2528
Email:  sbe...@wrberkley.com
Website: https://berkleytechnologyservices.com/
[cid:image142253.jpg@DF5C342D.67501BC6]
Technology Leadership Unleashing Business Potential


-Original Message-
From: Israel Timoteo 
Sent: Tuesday, September 21, 2021 12:37 PM
To: users@httpd.apache.org
Subject: [users@httpd] Proxy reporting AH00898: Error reading from remote 
server [EXTERNAL]

** CAUTION: External message


Hi all,

I have the Apache proxy module reporting "AH00898: Error reading from remote 
server" on high load.

Any recommendations for what params should I need to review on the proxy config 
or on the connector side (Tomcat)?


Thanks for your help

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

CONFIDENTIALITY NOTICE: This e-mail and the transmitted documents contain 
private, privileged and confidential information belonging to the sender. The 
information therein is solely for the use of the addressee. If your receipt of 
this transmission has occurred as the result of an error, please immediately 
notify us so we can arrange for the return of the documents. In such 
circumstances, you are advised that you may not disclose, copy, distribute or 
take any other action in reliance on the information transmitted.


Re: [users@httpd] Re: Redirects and rewrites and performance

2021-09-21 Thread Darryl Philip Baker
I have some virtual hosts with well over 100 redirects and I have not seen a 
user perceptible performance difference. I am sure there will be a machine 
measurable different between the time it takes for the first redirect versus 
the last but it doesn't affect the user experience.

Darryl Baker, GSEC  (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
1800 Sherman Ave.
Suite 6-600 – Box #39
Evanston, IL  60201-3715
darryl.ba...@northwestern.edu
(847) 467-6674 
 

On 9/21/21, 2:52 PM, "Christophe JAILLET"  
wrote:

Hi,

Le 20/09/2021 à 18:29, Dave Wreski a écrit :
> Hi,
> 
> At what point does it begin to affect performance with the number of 
> redirects and rewrites being used on a website? Have there been any 
> performance studies on this?

I've never seen such benchmark up to now.

> 
> We have a website (linuxsecurity.com) that's been around for decades, 
> through many migrations, and have collected many (~10k) redirects along 
> the way.
> 
> We've also gone through a Joomla migration from the old 
> /content/view/33/45 style links to the SEF/title alias format, and have 
> a script that translates those dynamically as requested.
> 
> Of course it depends on server load and other factors, but when does it 
> become a point where searching through thousands of links that Apache 
> has stored in memory results in some significant additional delay?
> 
> Are there other methods of doing these redirects?

Have a look at RewriteMap with dbm files [1], [2].
It looks like what you are looking for.
Your conf file will be much smaller using an indexed file format should 
highly reduce the overhead of thousands of redirections to check.

> Would implementing 
> them in Joomla directly make any difference, or only add another layer 
> of abstraction?

I think that it would add another layer of abstraction.

> 
> Here's one example of a rewrite we're currently using:
> RewriteRule 
> 
^/features/features/verifying-linux-server-security-what-every-admin-needs-to-know$
 
> /features/features/verifying-linux-server-security [L,R=301]
> 
> RewriteRule 
> ^/advisories/fedora/fedora-25-rubygem-rmagick-security-update$ 
> 
/advisories/fedora/fedora-25-rubygem-rmagick-security-update-15-25-00-217101 
> [L,R=301]

If all your rules are like that (i.e. if you don't have regex), the 
above RewriteMap dbm should be just fine.

> Also, is there a way to trace a specific redirect? I've somehow created 
> a redirect loop with one of our articles, but enabling tracing on the 
> whole site will create a significant amount of data that makes it very 
> difficult to focus on just the one I'm interested in.

I don't think it is possible.

CJ

> LogLevel warn ssl:error auth_digest:error socache_shmcb:warn 
> mpm_worker:warn fcgid:info cache_disk:debug log_config:debug 
rewrite:trace3
> 
> Thanks,
> Dave

[1]: 
https://urldefense.com/v3/__https://httpd.apache.org/docs/2.4/en/mod/mod_rewrite.html*rewritemap__;Iw!!Dq0X2DkFhyF93HkjWTBQKhk!H15NUmaqyz0QLEZUAATg9MxjKtmyxmho9SiQu1pzWSG6M2_fa1PFADcddd24gDngUhKjOD9KVw$
 
[2]: 
https://urldefense.com/v3/__https://httpd.apache.org/docs/2.4/en/rewrite/rewritemap.html*dbm__;Iw!!Dq0X2DkFhyF93HkjWTBQKhk!H15NUmaqyz0QLEZUAATg9MxjKtmyxmho9SiQu1pzWSG6M2_fa1PFADcddd24gDngUhKC89x46Q$
 

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




[users@httpd] Re: Redirects and rewrites and performance

2021-09-21 Thread Christophe JAILLET

Hi,

Le 20/09/2021 à 18:29, Dave Wreski a écrit :

Hi,

At what point does it begin to affect performance with the number of 
redirects and rewrites being used on a website? Have there been any 
performance studies on this?


I've never seen such benchmark up to now.



We have a website (linuxsecurity.com) that's been around for decades, 
through many migrations, and have collected many (~10k) redirects along 
the way.


We've also gone through a Joomla migration from the old 
/content/view/33/45 style links to the SEF/title alias format, and have 
a script that translates those dynamically as requested.


Of course it depends on server load and other factors, but when does it 
become a point where searching through thousands of links that Apache 
has stored in memory results in some significant additional delay?


Are there other methods of doing these redirects?


Have a look at RewriteMap with dbm files [1], [2].
It looks like what you are looking for.
Your conf file will be much smaller using an indexed file format should 
highly reduce the overhead of thousands of redirections to check.


Would implementing 
them in Joomla directly make any difference, or only add another layer 
of abstraction?


I think that it would add another layer of abstraction.



Here's one example of a rewrite we're currently using:
RewriteRule 
^/features/features/verifying-linux-server-security-what-every-admin-needs-to-know$ 
/features/features/verifying-linux-server-security [L,R=301]


RewriteRule 
^/advisories/fedora/fedora-25-rubygem-rmagick-security-update$ 
/advisories/fedora/fedora-25-rubygem-rmagick-security-update-15-25-00-217101 
[L,R=301]


If all your rules are like that (i.e. if you don't have regex), the 
above RewriteMap dbm should be just fine.


Also, is there a way to trace a specific redirect? I've somehow created 
a redirect loop with one of our articles, but enabling tracing on the 
whole site will create a significant amount of data that makes it very 
difficult to focus on just the one I'm interested in.


I don't think it is possible.

CJ

LogLevel warn ssl:error auth_digest:error socache_shmcb:warn 
mpm_worker:warn fcgid:info cache_disk:debug log_config:debug rewrite:trace3


Thanks,
Dave


[1]: https://httpd.apache.org/docs/2.4/en/mod/mod_rewrite.html#rewritemap
[2]: https://httpd.apache.org/docs/2.4/en/rewrite/rewritemap.html#dbm

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



Re: [users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Darryl Philip Baker
I have ~200 virtualhosts on my Apache HTTPD server and all use the declaration 
“” with not port specification. Just a “Listen 80” directive. Do 
you specify the port on the VirtualHost directive because you don’t want to 
accept traffic on all the ports there are Listen directives for?

Darryl Baker, GSEC  (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
1800 Sherman Ave.
Suite 6-600 – Box #39
Evanston, IL  60201-3715
darryl.ba...@northwestern.edu
(847) 467-6674


From: Frank Gingras 
Reply-To: "users@httpd.apache.org" 
Date: Tuesday, September 21, 2021 at 2:32 PM
Cc: "users@httpd.apache.org" 
Subject: Re: [users@httpd] Four subdomain, fourth redirects to first

The first mistake is to use the hostnames when defining vhosts. Define them all 
as *:PORT, then test with curl, and run apachectl -S or httpd -S to spot any 
overlap.

On Tue, 21 Sept 2021 at 14:48, Daniel Armando Rodriguez 
 wrote:
Hi,

I have four subdomains on the same host which work as expected whis this
base config

https://urldefense.com/v3/__http:/4.DOMAIN.edu.ar:80__;!!Dq0X2DkFhyF93HkjWTBQKhk!EtnL5-sA9HbWlSvJ4AlphiGpOTSpF2DWidf_FdJdBQsmqyStwOp8duNsSrlWiao5z4-6Yzyngw$>>

   ServerName 
4.DOMAIN.edu.ar
   ServerAlias 
4.DOMAIN.edu.ar
   ServerAdmin webmas...@domain.edu.ar

   DocumentRoot /var/www/4

   
 Options FollowSymLinks
 AllowOverride All
 Require all granted
   

   ErrorLog ${APACHE_LOG_DIR}/error_4.log
   CustomLog ${APACHE_LOG_DIR}/access_4.log combined



In the particular case of fourth subdomain, gets redirected to the
first. See

# curl -v -H 
Host:4.DOMAIN.edu.ar
 
http://INTERNAL-IP/
* Expire in 0 ms for 6 (transfer 0x55669ac96c10)
*   Trying INTERNAL-IP...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55669ac96c10)
* Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)
> GET / HTTP/1.1
> Host:4.DOMAIN.edu.ar
> User-Agent: curl/7.64.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Tue, 21 Sep 2021 18:32:32 GMT
< Server: Apache/2.4.48
< X-Pingback: 
http://1.DOMAIN.edu.ar/xmlrpc.php
< X-Redirect-By: WordPress
< Location: 
https://1.DOMAIN.edu.ar/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host INTERNAL-IP left intact

As said, domains 1, 3 and 3 works. In fact, when configuring the 4th
just copied the one of the working configs and changed the subdomain,
directory and also the log. Nothing more, but the result is not the one
I expected.


Any hint will be much appreciated.

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


Re: [users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Frank Gingras
The first mistake is to use the hostnames when defining vhosts. Define them
all as *:PORT, then test with curl, and run apachectl -S or httpd -S to
spot any overlap.

On Tue, 21 Sept 2021 at 14:48, Daniel Armando Rodriguez
 wrote:

> Hi,
>
> I have four subdomains on the same host which work as expected whis this
> base config
>
> 
>
>ServerName 4.DOMAIN.edu.ar
>ServerAlias 4.DOMAIN.edu.ar
>ServerAdmin webmas...@domain.edu.ar
>
>DocumentRoot /var/www/4
>
>
>  Options FollowSymLinks
>  AllowOverride All
>  Require all granted
>
>
>ErrorLog ${APACHE_LOG_DIR}/error_4.log
>CustomLog ${APACHE_LOG_DIR}/access_4.log combined
>
> 
>
> In the particular case of fourth subdomain, gets redirected to the
> first. See
>
> # curl -v -H Host:4.DOMAIN.edu.ar http://INTERNAL-IP/
> * Expire in 0 ms for 6 (transfer 0x55669ac96c10)
> *   Trying INTERNAL-IP...
> * TCP_NODELAY set
> * Expire in 200 ms for 4 (transfer 0x55669ac96c10)
> * Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)
> > GET / HTTP/1.1
> > Host:4.DOMAIN.edu.ar
> > User-Agent: curl/7.64.0
> > Accept: */*
> >
> < HTTP/1.1 301 Moved Permanently
> < Date: Tue, 21 Sep 2021 18:32:32 GMT
> < Server: Apache/2.4.48
> < X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
> < X-Redirect-By: WordPress
> < Location: https://1.DOMAIN.edu.ar/
> < Content-Length: 0
> < Content-Type: text/html; charset=UTF-8
> <
> * Connection #0 to host INTERNAL-IP left intact
>
> As said, domains 1, 3 and 3 works. In fact, when configuring the 4th
> just copied the one of the working configs and changed the subdomain,
> directory and also the log. Nothing more, but the result is not the one
> I expected.
>
>
> Any hint will be much appreciated.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


[users@httpd] Four subdomain, fourth redirects to first

2021-09-21 Thread Daniel Armando Rodriguez

Hi,

I have four subdomains on the same host which work as expected whis this 
base config




  ServerName 4.DOMAIN.edu.ar
  ServerAlias 4.DOMAIN.edu.ar
  ServerAdmin webmas...@domain.edu.ar

  DocumentRoot /var/www/4

  
Options FollowSymLinks
AllowOverride All
Require all granted
  

  ErrorLog ${APACHE_LOG_DIR}/error_4.log
  CustomLog ${APACHE_LOG_DIR}/access_4.log combined



In the particular case of fourth subdomain, gets redirected to the 
first. See


# curl -v -H Host:4.DOMAIN.edu.ar http://INTERNAL-IP/
* Expire in 0 ms for 6 (transfer 0x55669ac96c10)
*   Trying INTERNAL-IP...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55669ac96c10)
* Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)

GET / HTTP/1.1
Host:4.DOMAIN.edu.ar
User-Agent: curl/7.64.0
Accept: */*


< HTTP/1.1 301 Moved Permanently
< Date: Tue, 21 Sep 2021 18:32:32 GMT
< Server: Apache/2.4.48
< X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php
< X-Redirect-By: WordPress
< Location: https://1.DOMAIN.edu.ar/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host INTERNAL-IP left intact

As said, domains 1, 3 and 3 works. In fact, when configuring the 4th 
just copied the one of the working configs and changed the subdomain, 
directory and also the log. Nothing more, but the result is not the one 
I expected.



Any hint will be much appreciated.

-
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


[users@httpd] Proxy reporting AH00898: Error reading from remote server

2021-09-21 Thread Israel Timoteo
Hi all,

I have the Apache proxy module reporting "AH00898: Error reading from remote 
server" on high load.

Any recommendations for what params should I need to review on the proxy config 
or on the connector side (Tomcat)?


Thanks for your help

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