Perl or bash script to redirect traffic to another site.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ODOHO it seems to me that Covid can be tested by Saliva and a computerized record kept. We must be very close to putting this nightmare behind us. I called AWS to ask if they could setup something like this. They sent me an email. I don’t want to wait two years or more to begin to live again. 320 M is the approx people in US. Doing something for me is better than doing nothing at all!
Asking a moderator to close this thread, as it seems pointless. You do not have ANY idea what you want to do, and at this point are again ranting about 'begin to live again', etc.
You still have not asked a clear question, demonstrated any effort on your part, or even know what it is you want to do. Amazingly enough, the CDC already HAS at least one computer, if not more...not sure if you're aware of this. They even probably have some sort of tracking system built.
Testing surely is an important part of dealing with the pandemic, but it won't make it go away.
There's no reason to, no point in testing 100% of the population. None.
These are different times than I grew up in! The response in the 60s would be different than now. It could be state by state. But they would have literally tested every one. And every one would comply not like now!
If you seriously don't know what services AWS provides, the basics of website design, how to write even a SIMPLE SCRIPT, etc., how exactly do you think your '320 million' website is going to get built??? There isn't a magic "click this button to do exactly what you want" feature anywhere.
These are different times than I grew up in! The response in the 60s would be different than now. It could be state by state. But they would have literally tested every one. And every one would comply not like now!
Oh yes...the 60's were indeed a time of TOTAL CONFORMITY. Right.....
And again, you appear to be misinformed about a great deal. Do you know what's involved in READING a test?? The resources/time/effort it takes?? One person can test hundreds a day...and those tests take TEAMS to process over a much longer time. And then you are actually expecting a perl or bash script to automatically build 320 million web pages (seemingly unsecured) for these results?? So you can continue to whine about 'being able to live again', and (from another of your threads) having your 'way of life destroyed'??
You should also know what a CMS does. Here’s the shortest video I could find in Drupal, which is the kind of thing you would write in Django, PHP (what it’s actually written in) or Rails, and then use to create a site WITH LOTS OF PAGES.
I suggest that anyone who doesn't agree with the flow of a thread then they ought to refrain from posting. Further move on to a different thread where they may be able to fully assist a member.
I suggest that anyone who doesn't agree with the flow of a thread then they ought to refrain from posting. Further move on to a different thread where they may be able to fully assist a member.
The OP has not (and apparently WILL NOT) define a clear goal. They admittedly don't even know what they want to do, and won't show any efforts towards solving their own issue, whatever it may be.
Clear questions have been answered; the OP has been given code and scripts to do what the subject line reads..that is, perform a redirect, as was answered in:
Post #4 (the OP says they know how to do it with Apache)
Post #8
Post #13
Post #16 (OP 'solves' it there)
Post #17
Post #19
Post #29 (again, OP answers own question)
Post #42 & 43
Post #20 sums up the reason to close the whole thread. Not sure what else can be added to this thread from a technical standpoint, and the OP persists in their behavior. If the mods see this and don't close it, I'm stumped as to WHY it wouldn't be closed at this point.
55 posts in, no clear question or effort? What's to be gained?
Wait, you want personal custody over the medical information of every person in the United States?
Oh, my brain went into lockdown (is ther a pun here?) before it even got to that point.
In any case, it is very, very clear that OP should NOT be building any sort of website any time soon.
And since they appear unwilling to accept advice and read up on things, probably never.
Quote:
Originally Posted by Fred27377
These are different times than I grew up in! The response in the 60s would be different than now. It could be state by state. But they would have literally tested every one. And every one would comply not like now!
This is once again complete nonsense, please see my previous reply.
(And I'm sure actual 1960s examples could be found to disprove your statement.)
Anyhow, don't blame the times. They have nothing to do with it. Blame yourself.
I think there are many ways to create 1000 subdomains but this for me is the easiest!
Um. A sub domain’s FQDN would be sub.domain.tld
ServerName would need to be sub.domain.tld
A wildcard in the alias won’t do what you want. Every sub domain will need its own VirtualHost.
Also, every sub domain will need a DNS A record to resolve
The TimDotson memorial question:
What are you trying to accomplish??
As others have stated, your goals at not clear. We can’t help you do what you want if you don’t clearly state what you want...
This is actually Apache. I think there are many ways to create 1000 subdomains but this for me is the easiest!
Great; so you opened this thread to ask a question for something that you ALREADY KNOW THE ANSWER.
You claim to want to do this in Perl...you posted several perl snippets, and a simple counter-loop has examples in ABUNDANCE, any of which you can find with a very small amount of effort (see the "Question Guidelines", as you've been directed to before). Go to the Internet search tool of your choice, and put in:
Those show you how to count, loop, open a file, and write into it. You (again) now have everything you need to actually go do something for yourself. As others have said, you have no idea what you're actually doing with your 'websites', or how to build them. You can write a simple script in bash or python too...not sure why you're fixated on Perl.
And again, building 1,000 subdomains isn't the issue; what do you actually plan on DOING with them? Having a blank domain that is only visible to yourself is pointless. Paying for 1,000 domains on a web host is equally pointless, unless you have ACTUAL CONTENT to put on those web pages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.