Re: [users@httpd] Re: Serve multiple websites (not sub-domains) from port 80

2022-04-04 Thread Frank Gingras
Surely it will, but in practice, with shared hosting, you'd assign a single vhost to each customer. This is where Alias / AliasMatch comes into play. On Mon, 4 Apr 2022 at 11:35, Jim Albert wrote: > On 4/4/2022 11:16 AM, Eric Covener wrote: > > On Mon, Apr 4, 2022 at 11:11 AM A wrote: > >> Hi,

Re: [users@httpd] Getting XAMPP Apache on Windows 10 to work through local network!

2022-04-06 Thread Frank Gingras
If httpd works on localhost, all you need to do is set up DNS to access it from another computer. Alternatively, you can use http(s)://IP_HERE/ to access httpd from another computer. Make sure that you use Listen 80 and/or Listen 443 to allow all clients to connect. On Wed, 6 Apr 2022 at 05:27, A

Re: [users@httpd] Unable to connect to Apache test website on LocalHost

2022-04-13 Thread Frank Gingras
A ping will not help with a 403 error. The error log needs to be reviewed, as it will expose the source of the 403 error. On Wed, 13 Apr 2022 at 18:18, Knute Johnson wrote: > What do you get when you ping localhost? > > knute... > > On 4/13/2022 3:25 PM, DiversityLink/Milt Spain wrote: > > Than

Re: [users@httpd] Unable to connect to Apache test website on LocalHost

2022-04-13 Thread Frank Gingras
Let's just get the actual error log entry first. On Wed, 13 Apr 2022 at 23:06, Ruben Safir wrote: > On 4/13/22 18:18, Knute Johnson wrote: > > What do you get when you ping localhost? > > > > knute... > > > it is responding with a 403 which means there is nothing to ping about > > 403 Forbidden

Re: [users@httpd] Re: Unable to connect to Apache test website on LocalHost

2022-04-14 Thread Frank Gingras
Can we please stop guessing at the cause of the error until said user gives us the verbatim log entry? On Thu, 14 Apr 2022 at 12:20, 😉 Good Guy 😉 wrote: > On 13/04/2022 21:25, DiversityLink/Milt Spain wrote: > > Thanks for all the suggestions. Tried them all with no resolution of > > the problem

Re: [users@httpd] 答复: [users@httpd] [apache]maxconnectionsperchild problem

2022-04-15 Thread Frank Gingras
Aside from the useful tuning tips, I would also caution against using prefork for high-volume servers. The event mpm would scale better. On Fri, 15 Apr 2022 at 09:55, Yann Ylavic wrote: > On Fri, Apr 15, 2022 at 3:50 PM Yann Ylavic wrote: > > > > On Fri, Apr 15, 2022 at 2:16 PM 刘孟 wrote: > > >

Re: [users@httpd] Re: Unable to connect to Apache test website on LocalHost

2022-04-15 Thread Frank Gingras
ve it listen to a port other than 80, > and start and test it while the older version of Apache is running on the C > drive serving up the website. > > Your answer and suggestions will be appreciated. > > Milt Spain > > *From:* Frank Gingras > *Sent:* Thursday, April 14, 2022

Re: [users@httpd] My fault or a bug in Apache ? (mod_dir and Require method rule)

2022-04-17 Thread Frank Gingras
Actually, that configuration looks fine at a glance. However, from your logs, mod_dir is hijacking the request in the early phase. You might have to resort to mod_rewrite for this, as much as I hate to suggest it. I'll have to think about the solution, hopefully someone else can chime in in the m

Re: [users@httpd] 答复: [users@httpd] 答复: [users@httpd] [apache]maxconnectionsperchild problem

2022-04-25 Thread Frank Gingras
5:25, 刘孟 wrote: > Hi Frank Gingras > > > > I am sorry I missed this mail. > > > > I have got your advice and gone to study event mpm. > > I had study worker mpm before and very concerned about its > > instability in processing large volume servers and the intera

Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Frank Gingras
You deleted the stackoverflow post - what did the error log say, exactly? On Mon, 2 May 2022 at 06:06, Josh Mustillo wrote: > IT'S WORKING: > > Weird, fresh VM, 99% of guides are the same except the write up on vultr. > Could it have been me being lazy and running a web server as root user? The

Re: [users@httpd] Variable of document root path based on source ip

2022-05-02 Thread Frank Gingras
The simple approach here would be to define separate IP:80 vhosts and set a separate document root in each vhost. On Mon, 2 May 2022 at 06:48, Eric Covener wrote: > You cannot use Define conditionally this way. It is parsed at startup and > ignores any enclosing directives > > On Mon, May 2, 202

Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Frank Gingras
+s {} \; > > Could probably replicate it following this guide: > > https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-20-04 > > > On Tue, 3 May 2022 at 7:31 am, Frank Gingras wrote: > >> You deleted the stackoverflow post - what di

Re: [users@httpd] Variable of document root path based on source ip

