LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Closed Thread
  Search this Thread
Old 09-01-2020, 10:19 AM   #76
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972

Quote:
Originally Posted by Fred27377 View Post
The BASH script is not right. It does not edit httpd.conf file as required. Any suggestions?
Yes; hire someone to do this. You posted the 'old' script, implying there is a NEW script. You STILL haven't answered many of the questions you've been asked, are STILL not providing any details (such as what the script is doing/results/etc.), and you STILL have no clear goal or idea what you want to do or why. Saying "not right" tells us nothing.

You are not paying attention; you are not listening and apparently WILL NOT do either of those things. There is nothing anyone here can do to help you.
 
1 members found this post helpful.
Old 09-01-2020, 11:38 AM   #77
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555
No, please do not hire someone to do this.

The OP is probably trolling and should be ignored. If they're not, and this thread is actually driven out of a desire to help, that's great - but it is an incomplete and technically illiterate idea that will not work.

The best thing Fred27377 can do is to find another avenue to help people. Something which involves things they are already capable of doing.

(The best thing the second-most-vocal user in this thread can do is pretend the thread is closed and stop replying already.)


Last edited by boughtonp; 09-01-2020 at 11:40 AM.
 
2 members found this post helpful.
Old 09-01-2020, 12:16 PM   #78
Fred27377
Member
 
Registered: Jun 2020
Posts: 68

Original Poster
Rep: Reputation: Disabled
I got someone to do this. I still want to accomplish up to 1000 sites on a VPs. The reason I refer to this is because I have come up with the idea of using a client side script per each individual user. I didn’t think about this when I started or I would have mentioned it. I want to get this to work before I tackle anything else. Thank you for looking and thinking as everyone has you have really got me thinking. I have paid you my highest compliment!
 
Old 09-01-2020, 12:20 PM   #79
Fred27377
Member
 
Registered: Jun 2020
Posts: 68

Original Poster
Rep: Reputation: Disabled
TBOne The script should add entries in the Apache httpd.conf file. The way I read it it does not. I think it should add files as well but I haven’t fleshed that one out yet.
 
Old 09-01-2020, 01:29 PM   #80
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,736

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
OP. Tinker with it until it works...consider that you need to use the /path/to/httpd.conf in the script in order for the script to update httpd.conf. Backup the httpd.conf first.

Again, adding subdomains to the httpd.conf will NOT do anything if there is no DNS to resolve to the web server for each subdomain.

Those things said, I agree that nothing you do should be done on a server that's connected to the internet in any way.

Last edited by scasey; 09-02-2020 at 06:56 PM.
 
1 members found this post helpful.
Old 09-01-2020, 02:38 PM   #81
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I did a cut and paste from a different thread and I believe it applies.
Edit, this is a general statement not directed at any one person and it relates to further back in this thread.

"I feel everyone should be reminded to post on topic, to only post if they have something helpful to add, and to not post directives for the future of the thread."

Last edited by jefro; 09-01-2020 at 04:19 PM.
 
1 members found this post helpful.
Old 09-01-2020, 04:53 PM   #82
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,808

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by scasey View Post
OP. Tinker with it until it works...consider that you need to use the /path/to/httpd.conf in the script in order for the script to update httpd.conf. Backup the httpd.conf first.

Again, adding subdomains to the httpd.conf will NOT do anything if their is no DNS to resolve to the web server for each subdomain.

Those things said, I agree that nothing you do should be done on a server that's connected to the internet in any way.
If the OP wants to create a brazillion virtual hosts covering the entire population, I'd create individual files for each under `/etc/apache2/vhosts.d' and use the IncludeOptional directive to suck in `*.conf' when Apache starts. At least that's the way OpenSUSE has configured Apache. I'd rather do that than muck around with `httpd.conf' too much.

