| | |
Muitiple domain names to multiple websites on Linux and Apache
![]() |
•
•
Join Date: Nov 2006
Posts: 2
Reputation:
Solved Threads: 0
Hi,
I am a very beginner and have been told to sort this out for my company as the person that created the system has gone into the military.
We currently have one domain with many sub-domains which is forwarded from domain company A to our Linux server which then deals with the correct folder and website to display. Also, one domain is a https which gets sent to a windows server.
We now have a second domain name with a second domain company and will be forwarded to the same Linux Server. The two domains only differ with .com and .fr .
In Linux or apache how do I send traffic for this new domain and sub-domains including the one to the windows server to there own totally separate folders.
I really need step by step simple instructions as I have never really used Linux or Apache before.
Any help would be greatly appreciated as I do not know where to start.
Nigel
I am a very beginner and have been told to sort this out for my company as the person that created the system has gone into the military.
We currently have one domain with many sub-domains which is forwarded from domain company A to our Linux server which then deals with the correct folder and website to display. Also, one domain is a https which gets sent to a windows server.
We now have a second domain name with a second domain company and will be forwarded to the same Linux Server. The two domains only differ with .com and .fr .
In Linux or apache how do I send traffic for this new domain and sub-domains including the one to the windows server to there own totally separate folders.
I really need step by step simple instructions as I have never really used Linux or Apache before.
Any help would be greatly appreciated as I do not know where to start.
Nigel
What you'll need is virtual hosts. They're added to the Apache configuration file (usually httpd.conf), and you can specify what domain/subdomain to use, and which folder to display. For more information, check out the Apache documentation, or check out this article on Devshed about virtual hosts.
Hope this helps
Hope this helps
"Technological progress is like an axe in the hands of a pathological criminal."
All my posts may be freely redistributed under the terms of the MIT license.
All my posts may be freely redistributed under the terms of the MIT license.
•
•
Join Date: Nov 2006
Posts: 2
Reputation:
Solved Threads: 0
I have found the httpd.conf file and copied one of the virtual hosts that was there but changed the .com to .fr. It still points to the same files so it should work when I type the url but show the existing website.
When I type the URL it just shows TEST. I have pinged the url and it goes to our ip address.
Do I have to re-start the apache server and how do I do that in Linux
Thanks
Nigel
When I type the URL it just shows TEST. I have pinged the url and it goes to our ip address.
Do I have to re-start the apache server and how do I do that in Linux
Thanks
Nigel
•
•
•
•
Do I have to re-start the apache server and how do I do that in Linux
- Restarting the entire machine, which is more complete and should be done if you're having problems with the server, etc..
- Restarting just the Apache service. To do this, you usually run
/etc/init.d/apache2 restartwith root privalges on the command line. You can also replace restart with start if Apache isn't already running, and stop to completely halt the service.
Hope this helps
"Technological progress is like an axe in the hands of a pathological criminal."
All my posts may be freely redistributed under the terms of the MIT license.
All my posts may be freely redistributed under the terms of the MIT license.
![]() |
Similar Threads
- Domain Names & Websites for sale (Websites for Sale)
- Domain Names For Sale Business Primer (Domain Names for Sale)
- List your websites and domain names for free. (Websites for Sale)
- Direct navigation domain names (Domains and DNS)
- Virtual Hosting Multiple Websites (Linux Servers and Apache)
Other Threads in the Getting Started and Choosing a Distro Forum
- Previous Thread: iptables
- Next Thread: Making a distro
| Thread Tools | Search this Thread |
age-related baremetal chrome cio cloudcomputing code commercial computers crystalballsunday desktop developers development distributions distro dsl elderly embedded forums google http://expertcore.org/ innovations jauntyjackalope kernel library linus linux microsoft multi-core netgear newbies openoffice.org operating operatingsystems parallel performance processing redhat routers smp studios system systembuilders systemintegrators terminalservices thecloud thinclients tools ubuntu users virtualization vmware webbased wikis windows xenon