2022-05-03 Thread Frank Gingras
; On 03-05-2022 00:32, Frank Gingras wrote: > > The simple approach here would be to define separate IP:80 vhosts and set > a separate document root in each vhost. > > On Mon, 2 May 2022 at 06:48, Eric Covener wrote: > > You cannot use Define conditionally this way. It is par

Re: [users@httpd] Variable of document root path based on source ip

2022-05-03 Thread Frank Gingras
n I make some important > changes to a site...all clients from wan to view the under_construction > directory. > > > > On 03-05-2022 16:03, Frank Gingras wrote: > > Do all clients come from the 192.168.1.0/24 range? > > On Tue, 3 May 2022 at 04:23, Ivan Ionut wrote:

Re: [users@httpd] what do to with non-existent domains - ?

2022-05-16 Thread Frank Gingras
You would define a default vhost for that port that would handle those requests. In that vhost, you can either return a 403, a 302, or even a 418. On Mon, 16 May 2022 at 09:04, lejeczek wrote: > Hi guys. > > I've engine-searched this and turns out be an old "issue" but I failed > to find a solut

Re: [users@httpd]

2022-05-17 Thread Frank Gingras
Nick, they mean that they have no name-based vhost defined for that domain name. This can happen with DNS spoofing. On Tue, 17 May 2022 at 08:01, Nick Folino wrote: > Not exactly sure what you're asking. If it shows up in the log it's > reaching the server. > > On Tue, May 17, 2022 at 7:30 AM v

Re: [users@httpd]

2022-05-17 Thread Frank Gingras
Sorry, that was meant for another thread. For this one, it seems you're still on 2.2, and using mod_rewrite heavily. The first step would be to examine the rewrite log to see what is happening. On Tue, 17 May 2022 at 08:22, Frank Gingras wrote: > Nick, they mean that they have no na

Re: [users@httpd] Multi-domain with SSL - Virtualhost all need IPs?

2022-05-18 Thread Frank Gingras
See if you can add a SAN to that wildcard certificate first. On Wed, 18 May 2022 at 15:21, frank picabia wrote: > > We have a server with over 300 vhosts on it. Marketing/CMS madness I > guess. > All on the same domain name. Many VirtualHosts are defined with *:443 > and then ServerName to rel

Re: [users@httpd] Re: {Disarmed} Re: [users@httpd] Multi-domain with SSL - Virtualhost all need IPs?

2022-05-18 Thread Frank Gingras
-c mail.hamletdevelopments.ca > -q yes >ssl_cert = /programs/common/getssl.cert -c mail.hamletdevelopments.ca > -q yes >ssl_ca = /programs/common/getssl.cert -c mail.hamletdevelopments.ca > -q yes > } > > > > > Happy Wednesday !!! > Thanks - paul >

Re: [users@httpd] Multi-domain with SSL - Virtualhost all need IPs?

2022-05-18 Thread Frank Gingras
t domain. > > 300 hosts like *.example1.com > and now we have 1 example2.com > > > On Wed, May 18, 2022 at 4:31 PM Frank Gingras wrote: > >> See if you can add a SAN to that wildcard certificate first. >> >> On Wed, 18 May 2022 at 15:21, frank picabia wrote: >

Re: [users@httpd] Re: Multi-domain with SSL - Virtualhost all need IPs?

2022-05-20 Thread Frank Gingras
As mentioned, name-based vhosts will work with SNI and *:443 provided that you have the correct certificate assigned to each vhost. In rare cases, you can use IP:443 vhosts if you want specific handling based on the IP used to handle the request, such as https://IP1/ or https://IP2/. However, it i

Re: [users@httpd] Re: Multi-domain with SSL - Virtualhost all need IPs?

2022-05-20 Thread Frank Gingras
BHQLSOD5JkAKituHpPrZu5-qa6kZmzAj0yKhiovnyiw6bX333zd9IKH73D6x3DQsfQOvC7ztgVXyiO7EUHWBXHjoys4q30,&typo=1> >> Since before this point all vhosts were on example1.com >> <https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fexample1.com&c=E,1,8wXSzKIRaGVigrHUZoxWD8812IQ1_5RSU52jRZY

Re: [users@httpd] Re: High Memory usage issue

2022-05-26 Thread Frank Gingras
Also, I hope you are using the php-fpm approach for the php content, as mixing event and mod_php is a bad idea. Can you show apachectl -M ? On Thu, 26 May 2022 at 12:51, Deepak Goel wrote: > What exactly is the problem? Can you please post the error? > > > Deepak > "The greatness of a nation ca

Re: [users@httpd] Re: High Memory usage issue

2022-05-27 Thread Frank Gingras
;>>>>>> >>>>>>>>> Deepak >>>>>>>>> "The greatness of a nation can be judged by the way its animals >>>>>>>>> are treated - Mahatma Gandhi" >>>>>>>>> >>>>>>>>&g

Re: [users@httpd] Re: High Memory usage issue

2022-05-27 Thread Frank Gingras
quot;Plant a Tree, Go Green" > > Make In India : http://www.makeinindia.com/home > > > On Fri, May 27, 2022 at 9:17 PM Frank Gingras wrote: > >> Take a step back - the issue is that you are using the mod_php DSO. You >> do not want to use the DSO, and instead, yo

