hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : Webmin Apache Help?
Reply

Hosting Software and Control Panels Software used in the web hosting industry. Topics include control panels, add-on software, setup scripts, etc.
Forum Jump

Webmin Apache Help?

Reply Post New Thread In Hosting Software and Control Panels Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-14-2007, 10:43 PM
jpaolini jpaolini is offline
Newbie
 
Join Date: Jul 2007
Location: Northeast, USA
Posts: 11
*

Webmin Apache Help?


Hi,

I've got Webmin 1.380 installed and working on a CentOS 4.5 VPS - everything seems to be good and it seems to be the solution I've been looking for.

But I'm having some trouble getting sites hosted correctly. After some tinkering and reading the Apache documentation on name-based virtual hosts, I realized that it was just easier to edit the httpd.conf file manually rather than deal with Webmin's interface for adding a bunch of domains quickly.

I'm not after anything fancy here at all - I'm adding 'domain1.com' (for example) to Apache using something like:
Code:
NameVirtualHost * 
<VirtualHost my.vps.ip.address:*>
ServerName www.domain1.com
DocumentRoot /home/user1/domain1.com
</VirtualHost>
However, when I go to add domain2.com using basically the same block of code (just changing the server name and document root to another folder), that domain2.com resolves to the stuff in domain1.com's folder.

Probably one of those little things I'm just not seeing, but I really can't seem to figure this out.

Any ideas?

__________________
Happily Hosted With: 1and1 (Unix Shared & Windows VPS), ServInt VPS.



Last edited by jpaolini; 12-14-2007 at 10:44 PM. Reason: Typo.
Reply With Quote


Sponsored Links
  #2  
Old 12-19-2007, 01:59 PM
jpaolini jpaolini is offline
Newbie
 
Join Date: Jul 2007
Location: Northeast, USA
Posts: 11
Respectful bump.

__________________
Happily Hosted With: 1and1 (Unix Shared & Windows VPS), ServInt VPS.


Reply With Quote
  #3  
Old 12-20-2007, 10:30 PM
Peakhost-Rob Peakhost-Rob is offline
Junior Guru Wannabe
 
Join Date: Mar 2001
Location: Denver, CO
Posts: 43
Not sure if it will help but you may want to try:

<VirtualHost my.vps.ip.address:*>
ServerName domain1.com
ServerAlias www.domain1.com
DocumentRoot /home/user1/domain1.com
</VirtualHost>

__________________
Peakhost.com Hosting
Quality hosting since 2001
http://peakhost.com

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
The Apache Software Foundation Launches Hadoop v1.0 Web Hosting News 2012-01-05 18:29:16
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58
Patch Released for Apache Software DDoS Vulnerability Web Hosting News 2011-08-26 15:03:10


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?