Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hi...
I am working on website for my organization and need urgent help for managing the server.
Scenario:
1 CentOS based BIND DNS Server with Public IP (assume 1.2.3.4) with a domain name (assume abc.edu.in)
2 Windows based IIS Web Server for Dot Net based Website on an internal private IP. (assume 5.1.1.2)
3 Linux based Web Server for PHP based Website on an internal private IP. (assume 5.1.1.3)
Requirement:
1. When a user requests abc.edu.in, website from 5.1.1.2 should be served.
2. When a user requests abc.edu.in/yy, website from 5.1.1.2 should be served.
3. When a user requests yy.abc.edu.in, website from 5.1.1.3 should be served.
A step-by-step elegant solution is highly appreciated. Please help.
Thanks and Regards,
Hi...
I am working on website for my organization and need urgent help for managing the server.
Scenario:
1 CentOS based BIND DNS Server with Public IP (assume 1.2.3.4) with a domain name (assume abc.edu.in)
2 Windows based IIS Web Server for Dot Net based Website on an internal private IP. (assume 5.1.1.2)
3 Linux based Web Server for PHP based Website on an internal private IP. (assume 5.1.1.3)
Requirement:
1. When a user requests abc.edu.in, website from 5.1.1.2 should be served.
2. When a user requests abc.edu.in/yy, website from 5.1.1.2 should be served.
3. When a user requests yy.abc.edu.in, website from 5.1.1.3 should be served.
A step-by-step elegant solution is highly appreciated.
Sorry, this isn't the place to come to get 'step-by-step' guides. Also, please read the LQ Rules, the "Question Guidelines" and "How to ask a smart question" links in my posting signature. This is NOT URGENT for ANYONE HERE...this is a volunteer forum, asking for/expecting 'urgent' help is fairly rude.
And based on what you posted, there isn't anything difficult here. You have a different domain name for the Windows server vs. the Linux/PHP server. Since you have different domain names for the PHP server, then just putting those names into DNS takes care of it. Anything for abc.edu.in goes to one address/server, anything to yy.abc.edu.in goes to the other address/server. Simple.
If you need 'step-by-step' guides on how to build a DNS server, there are THOUSANDS you can look up with a Google search, and a similar number for how to set up PHP/LAMP servers on Linux as well. If you have an actual PROBLEM doing something, post a SPECIFIC QUESTION and we will be happy to help you. But don't ask us to look up how-to guides for you. If you need 'urgent' help, and you don't feel like you can do this, I'd suggest hiring a consultant to help you.
EDIT: Since you've been asking about/working with DNS for TWO YEARS now, you should easily be able to perform the correct DNS mappings.
I agree with TBOne. Simple DNS A records should solve your issue.
However, in the case that you are not stating you whole issue correctly and in the interest of helping:
If the internal network is running Windows Active Directory, and your true issue is that a request to www sends you to the A.D. server(s), then you may need to utilize the port forwarding feature of windows' netsh:
which needs to be done on each Active Directory Domain Controller.
Of course, specific Active Dir. DNS settings should solve this, but I've failed to make it work properly so have opted for the above in our environment. (We have both private Windows A.D. DNS servers and public RedHat BIND servers)
Yes, you are right that its not urgent for any one else out there, but it is urgent for me. reply after 1 month won't help me out thats why i mentioned it there. If requesting a quick reply seems rude to you and this community, then I think I made a wrong forum choice and I should not post again.
Regarding solution, I have tried IPv4 forwarding, using IP of internal range, html header resetting, DNS forward records, etc but nothing worked. Only after that i posted my problem here.
Quote:
Originally Posted by TB0ne
Sorry, this isn't the place to come to get 'step-by-step' guides. Also, please read the LQ Rules, the "Question Guidelines" and "How to ask a smart question" links in my posting signature. This is NOT URGENT for ANYONE HERE...this is a volunteer forum, asking for/expecting 'urgent' help is fairly rude.
And based on what you posted, there isn't anything difficult here. You have a different domain name for the Windows server vs. the Linux/PHP server. Since you have different domain names for the PHP server, then just putting those names into DNS takes care of it. Anything for abc.edu.in goes to one address/server, anything to yy.abc.edu.in goes to the other address/server. Simple.
If you need 'step-by-step' guides on how to build a DNS server, there are THOUSANDS you can look up with a Google search, and a similar number for how to set up PHP/LAMP servers on Linux as well. If you have an actual PROBLEM doing something, post a SPECIFIC QUESTION and we will be happy to help you. But don't ask us to look up how-to guides for you. If you need 'urgent' help, and you don't feel like you can do this, I'd suggest hiring a consultant to help you.
EDIT: Since you've been asking about/working with DNS for TWO YEARS now, you should easily be able to perform the correct DNS mappings.
Yes, you are right that its not urgent for any one else out there, but it is urgent for me.
..and that STILL doesn't make it urgent for anyone here, thanks. If you need 'urgent' help, then you need to HIRE SOMEONE, and tell them to hurry up.
Quote:
reply after 1 month won't help me out thats why i mentioned it there. If requesting a quick reply seems rude to you and this community, then I think I made a wrong forum choice and I should not post again.
That's up to you...but since you posted two years ago, this is your first post since. And asking for 'urgent' ASAP help IS RUDE on a volunteer forum, no matter what you think.
Quote:
Regarding solution, I have tried IPv4 forwarding, using IP of internal range, html header resetting, DNS forward records, etc but nothing worked. Only after that i posted my problem here.
..and you told us NOTHING about any of this when you first posted, did you? And again, you don't need ANY of this...enter two DNS A records, and you're done, period.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.