Re: [users@httpd] Mystifying start failure

2022-05-30 Thread Frank Gingras
Errors with certificates will often cause silent failures. Running apachectl -S and making sure that all TLS vhosts have a valid certificate and key is usually the fastest approach here. On Mon, 30 May 2022 at 11:51, Yehuda Katz wrote: > Then something is probably wrong with the contents of one

Re: [users@httpd] Mystifying start failure

2022-05-30 Thread Frank Gingras
Glad you figured it out, TLS errors can be cryptic to debug. On Mon, 30 May 2022 at 13:14, jnil...@jala.com wrote: > That solved it! Apache has successfully started. > Thanks Yehuda and Frank! > > On 30 May 2022, at 8:51, Yehuda Katz wrote: > > Then something is probably wrong with the contents

Re: [users@httpd] Re: High Memory usage issue

2022-05-31 Thread Frank Gingras
next step is to configure your php-fpm pools, then use mod_proxy_fcgi to send the php requests to it, as per the wiki article I linked before. For help with php-fpm, you will need to ask php forums. On Fri, 27 May 2022 at 12:35, Frank Gingras wrote: > I recommend that you refer to the ASF wiki

Re: [users@httpd] RE: rate limit issues in Apache Http server

2022-06-02 Thread Frank Gingras
Based on the error, increase ThreadsPerChild. You can also look at mod_ratelimit. On Thu, 2 Jun 2022 at 04:18, Rathore, Rajendra wrote: > Also seen below errors in error.log file > > > > [Thu Jun 02 12:04:38.863338 2022] [mpm_winnt:error] [pid 3488:tid 7984] > AH00326: Server ran out of threads

Re: [users@httpd] RE: rate limit issues in Apache Http server

2022-06-02 Thread Frank Gingras
/deicool > LinkedIn: www.linkedin.com/in/deicool > > "Plant a Tree, Go Green" > > Make In India : http://www.makeinindia.com/home > > > On Thu, Jun 2, 2022 at 9:35 PM Frank Gingras wrote: > >> Based on the error, increase ThreadsPerChild. >> &

Re: [users@httpd] Apache website conversion from alias to virtualhost

2022-06-08 Thread Frank Gingras
As for the error log entry, it does tell you what to do exactly to fix the issue. Do you understand it? On Wed, 8 Jun 2022 at 08:51, Eric Covener wrote: > > > > avoid hostnames in VirtualHost tags. If you don't care what IP > address the connection comes in on, use *:443. > > On Wed, Jun 8, 20

Re: [users@httpd] reverse proxy issue

2022-06-09 Thread Frank Gingras
In this case, running apachectl -S or httpd -S helps to spot overlaps. Secondly, define all vhosts as *:PORT (only use IP:PORT when you know what you are doing, and NEVER use :PORT). If you're still stuck, share the sanitized version of httpd -S Also, is there a reason why you're still using pre

Re: [users@httpd] Managed domains: how do I get from staging to a real letsencrypt cert?

2022-06-12 Thread Frank Gingras
Changing certificates means that you have to issue a full restart, and not graceful. On Sun, 12 Jun 2022 at 08:19, Tom Browder wrote: > I got a test cert installed, and Qualys SSL Labs show it. I have changed > my httpd.conf line back to the actual staging site, did a graceful restart, > but not

Re: [users@httpd] Managed domains: how do I get from staging to a real letsencrypt cert?

2022-06-12 Thread Frank Gingras
Can we see the apachectl -S output (you can munge to example.tld if needed)? On Sun, 12 Jun 2022 at 10:46, Tom Browder wrote: > On Sun, Jun 12, 2022 at 09:12 Tom Browder wrote: > >> On Sun, Jun 12, 2022 at 08:09 Frank Gingras wrote: >> >>> Changing certificates mea

Re: [users@httpd] Redirect in 443

2022-06-22 Thread Frank Gingras
Use RedirectMatch with a negative lookahead instead to prevent loops. On Wed, 22 Jun 2022 at 05:16, Deepak Goel wrote: > Hello > > How do I create a redirect in 443 port in the apache web server 2? > > I want to redirect the url : > > https://mydomain.com/ > > to > > https://mydomain.com/foo/ >

Re: [users@httpd] NameVirtualHost fails

2022-06-30 Thread Frank Gingras
That is one assumption, sure. Best to have the user run apachectl -S to confirm. For all we know, they could have defined invalid vhosts. On Thu, 30 Jun 2022 at 16:54, wrote: > You are missing something called virtual hosts. You are allowed one host > but you can have many virtual hosts. Secondl

Re: [users@httpd] NameVirtualHost fails

2022-07-02 Thread Frank Gingras
93 (code=exited, status=1/FAILURE) > Status: "Reading configuration..." > > Jul 01 14:12:39 donner systemd[1]: Starting The Apache Webserver... > Jul 01 14:12:39 donner start_apache2[29193]: AH00548: NameVirtualHost has > no effect and will be removed in t> > Jul 0