Adding virtual hosts to Apache is the easy part. The OP's going to have to figure out how to get `bind/named' configured to pull all this off. One A record for each person in the country? Figuring out how to handle all the people that have the same name? (Or is handing over one's SSN part of the plan?) What about the privacy aspects? Got that all figured out? I'm betting "nope".

Oy!
 
2 members found this post helpful.
Old 09-01-2020, 06:01 PM   #83
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Quote:
Originally Posted by Fred27377 View Post
TBOne The script should add entries in the Apache httpd.conf file.
So your plan is to restart Apache each time a new user registers?

Oh, just so you know: anyone who suggests that you hire someone to do this is actively trying to harm you.

Last edited by dugan; 09-01-2020 at 06:04 PM.
 
1 members found this post helpful.
Old 09-01-2020, 06:32 PM   #84
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by dugan View Post
So your plan is to restart Apache each time a new user registers?

Oh, just so you know: anyone who suggests that you hire someone to do this is actively trying to harm you.
Hate to disagree, dugan, but no. My hopes in getting the OP to hire someone are threefold:
  1. They will be forced to explain whatever it is they're trying to do in order for the person to begin work
  2. That person will tell them all 11,418 reasons why it's a bad idea
  3. We will not have to
 
2 members found this post helpful.
Old 09-02-2020, 08:00 AM   #85
Fred27377
Member
 
Registered: Jun 2020
Posts: 68

Original Poster
Rep: Reputation: Disabled
I need to go back a few squares. Will adding entries to the httpd.conf in Apache allow you the same number of virtual hosts? If not how would you do it?
 
Old 09-02-2020, 08:42 AM   #86
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
320 million users.
1 subdomain per username.
1000 subdomains.

Your numbers aren't adding up.

Also, you said "Facebook does this and bit.ly does this". Neither Facebook nor bit.ly gives each user a subdomain. Just as LQ (which I might suggest as a better example) gives each user a profile page but not a subdomain.

Last edited by dugan; 09-02-2020 at 09:33 AM.
 
1 members found this post helpful.
Old 09-02-2020, 10:47 AM   #87
Fred27377
Member
 
Registered: Jun 2020
Posts: 68

Original Poster
Rep: Reputation: Disabled
It’s not 320000000 it’s only 1000. For me this an exercise to learn something! Why is this such a bad idea? Exactly?
 
Old 09-02-2020, 12:16 PM   #88
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by Fred27377 View Post
It’s not 320000000 it’s only 1000. For me this an exercise to learn something! Why is this such a bad idea? Exactly?
All fine and good and never a bad idea to work to learn something.

To that point:
Quote:
Originally Posted by Fred27377 View Post
I need to go back a few squares. Will adding entries to the httpd.conf in Apache allow you the same number of virtual hosts? If not how would you do it?
I do not have an answer here, however I personally would try this and find out for myself, and especially "because you can".

Which is to say that you are working on this as an exercise, and you are editing the httpd.conf file. Therefore I recommend you try adding entries to it until you find out if there is a limitation. The server application which is using this httpd.conf file should also have documentation. Their documentation may contain an answer for your question about their limits. Recommend you review their documentation to see. I would not seek an alternative method to do this until you've proven that you cannot do it.
 
1 members found this post helpful.
Old 09-24-2020, 01:42 PM   #89
Fred27377
Member
 
Registered: Jun 2020
Posts: 68

Original Poster
Rep: Reputation: Disabled
A completely new problem for redirects!

In spite of things i now have to report there are 100 separate sites that have been added to my fedora 32 VPS or box. They are sequential. But despite all the BASH coding you cannot edit them from a browser. Permissions are rwxrwxrwx. I know this is wrong but I haven’t corrected it yet.

If you type on a page it is visible. If you type index.html and all the sites have their own index.html page. I was under the impression you could do this through the browser but alias I haven’t yet.

Thank you for following my posts. I may be slow but I haven’t given up.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect non www site to www site with 301 status mitter1989 Linux - Server 1 08-02-2014 07:53 AM
How to capture web site incoming traffic and redirect to different IP/server superkikim Linux - Server 5 11-08-2012 11:04 AM
call perl script through another perl script with arguments nanda22 Linux - Newbie 21 07-21-2009 12:18 AM
[HELP] redirect traffic to spesific port based on Traffic Content using iptables summersgone Linux - Server 2 06-22-2009 11:26 AM
Including methods from a perl script into another perl script gene_gEnie Programming 3 01-31-2002 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration