Computer Geeks

Computer Geeks

Geek Shop

Geek News

Geek Stuff

Science Geek

Computer Gaming

Linux Chat

Building Websites

Computer Forums

Computer Help Forum

Computer Hardware Forum

Computer Software Programs


Go Back   Computer Forums > Building Websites
FAQ Community Calendar Today's Posts Search

Building Websites This section covers all aspects of publishing, developing and maintaining websites. Topics include: website design, graphic design, website programming, web hosting, website marketing (SEO, link exchange, publicity, advertising), monetization & etc.

Computer Geeks
» Active Discussions
Computer Geeks
No Threads to Display.
» Other Websites
- Software Publishing

- Server Hardening
Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2006, 07:48 PM
MMeffert's Avatar
MMeffert MMeffert is offline
Member
GB Advanced User
 
Join Date: Mar 2006
Posts: 80
Default Virtual Host

How would I setup another domain in the apache config file so I can have 2 domains going to the same server but go to different directories on the server?
Reply With Quote
  #2  
Old 03-06-2006, 05:21 AM
Soulwatcher's Avatar
Soulwatcher Soulwatcher is offline
Senior Member
GB GEEK
 
Join Date: Feb 2006
Posts: 309
Send a message via MSN to Soulwatcher
Default

I am going to assume that you are using Apache 2. I went to www.apache.org to find the Documentation that you need. http://httpd.apache.org/docs/2.0/vhosts/ That should give you the information you need to setting up your Virtual Host. If there is something you don't under stand. Just ask and I will be more than willing to help.
Reply With Quote
  #3  
Old 03-06-2006, 06:44 AM
MMeffert's Avatar
MMeffert MMeffert is offline
Member
GB Advanced User
 
Join Date: Mar 2006
Posts: 80
Default

So I just take this and fill in my information and then in the server name I just put the new domain and it will work?

<VirtualHost *:80>

ServerAdmin mitchell@mitchellmeffert.com
DocumentRoot /www/NEWDOMAIN
ServerName NEWDOMAIN.com
ErrorLog logs/host.foo.com-error_log
TransferLog logs/host.foo.com-access_log
</VirtualHost>

What does this line do TransferLog logs/host.foo.com-access_log?
Does it just move the log or rename it?
Reply With Quote
  #4  
Old 03-06-2006, 07:51 AM
Soulwatcher's Avatar
Soulwatcher Soulwatcher is offline
Senior Member
GB GEEK
 
Join Date: Feb 2006
Posts: 309
Send a message via MSN to Soulwatcher
Default

Some one correct me if I am wrong. But this is a old example of how I had my Virtual Host setup. This setup is before me using a control panel.

# Virtual host How To Webserver
<VirtualHost 192.168.1.151>
DocumentRoot /home/mywebsite
ServerAdmin soulwatcher@*******.com
ServerName www.mywebsite.com
ServerAlias mywebsite.com
ServerAlias www.mywebsite.net
ServerAlias mywebsite.net
<Directory "/home/mywebsite/">
AllowOverride none
</Directory>

You should have Apache always configured to listen on port 80.
Reply With Quote
  #5  
Old 03-06-2006, 02:58 PM
MMeffert's Avatar
MMeffert MMeffert is offline
Member
GB Advanced User
 
Join Date: Mar 2006
Posts: 80
Default

ok so I can just add that to the config file and then point another domain at the server and it should work or is there something else I have to do so each domain goes to the write place?
Reply With Quote
  #6  
Old 03-06-2006, 03:33 PM
Soulwatcher's Avatar
Soulwatcher Soulwatcher is offline
Senior Member
GB GEEK
 
Join Date: Feb 2006
Posts: 309
Send a message via MSN to Soulwatcher
Default

Just make sure you restart Apache and you should be all set. Let me know if you have any problems and I will see what I can do to help.
Reply With Quote
  #7  
Old 03-06-2006, 07:49 PM
MMeffert's Avatar
MMeffert MMeffert is offline
Member
GB Advanced User
 
Join Date: Mar 2006
Posts: 80
Default

Ok thanks. I will give it a try.
Reply With Quote
  #8  
Old 03-28-2011, 01:54 AM
John23 John23 is offline
Member
GB Advanced User
 
Join Date: Oct 2010
Posts: 87
Post Re:

There may be exceptions to this rule, such as when a project is anticipated to experience exponential growth and a dedicated hosting service is chosen right at the start. Even if you do choose a shared hosting service initially, you may realize at one point or another that the demanding requirements of your web site can no longer be satisfied by shared hosting. And if your project now has a steady revenue stream, the cost of migrating to a dedicated hosting platform may appear less intimidating than it did at first.
Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump

Powered by vBadvanced CMPS v3.2.3

All times are GMT -5. The time now is 02:30 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.