Re: [users@httpd] Apache 2.4 and php

2022-07-06 Thread Frank Gingras
First off, I would suggest not using prefork and mod_php, unless traffic is minimal and performance is not a concern. Nowadays, the scalable solution is to use php-fpm, and use a threaded mpm like event. Secondly, for your issue, you will need to look into the php logs as php is generating the res

Re: [users@httpd] NameVirtualHost fails

2022-07-06 Thread Frank Gingras
Canada > L1N 4S3 > > Toronto 416.642.7266 > Main 1.866.411.7266 > Fax 1.888.892.7266 > Email p...@scom.ca > > On 7/5/2022 5:38 PM, scom...@httpd.apache.org wrote: > > I've tried several variations but basically the error message is that > > the certificate and the

Re: [users@httpd] site compromised and httpd log analysis

2022-07-06 Thread Frank Gingras
Cross-site contamination is not the same as exploiting insecure php scripts to upload malicious content. I will agree that isolation is a good idea, but it really has little to do with the thread at hand. On Wed, 6 Jul 2022 at 06:30, Paul Kudla (SCOM.CA Internet Services Inc.) < p...@scom.ca> wro

Re: [users@httpd] Apache 2.4 and php

2022-07-06 Thread Frank Gingras
Paul, httpd does not call php includes, period. This is processed by php alone. On Wed, 6 Jul 2022 at 18:31, Paul wrote: > On 2022-07-06 08:27, Frank Gingras wrote: > > First off, I would suggest not using prefork and mod_php, unless traffic > is > > minimal and performanc

Re: [users@httpd] Apache 2.4 and php

2022-07-07 Thread Frank Gingras
, Frank Gingras wrote: > Paul, > > httpd does not call php includes, period. This is processed by php alone. > > On Wed, 6 Jul 2022 at 18:31, Paul wrote: > >> On 2022-07-06 08:27, Frank Gingras wrote: >> > First off, I would suggest not using prefork and mod_php, unle

Re: [users@httpd] rewrite rule with ProxyPass and ProxyPassReverse

2022-07-11 Thread Frank Gingras
Typically, the solution is to avoid adding the double slashes to begin with. If you show us your Proxy* directives, we can comment further. On Mon, 11 Jul 2022 at 15:45, wrote: > I am not an HTTPD expert and am running into issues where double-slashes > are being added to the end of the ProxyPas

Re: [users@httpd] Apache 2.4 with event, PHP 8.0 fpm on FreeBSD 13, pool keeps dying

2022-07-15 Thread Frank Gingras
I think you may have much better luck with the php-fpm pool issues on a php mailing list, or even #php on the libera chat IRC network. On Fri, 15 Jul 2022 at 06:51, David Mehler wrote: > Hello, > > The info.php file is in my documentroot. > > Thanks. > Dave. > > > On 7/15/22, Deepak Goel wrote:

Re: [users@httpd] Re: Restart over reload

2022-08-24 Thread Frank Gingras
Curtis, Eric's answer was much more on point. Further, "enabling" a module is just confusing for new users. Modules are either loaded, or not loaded. If you load a module previously not loaded, then you restart httpd. If you change most configuration, then a graceful restart is fine, save for cha

Re: [users@httpd] Re: How Do I Prevent Repetitive Hits

2022-08-25 Thread Frank Gingras
Generally speaking, it's a bit rude to hijack someone else's thread. To answer the new question, there are geoIP modules available that can be combined with authorization, but it is still best to use a firewall to control access to your resources. On Thu, 25 Aug 2022 at 14:40, 😉 Good Guy 😉 wrote

Re: [users@httpd] Intermitent 404 and 403 on proxied site while enabling Websocket

2022-09-08 Thread Frank Gingras
Davi, 2.4.4 does not support WSS, so this isn't likely to work at all. If that is a distro package with backports, it must be an ancient EOL version, as I'm not aware of any distro still shipping 2.4.4. It would also be useful to see the output from apachectl -M On Thu, 8 Sept 2022 at 13:00, Dav

Re: [users@httpd] WordPress .htaccess rewrite issue between httpd versions

2022-09-21 Thread Frank Gingras
You don't need to use mod_rewrite here, just use: FallbackResource /site1/index.php DirectoryIndex /site1/index.php On Wed, 21 Sept 2022 at 16:37, Mark Leisher wrote: > I hope this is the right list to bring things like this up. > > I'm running into a rewrite loop problem with a WordPress .htac

Re: [users@httpd] I need help with a rewrite request

2022-09-28 Thread Frank Gingras
You don't need to use mod_rewrite, a simpler solution is to use multiviews: https://httpd.apache.org/docs/current/content-negotiation.html#multiviews On Wed, 28 Sept 2022 at 09:18, Darryl Philip Baker < darryl.ba...@northwestern.edu> wrote: > I have just received a request to rewrite everything

Re: [users@httpd] I need help with a rewrite request

2022-09-28 Thread Frank Gingras
he/him/his) > > Sr. System Administrator > > Distributed Application Platform Services > > *Northwestern University* > > 4th Floor > > 2020 Ridge Avenue > > Evanston, IL 60208-0801 > > *darryl.ba...@northwestern.edu * > > (847) 467-6674 <+18

Re: [users@httpd] proxy subdirectory not being kept after redirection

2022-10-04 Thread Frank Gingras
A few comments first: 1) Try to avoid proxying inside a block, unless you have a good reason to. You have more control in the vhost context over the URI paths. 2) Stop using the 2.2 authz directives, those have been deprecated for over a decade Now, your ProxyPassReverse is effectively: ProxyPa

Re: [users@httpd] Apache PHP-FPM Integration with mod_proxy_fcgi and multiple Users

2022-10-06 Thread Frank Gingras
The only solution is to remove the FileInfo override, and merge all the changes in your vhost. Users should not be allowed to override the vhost configuration. Yes, that means they also cannot add their own mod_rewrite recipes, but that is a good thing. On Thu, 6 Oct 2022 at 09:07, William Edward

Re: [users@httpd] File Permissions

2022-10-08 Thread Frank Gingras
Milt, This does not sound like a httpd question at a glance; I recommend you ask the community that supports your ftp server software, and/or client. On Sat, 8 Oct 2022 at 09:04, DiversityLink/Milt Spain < pbservi...@earthlink.net> wrote: > Hello All, > > I have a remote server and utilize Apach

Re: [users@httpd] specification of .htaccess

2022-10-25 Thread Frank Gingras
This is an extremely bad idea. Do you have access to your config files / the root user? If so, edit your vhost, and place your redirects in there instead. Such a large .htaccess file will perform very poorly. Further, avoid using mod_rewrite to redirect unless you have no choice. On Tue, 25 Oct

Re: [users@httpd] Is Apache 2.4.7 newer than 2.4.54

2022-10-25 Thread Frank Gingras
You could temporarily increase your ThreadsPerChild, as 25 is extremely low and increases the chances of that bug occurring. I'd have to find out what fix applies to this bug, and why your installation is still vulnerable. Perhaps your distro used backports. On Tue, 25 Oct 2022 at 20:02, Mike Dew

Re: [users@httpd] Is Apache 2.4.7 newer than 2.4.54

2022-10-26 Thread Frank Gingras
The defaults in the docs really cater to a low-traffic server; perhaps there should be a note to that effect. On Wed, 26 Oct 2022 at 01:47, Mike Dewhirst wrote: > On 26/10/2022 12:45 pm, Frank Gingras wrote: > > You could temporarily increase your ThreadsPerChild, as 25 is extremely

Re: [users@httpd] Questionable URL being sent to our server

2022-11-01 Thread Frank Gingras
What is the HTTP method you see in the logs? Either way, they may trying to use your server as an open proxy, and failing to do so. On Tue, 1 Nov 2022 at 10:27, Darryl Philip Baker < darryl.ba...@northwestern.edu> wrote: > We are getting a poorly formed URL being requested from our servers. > A

Re: [users@httpd] Questionable URL being sent to our server

2022-11-01 Thread Frank Gingras
ting a 400 error. > > > > *Darryl Baker, *GSEC, GCLD (he/him/his) > > Sr. System Administrator > > Distributed Application Platform Services > > *Northwestern University* > > 4th Floor > > 2020 Ridge Avenue > > Evanston, IL 60208-0801 > > *

Re: [users@httpd] Help check my config for server section

2022-11-11 Thread Frank Gingras
That config snippet has no effect on php; that being said, you many two issues so far: 1) You don't need to use mod_rewrite to redirect, mod_alias with Redirect suffices 2) You do not want to mix 2.2 and 2.4 authz directives. Remove the 2.2 directives, and unload the mod_access_compat module On F

Re: [users@httpd] Can't display an index.html on our public IP

2022-11-21 Thread Frank Gingras
Your setup is using nginx as a reverse proxy for the httpd instance, based on that error. For httpd, you will likely need to make sure the DirectoryIndex is set up properly, and make sure you can access it directly first. Then, configure nginx to pass the request properly. Also, make sure to run

Re: [users@httpd] Can't display an index.html on our public IP

2022-11-21 Thread Frank Gingras
Do not remove nginx without checking if anything depends on it first. As counter-intuitive as this may look, many hosters use nginx as a front-end proxy. On Mon, 21 Nov 2022 at 12:12, Antony Stone < antony.st...@apache.open.source.it> wrote: > On Monday 21 November 2022 at 17:59:58, Ju lien wrote

Re: [users@httpd] Can't display an index.html on our public IP

2022-11-22 Thread Frank Gingras
we set up the hosts file ? > > Regards, > > *Julien* > > > > Le lun. 21 nov. 2022 à 18:16, Frank Gingras a écrit : > >> Do not remove nginx without checking if anything depends on it first. As >> counter-intuitive as this may look, many hosters use ngin

Re: [users@httpd] Verizon Digital Voice

