Re: [users@httpd] Redirecting based on IP

2024-05-15 Thread gene heskett

On 5/15/24 19:15, Dave Wreski wrote:

Hi,

Google insists that one of our staging sites needs to be indexed despite 
"disallow" in robots.txt and a half-dozen other methods for preventing 
Google from indexing it (including submitting it for removal from their 
index). The staging site is even protected with a RequireAll statement 
for the DocumentRoot based on the IP, which then results in a 404 and 
other errors in GSC. This impacts our SEO and also causes GSC to stop 
processing the rest of our site.


The next steps I'd like to do is to redirect anyone not in that 
RequireAll statement to be redirected to the production site. Is this 
possible? Perhaps a RewriteCond that depends upon certain IPs, then 
otherwise redirects to the production site?


Thanks,
Dave

The last time I ran into this was back in iptables days 20 years ago. 
Based on IP they were denied because my site at the time included my 
photo's and totalled about 13 gigabytes. This was in the days of 
bandwidth per month of 30 gigs. Because google has so many machines they 
used up all my allocation long before the month was up. I wound up 
putting another search engine in that database, mj12, so I wound up with 
an iptables file about 15k lines long. That continued until I had ported 
the whole thing to a couple new Seacrate 1t drives, both of which went 
tits down in the night within 2 weeks, just disappearing off the 
sata-III bus. I was so pi$$ed I didn't even warranty them. SSD's are it 
today. I have only one spinning rust drive in 8 machines here now, a 250 
gig that refuses to die. iptables worked but took about 10 hours a month 
to maintain it cuz they moved the machines to a new address.  Some of 
the iptables rules ended in /16, so I was blocking a goodly share of the 
ipv4 space when I had the gran crash.  I controlled it most of the time 
but it was several hours a week keeping even with them. You never get 
ahead. I still have a registered name but all you get is the apache test 
page.


Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis


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



Re: [users@httpd] setting up a new site?

2022-06-19 Thread gene heskett

of a woman that gave me a near genius IQ. I quit school and went to work

Troll bait.

no, context.

Omit (not emit) all noise, if you have a tech. qustion.

We'll get along better without the snark.

more context:

I have now setup a www/geneslinuxbox directory with one file in it for test.
I want to use a OT Passwd, before granting access which should stop the 
bots.


Is there a module that will do that?

Reason: my pipe is a 10 meg connection (2.5/sec upload) and the last
time I had it setup, the bots of the world insisted on mirroring around
30 gigabytes, burning up all my upload bandwidth to the tune of
300+ gigabytes a month.

2 more questions:
What do I put in robots.txt?, and where in the above hierarchy do I
put it to discourage most of the bots? (not all of them obey it, we both
know that, but iptables can block the rest.)

That's 3 tech questions.

Take care and stay well.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis


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



[users@httpd] setting up a new site?

2022-06-18 Thread gene heskett

Greetings all;

I've had my own web page since 2003 or so but lost it all when a pair of new
seacrate 2T drives died in the night last fall about 2 weeks apart.
Needless to say, rebuilding this machine has been quite a chore because
I did not take the time to trace out my usb cables and unplug any usb-serial
adapters, because if they are found, the d-i will assume falsely they feed
a brltty, and helpfully installs that driver and orca. I'll just suffice to
say that by the time I stuffed a hot potato in orcas mouth  it was not
rebootable and the logs were still being spammed about 30 lines for 
every keystroke.


An intolerable situation because no one on the debian mailing list knew
how to properly remove them and I did a fine job of pestering them about it.
Because the reboot was blocked by not finding the brltty drivers, explains
the first 27 installs of bullseye. That was the only way to reboot.  
This is

actually the 32nd install.

But as far as setting up a new web site, I'm starting from nothing.
The only files I've touched are apache2.conf and ports.conf to move it to
localhost:6309 or geneslinuxbox:6309 both of which now bring up the
test page.  The 6309 is a peon to that cpu from Hitachi, which installed
in place of the motorola 6809, makes a much more capable machine out
of a 1980's trs-80 color computer.

This site will be primarily a file server because I have some stuff
for raspios such as a realtime kernel so linuxcnc can be run on a pi,
in my case driving 1400 lbs of an 80 yo Sheldon lathe I've converted
to cnc operation.

All that is background, to intro myself. I am a long retired broadcast
Chief Engineer, with a formal education of the 8th grade, but was born
of a woman that gave me a near genius IQ. I quit school and went to work
fixing anything with a line cord or batteries at 15 yo, and tv's once 
central

Iowa had a tv station in late '47, now 87 yo and alone, my wife of 31
years passed from COPD on Dec 7nth 2020.  I'd get me another but it takes
so long to train them. :)

