× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That sounds like a great idea (if you don't mind sharing)!

I'll have to check with my hosting company to see what its running on.

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Patrik Schindler
Sent: Wednesday, January 5, 2022 2:09 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Apache Server Question

Hello Greg,

Not within the configuration file itself.

You can prepare two configuration files with different "Listen" parameters and stop/start the instance with the correct configuration file via a scheduled job. Then the proxy server will show error 500 to the world — not exactly something I want to see when I visit a website. It smells like some incompetent guy isn't able to administer his servers correctly.

If the proxy server is a Linux machine, it's probably better to switch configurations there with a cron job, and instead of stuff just not working, maybe show a local index.html with a nice logo and "access not allowed at this time".

I'm using a small shell script for some similar occasions. Some static websites are located on my venerable 150, being proxied to the world via Apache. But when the 150 is down for whatever reason, the shell script sees no connection possible to port 80, changes configuration files to use a Linux local copy, and reloads Apache to activate the config changes. Can send it to you if you're interested. I bet you can easily adopt it to reflect your requirements.

:wq! PoC


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.