2022-12-04 Thread Frank Gingras
This mailing list is intended for the apache httpd project; it has nothing to do with your question. Try reaching out to Verizon instead. On Sun, 4 Dec 2022 at 12:16, Michael D. Berger wrote: > Verizon wants to replace my FIOS phone line with Digital Voice. > > I think this means my house phone

Re: [users@httpd] RewriteRule and md5 (or expressions)

2022-12-09 Thread Frank Gingras
I would use a plain rewrite map for this case. On Fri, Dec 9, 2022 at 8:50 PM BohwaZ wrote: > Hi everyone, > > I'm wondering if it's possible to rewrite the current URL to a MD5 hash > of the request URL. > > What I'm trying to do is serve "/cache/[MD5 hash of URL].html" when a > request on "/UR

Re: [users@httpd] Apache2 fails to listen on open port

2022-12-15 Thread Frank Gingras
Consider our wiki article for this: https://cwiki.apache.org/confluence/display/HTTPD/CouldNotBindToAddress On Thu, Dec 15, 2022 at 5:16 PM Dan Nessett wrote: > I am attempting to set up apache with sslh. The latter is running fine, > but when I attempt to start the apache2 server, it fails wit

Re: [users@httpd] Apache2 fails to listen on open port

2022-12-15 Thread Frank Gingras
l|grep http > > > Command 'semanage' not found, but can be installed with: > > > sudo apt install policycoreutils-python-utils > > > > > > I have attached output from the terminal commands that tests these > hypotheses > > >

Re: [users@httpd] Apache2 fails to listen on open port

2022-12-15 Thread Frank Gingras
stall policycoreutils-python-utils > > I have attached output from the terminal commands that tests these > hypotheses > to this message, as it is fairly long and including it in the body of the > message might make it hard to analyze. > > By the way, the apache2 version

Re: [users@httpd] Apache2 fails to listen on open port

2022-12-15 Thread Frank Gingras
ervice: Control process exited, > code=exited status=1 > Dec 15 18:52:14 Mount systemd[1]: apache2.service: Failed with result > 'exit-code'. > Dec 15 18:52:14 Mount systemd[1]: Failed to start The Apache HTTP Server. > dnessett@Mount:/etc/apache2$ > > On Dec 15, 2022, a

Re: [users@httpd] Controlling access to web site based on domain name

2022-12-16 Thread Frank Gingras
You're referring to controlling access via the referrer, which is trivial to spoof; I strongly recommend not using that approach. The other concept to understand here is that you can require the traffic to match a certain rDNS value. If you still want to match the referrer, you can do so with wr

Re: [users@httpd] Controlling access to web site based on domain name

2022-12-22 Thread Frank Gingras
, and i want to redirect access from those > disallowed referrers to another specific page. > > So can I put all 30 allowed domains in a "RewriteCond" statement or is > there some better way to do that? > > > ------ > *From:* Frank Gingras

Re: [users@httpd] SSLCertificateFile localhost.crt does not exist

2022-12-27 Thread Frank Gingras
The first is a warning, and it tells you how to suppress it. The second implies that you need to remove the pidfile before you can restart httpd, so do that. On Sun, Dec 25, 2022 at 3:10 PM Jeffrey Denison wrote: > @vicky chb > I changed ssl.conf but don't know how to replace the > SSLcertifica

Re: [users@httpd] SSLCertificateFile localhost.crt does not exist

2022-12-30 Thread Frank Gingras
Jeffrey, A .crt file is usually the certificate, and .key usually the private key, yes. On Fri, Dec 30, 2022 at 4:41 PM Jeffrey Denison wrote: > Thanks @Sean Conner. You were right. My screwup. It is a system > version. No apache2 dir in /usr/local & parts scattered in those > system directori

Re: [users@httpd] Proxy both HTTP, and WebSocket traffic to UNIX socket

2023-01-04 Thread Frank Gingras
This is not needed for reverse proxies: Require all granted On Wed, Jan 4, 2023 at 6:26 PM Florian Schwalm wrote: > Nice, thank you for sharing the final result :) > > Am 5. Januar 2023 00:08:07 MEZ schrieb Jan Kohnert < > nospam001-li...@jan-kohnert.de>: >> >> Am Mittwoch, 28. Dezember 2022,

Re: [users@httpd] Server won't direct to Internal IP address

2023-01-05 Thread Frank Gingras
That error isn't helpful - show the full and unredacted error. Also, a ping isn't a useful test. On Thu, Jan 5, 2023 at 7:51 PM jason kerr wrote: > I have a wood pellet boiler that is connected via ethernet cable to my > home router. I can access the boiler to perform various functions whilst on

Re: [users@httpd] RewriteCond - is this fast fail?

2023-01-10 Thread Frank Gingras
The implicit behaviour for multiple RewriteCond directives is AND, unless you use [OR]. So without [OR], all the conditions have to match to apply the rewrite rule. On Tue, Jan 10, 2023 at 6:06 PM sebb wrote: > Does the first RewriteCond that fails cause any following RewriteCond > entries to b