I want to setup a root directory someplace, owned by www-data, and from
which I can link to other locations as I find the resources to populate
them with. Other than changing the port, its a virgin apache2 install
whose test page works for http. I have not setup this directory yet,
and I'd like to restrict it to https access only, my router is already
setup to forward and NAT port 6309 to this machines local address, that's
been working for years for http, so my question for the day is whats next?

Thanks all, take care & stay well.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis


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



Re: [users@httpd] apache2 disabled by apache2.conf error

2021-11-21 Thread Gene Heskett
On Sunday 21 November 2021 17:26:06 Gene Heskett wrote:

> On Sunday 21 November 2021 16:32:24 Eric Covener wrote:
> > > It seems that line 80 expects an APACHE_RUN_DIR env var.
> >
> > It means you ran "apache2" or "httpd" instead of the startup script
> > (apachectl) or service/systemctl your system expects
> > Or you've removed variables like APACHE_RUN_DIR from wherever your
> > distro keeps the environment variables.
>
> I haven't removed anything myself, but synaptic may have.. This is as
> it was rebooted  9 something days ago. Some of the directories have a
> nov 3 date, but the files range from 2012 to 2019 since touched
> according to mc. This is a very old but kept uptodate debian stretch
> install that is about to get bullseye installed by switching out the
> /dev/sda drive for a fresh SSD with a 2 Tbyte raid10 as /home. I think
> systemctl starts it normally but I don't have that critter figured out
> yet. And when I do issue a gracefull restart as sudo,
>
> /lib/systemd/system/apache2.service gracefull
> -bash: /lib/systemd/system/apache2.service: Permission denied
>
> its not executable
> -rw-r--r-- 1 root root  346 Oct 13  2019 apache2.service
>
> Now what?  And thanks.

But on the other hand, the script in /etc/init.d does work, no errors or 
warnings logged but doesn't fix the problem when it does restart the 
server. So I'm clueless.

And I have a friend in oregon I'm going to send a link to to see if he 
can pull a realtime kernel for an rpi4b that I've built, and see if he 
can get it.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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



Re: [users@httpd] apache2 disabled by apache2.conf error

2021-11-21 Thread Gene Heskett
On Sunday 21 November 2021 16:32:24 Eric Covener wrote:

> > It seems that line 80 expects an APACHE_RUN_DIR env var.
>
> It means you ran "apache2" or "httpd" instead of the startup script
> (apachectl) or service/systemctl your system expects
> Or you've removed variables like APACHE_RUN_DIR from wherever your
> distro keeps the environment variables.

I haven't removed anything myself, but synaptic may have.. This is as it 
was rebooted  9 something days ago. Some of the directories have a nov 3 
date, but the files range from 2012 to 2019 since touched according to 
mc. This is a very old but kept uptodate debian stretch install that is 
about to get bullseye installed by switching out the /dev/sda drive for 
a fresh SSD with a 2 Tbyte raid10 as /home. I think systemctl starts it 
normally but I don't have that critter figured out yet. And when I do 
issue a gracefull restart as sudo, 

/lib/systemd/system/apache2.service gracefull
-bash: /lib/systemd/system/apache2.service: Permission denied

its not executable
-rw-r--r-- 1 root root  346 Oct 13  2019 apache2.service

Now what?  And thanks.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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



Re: [users@httpd] apache2 disabled by apache2.conf error

2021-11-21 Thread Gene Heskett
On Sunday 21 November 2021 15:35:32 Gene Heskett wrote:

> Paranoia is running amok.
>
> It seems that line 80 expects an APACHE_RUN_DIR env var.
>
> It has been /var/www/html/gene since at least 18 years.
> And the address in the sig has been registered to me for at least a
> decade.
> But I can't access it, either by the address in the sig or at
> localhost now. dig shows my registered address has not changed. I also
> can't access my router at its assigned address but the rest of my
> network is running just fine. And I can ping it by the name in the
> sig.
>
> How do I set it, and who sets (owns) it?

Even more wierdness, the "other" log shows it serving up the front page 
image to all accesses right now.  Why can't I see it with a browser?

> Thanks.
>
> Cheers, Gene Heskett.


Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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



[users@httpd] apache2 disabled by apache2.conf error

2021-11-21 Thread Gene Heskett
Paranoia is running amok.

It seems that line 80 expects an APACHE_RUN_DIR env var.

It has been /var/www/html/gene since at least 18 years.
And the address in the sig has been registered to me for at least a 
decade.
But I can't access it, either by the address in the sig or at localhost 
now. dig shows my registered address has not changed. I also can't 
access my router at its assigned address but the rest of my network is 
running just fine. And I can ping it by the name in the sig.

How do I set it, and who sets (owns) it?

Thanks.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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



Re: [users@httpd] Unable to unsubscribe

2021-09-01 Thread Gene Heskett
On Wednesday 01 September 2021 12:46:23 Scott A. Wozny wrote:

> Per the instructions in list emails, I've sent a couple emails to
> users-unsubscr...@httpd.apache.org this week, but I'm still getting
> emails from the list.  Any idea what gives?
>
> Thanks,
>
> Scott

Two things;

1. did you send it from the same address you used to subscribe?
They MUST match.

2. that generates a confirmation message sent to _that_ address, and you 
MUST reply it it, or the unsub will not be done. 

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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



Re: [users@httpd] Re: users Digest 30 Jun 2021 16:18:56 -0000 Issue 6154

2021-07-22 Thread Gene Heskett
On Thursday 22 July 2021 10:57:58 Gabriel Edmundo wrote:

> unsubscribe
>
You sent this to the user address, please send it to:

 <mailto:users-unsubscr...@httpd.apache.org>

And you MUST reply to the confirmation request the server will send you



Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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



Re: [users@httpd] unsubscribe did not work

2021-02-09 Thread Gene Heskett
On Tuesday 09 February 2021 10:13:33 Heather Lotz wrote:

> The unsubscribe request did not seem to work as e-mails from
> users@httpd.apache.org are still coming through.
>
A confirmation msg was sent to your known email address, did you reply to 
it?  You must before the unsub will be done.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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



Re: [users@httpd] Aw: Re: [users@httpd] Apache in under attack. [EXT]

2021-01-12 Thread Gene Heskett
On Tuesday 12 January 2021 05:01:09 Jason Long wrote:

> I did below rule, but not worked:
> # iptables -A INPUT -p tcp --syn --dport 80 -m connlimit
> --connlimit-above 20 -j REJECT --reject-with tcp-reset

Lessons learned while trying to stop the &^$>#@# bots from mirroring my 
content on a 10 mbit circuit 10 times a day, burning up my upload 
bandwidth.

1. I watch the other* log.
2. on stretch, I still use iptables
3. I don't reject, I DROP, they get no response to even prove I'm there.
4. since they move bots addy's around weekly to get around people like 
me, I block that whole 256 wide block with a /24 appended to the ipv4 
addy.

5. I'm in ipv4 territory, so when I see a bot in that log, I use its ipv4 
address in /24 format to save writing 255 more rules.

6. really stubborn addresses that don't obey robots.txt get the /16 
treatment.

7. 114 such rules later, I finally have my internet back. But it does 
take some maintenance time. I haven't changed my habits, but my 
bandwidth useage has dropped from 300+G a month a year ago to 30 or 40 
now. And now if I have something of use to others, they can get it. 
Slowly, but they can get it.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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



Re: [users@httpd] Countdown to 25 years - has httpd changed your life?

2020-01-17 Thread Gene Heskett
On Friday 17 January 2020 03:16:06 Daniel Gruno wrote:

> Hi wonderful apache people!
>
> As we count down to the 25th anniversary of the Apache Group, founded
> February 27th 1995 (first release of the apache webserver was in April
> 1995), I'd like to put some extra effort into the quarterly board
> report I, as chair of the project, have to present to the board of
> directors at the Apache Software Foundation in February.
>

I've had a web page using it up since about 2005. Somewhat dated by now, 
but its still there and currently supplying a preempt-rt kernel for an 
raspberry pi 4, along with builds of linuxcnc to run on the rpi4's.

A relatively simple page, but does show what makes me tick, although the 
parts list for me is, at 85, beginning to resemble the 6 million dollar 
man due to my DM-II. Address in the sig.

> So I thought to myself, it would be fun to get some testimonials to
> showcase how this project has survived, grown, and remained in the top
> for 25 years, helping people achieve their goals and in the process
> helping people grow. Personally, I would not be where I am today
> without this project - I owe so much to it, and it has helped me reach
> many a goal.
>
> If you too have been affected by httpd, or if you just think this is a
> really nifty piece of software because it helps you do X, Y or Z,
> please let us know on this thread. I'll later collate the responses,
> shorten them a tad, and compile a shortened list of testimonials for
> the board report.
>
> You can tell us about your experience with the product (httpd), the
> project (the apache http server project), or just your interactions
> with the people involved. Please keep it concise, as we wouldn't want
> to force the board to go through 150 pages :)
>
> With very warm regards,
> Daniel.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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