Re: [users@httpd] RewriteCond - is this fast fail?

2023-01-10 Thread Frank Gingras
Do a quick test, and enable the rewrite log. Make sure you use a log level of 5 to see those details. On Tue, Jan 10, 2023 at 6:28 PM sebb wrote: > On Tue, 10 Jan 2023 at 23:21, Frank Gingras wrote: > > > > The implicit behaviour for multiple RewriteCond directives is AND, >

Re: [users@httpd] perhaps off topic..

2023-01-10 Thread Frank Gingras
That isn't really related to the purpose of this mailing list. I would ask the relevant channels on the libera chat IRC network to get more useful feedback first. On Tue, Jan 10, 2023 at 6:34 PM bruce wrote: > looking at node/react vs php... > > For those of you familiar with both, is there much

Re: [users@httpd] old gen workers sticking around post 2.4.49

2023-03-23 Thread Frank Gingras
Why are you using the event mpm with mod_php? This isn't recommended. On Thu, Mar 23, 2023 at 3:37 PM wrote: > An Apache/2.4.56 (Unix) server using "event" MPM sometimes does not clean > up an > idle old gen worker after "apachectl graceful". The old gen worker > continues to > take requests. Th

Re: [users@httpd] SetEnvIf and exceptions

2023-04-10 Thread Frank Gingras
The legacy authz directives from 2.2 will indeed cause issues when mixed with Require (2.4). Do not mix them. On Mon, Apr 10, 2023 at 11:48 PM Tatsuki Makino wrote: > Dave Wreski wrote on 2023/04/11 10:54: > > SetEnvIf user-agent "(?i:TurnitinBot)" stayout=1 > > SetEnvIf Request_URI "^linuxsecu

Re: [users@httpd] Help with mod_rewrite

2023-04-19 Thread Frank Gingras
I would start with the rewrite log in your development environment, if you can't change the configuration on the live server. I would also look to replace this entire mess with a FallbackResource directive. On Tue, Apr 18, 2023 at 6:32 AM Marc Serra wrote: > Hi, > > A few weeks ago we renewed o

Re: [users@httpd] Help with mod_rewrite

2023-04-20 Thread Frank Gingras
'm really lost, I dont' know what I'm looking > for in the log file. > > > > Missatge de Frank Gingras del dia dc., 19 d’abr. > 2023 a les 20:19: > > > > I would start with the rewrite log in your development environment, if > you can't cha

Re: [users@httpd] Re: Need help understanding mod_rewrite and redirect

2023-05-03 Thread Frank Gingras
1) Avoid rewriting from or blocks. 2) Avoid using mod_alias (redirect) from that context as well 3) Provide more than one rewrite log line, context matters 4) This can be replaced with FallbackResource /index.php: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRul

Re: [users@httpd] Re: Need help understanding mod_rewrite and redirect

2023-05-03 Thread Frank Gingras
In a non-directory context, just anchor your target, and you can skip the RewriteBase altogether. Redirect requires two parameters in the vhost/server context. On Wed, May 3, 2023 at 6:57 PM Jim Weill wrote: > On Wed, May 3, 2023 at 3:45 PM Frank Gingras wrote: > >> 1) Avoid re

Re: [users@httpd] Best way to Install

2023-05-06 Thread Frank Gingras
Compiling by hand should really be your last resort; distros provide means to merge any changes needed to the configuration files. Some provide .new files that you can diff, even. Further, using the distro package means that you get security updates, provided that you don't use an EOL release. On

Re: [users@httpd] Error in APR files

2023-05-06 Thread Frank Gingras
Compiling from source isn't the best path, if you're referencing the other users@ post, no. You should use your distro's packages, unless you need a very specific version. That being said, the files from the main link are fine. It sounds like you saved the web page: https://apr.apache.org/downloa

Re: [users@httpd] Unclear RewriteCond docs

2023-05-08 Thread Frank Gingras
Sebb, Are you sure about that? I would verify before we venture to clarify the docs. On Mon, May 8, 2023 at 5:28 AM sebb wrote: > https://httpd.apache.org/docs/current/rewrite/intro.html#rewritecond says > > “Matches in the regular expressions contained in the RewriteConds can > be used as part

Re: [users@httpd]

2023-05-15 Thread Frank Gingras
You want to use instead. I also strongly recommend storing your images in another path. On Mon, May 15, 2023 at 3:48 AM Marc wrote: > > > > > > > > How do I get that the file (docroot)/images/favicon.ico is not loaded > > from the disk but instead from the /tmp/os-favicon.ico? > > > > Use the A

Re: [users@httpd]

2023-05-15 Thread Frank Gingras
Well, we can't guess that you provided the wrong path. Hence the recommendation for better filesystem locations. On Mon, May 15, 2023 at 10:03 AM Marc wrote: > /tmp is just an example. Files are located elsewhere, actually at a > location where the rest should not be available/accessible. I only

Re: [users@httpd] pwauth to external server

2023-05-18 Thread Frank Gingras
This comes to mind: https://code.google.com/archive/p/mod-auth-external/wikis/AuthNZ.wiki On Wed, May 17, 2023 at 12:48 PM Adam Weremczuk wrote: > Hi all, > > I run some old Bugzilla 3.6.11 (https://www.bugzilla.org) on SERVER1 > (Debian 7 / Apache 2.2.22 / MySQL 5.5.31). > > The following auth

Re: [users@httpd] Getting Apache Started on a New Server

2023-05-20 Thread Frank Gingras
You need a mpm to start httpd. I recommend using the event mpm, so just load the appropriate module. On Sat, May 20, 2023 at 2:27 PM John Iliffe wrote: > Rocky Linux 9.0, new install > Rocky distro version of Apache/httpd > > As recommended I used the distro's download httpd and that has lead me

Re: [users@httpd] Getting Apache Started on a New Server

2023-05-20 Thread Frank Gingras
What is the new error? On Sat, May 20, 2023 at 5:24 PM John Iliffe wrote: > Thanks Frank. > > Hasn't started yet but at least the problem has moved to another line :-) > > Regards, > > John > == > On Sat, 2023-05-20 at 14:48 -0400, Frank Gingras wrote: >

Re: [users@httpd] Getting Apache Started on a New Server

2023-05-21 Thread Frank Gingras
esult > 'timeout'. > May 21 12:52:02 prod02 systemd[1]: Failed to start The Apache HTTP Server. > > > Regards, > > John > == > On Sat, 2023-05-20 at 18:46 -0400, Frank Gingras wrote: > > What is the new error? > > > > On Sat,

Re: [users@httpd] Apache service reported path is invalid

2023-06-06 Thread Frank Gingras
Try a few things: 1) Don't escape the \'s in the path 2) Use / instead of \ 3) map the network path to a drive letter in windows. On Tue, Jun 6, 2023 at 5:34 AM Ravi Chandra wrote: > Hi, > >We are using the Apache2.4.57 version on one of the servers. Here we > have facing an issue when we

Re: [users@httpd] Apache service reported path is invalid

2023-06-07 Thread Frank Gingras
s, > M Ravi Chandra. > *Zentech Innovations Private Limited* > > On Tuesday, June 6, 2023 at 07:18:41 PM GMT+5:30, Frank Gingras < > thu...@apache.org> wrote: > > > Try a few things: > > 1) Don't escape the \'s in the path > 2) Use / instead of \ > 3

Re: [users@httpd] Apache service reported path is invalid

2023-06-07 Thread Frank Gingras
rm Regards, > M Ravi Chandra. > *Zentech Innovations Private Limited* > > On Wednesday, June 7, 2023 at 07:12:49 PM GMT+5:30, Frank Gingras < > thu...@apache.org> wrote: > > > Try mapping the path to a network letter in windows. > > On Wed, Jun 7, 2023 at 1:48

Re: [users@httpd] Apache service reported path is invalid

2023-06-07 Thread Frank Gingras
ind > the config file for reference. > > [image: Inline image] > > > > Warm Regards, > M Ravi Chandra. > *Zentech Innovations Private Limited* > > > On Wednesday, June 7, 2023 at 07:24:11 PM GMT+5:30, Frank Gingras < > thu...@apache.org> wrote: &

Re: [users@httpd] Apache service reported path is invalid

2023-06-08 Thread Frank Gingras
> M Ravi Chandra > > On Wed, 7 Jun 2023 at 23:45, Frank Gingras > wrote: > As Eric said, the only reason left is a permissions issue, which results > in that error. > > On Wed, Jun 7, 2023 at 11:54 AM Ravi Chandra wrote: > > > Please find the config and the path in whi

Re: [users@httpd] Apache service reported path is invalid

2023-06-08 Thread Frank Gingras
> Greg > > On Thursday, June 8, 2023, Frank Gingras wrote: > >> You would want to attempt to reach that path while connected as that >> user. Any error would prevent you from reading the directory. >> >> On Wed, Jun 7, 2023 at 8:22 PM Ravi Chandra wrote: >>

Re: [users@httpd] Apache service reported path is invalid

2023-06-09 Thread Frank Gingras
Greg, Case sensitivity for paths isn't a concern on windows. On Fri, Jun 9, 2023 at 8:33 PM Gregory Kuzmicki wrote: > 6/9/2023 > 8:05 PM EST > > Ravi: > > I was taking another look at your issue. I noticed a "case difference" and > I am curious to know if this causing your issue. > > Please not

Re: [users@httpd] node.js application listening on port 8000 enabled with SSL certificate returns ERR_SSL_PROTOCOL_ERROR on browser.

2023-06-24 Thread Frank Gingras
If you proxy all requests to another host, you do not need a DocumentRoot, no. Also, do avoid using a block to proxy requests, and instead just use ProxyPass / http://localhost:8000/ On Sun, Jun 25, 2023 at 12:44 AM Kaushal Shriyan wrote: > > > On Sun, Jun 25, 2023 at 7:44 AM Kaushal Shriyan >

<    1   2   3   4   5   6   >